Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Error in CDO (DBException)
Error in CDO (DBException) [message #426415] Mon, 05 January 2009 02:29 Go to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Hello,
i use CDO 2.0m4 with derby DB on Eclipse 3.5m4. Now i try to
upload/download some resources. And i get everytime this error:

[ERROR] Rollback in DBStore: org.eclipse.net4j.db.DBException: SQL
Exception: An attempt was made to get a data value of type 'VARCHAR'
from a data value of type
'org.eclipse.emf.cdo.internal.common.revision.CDOListImpl'.

Can somebody say what this exactly mean? I get often errors with cdo
2.0m4 has this version lots of errors or is derby not good to use for
the server?

Greetings
Re: Error in CDO (DBException) [message #426418 is a reply to message #426415] Mon, 05 January 2009 08:36 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Jörg,

Currently I can't oversee if we had related fixes after M4. But we had
some fixes and I'm planning to publish a regular I-build later this
week. Is it possible that you try the same scenario with the latest
sources? If the problem persists please file a Bugzilla.

Cheers
/Eike

----
http://thegordian.blogspot.com



Jörg schrieb:
> Hello,
> i use CDO 2.0m4 with derby DB on Eclipse 3.5m4. Now i try to
> upload/download some resources. And i get everytime this error:
>
> [ERROR] Rollback in DBStore: org.eclipse.net4j.db.DBException: SQL
> Exception: An attempt was made to get a data value of type 'VARCHAR'
> from a data value of type
> 'org.eclipse.emf.cdo.internal.common.revision.CDOListImpl'.
>
> Can somebody say what this exactly mean? I get often errors with cdo
> 2.0m4 has this version lots of errors or is derby not good to use for
> the server?
>
> Greetings


Re: Error in CDO (DBException) [message #426422 is a reply to message #426415] Mon, 05 January 2009 10:17 Go to previous messageGo to next message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Hi,
> i use CDO 2.0m4 with derby DB on Eclipse 3.5m4. Now i try to
> upload/download some resources. And i get everytime this error:
>
> [ERROR] Rollback in DBStore: org.eclipse.net4j.db.DBException: SQL
> Exception: An attempt was made to get a data value of type 'VARCHAR'
> from a data value of type
> 'org.eclipse.emf.cdo.internal.common.revision.CDOListImpl'.
>
> Can somebody say what this exactly mean? I get often errors with cdo
> 2.0m4 has this version lots of errors or is derby not good to use for
> the server?
Can you be a bit more specific on what you are trying to write? Maybe
describe your model and what values you set before committing?

Cheers,
Stefan
Re: Error in CDO (DBException) [message #426452 is a reply to message #426422] Tue, 06 January 2009 16:52 Go to previous messageGo to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060907040706020609010002
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

i try to upload this model. Grounded on the rmof.ecore structure.
This is the code i use for

// Enable logging and tracing
OMPlatform.INSTANCE.setDebugging(true);
OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOL E);

// Prepare container
IManagedContainer container = ContainerUtil.createContainer();
Net4jUtil.prepareContainer(container); // Register Net4j factories
TCPUtil.prepareContainer(container); // Register TCP factories
CDOUtil.prepareContainer(container, false); // Register CDO factories
// container.activate();

// Create connector
connector = TCPUtil.getConnector(container, "localhost:2036");

// Create configuration
CDOSessionConfiguration configuration =
CDOUtil.createSessionConfiguration();
configuration.setConnector(connector);
configuration.setRepositoryName("repo1");

// Open session
session = configuration.openSession();
session.getPackageRegistry().putEPackage(RmofPackage.eINSTAN CE);

// Open transaction
CDOTransaction transaction = session.openTransaction();

// Get or create resource
String res = "/layer0";
// transaction.createResource(res);
CDOResource resource = transaction.getOrCreateResource(res);

//Adding the content
//...
resourcecopy.getContents().add(EcoreUtil.copy((EObject)
entry.getValue()));


// Work with the resource and commit the transaction
transaction.commit();
logger.debug("CDO commit");

session.close();
LifecycleUtil.deactivate(connector);


Thanks for your help.
Greetings

Stefan Winkler schrieb:
> Hi,
>> i use CDO 2.0m4 with derby DB on Eclipse 3.5m4. Now i try to
>> upload/download some resources. And i get everytime this error:
>>
>> [ERROR] Rollback in DBStore: org.eclipse.net4j.db.DBException: SQL
>> Exception: An attempt was made to get a data value of type 'VARCHAR'
>> from a data value of type
>> 'org.eclipse.emf.cdo.internal.common.revision.CDOListImpl'.
>>
>> Can somebody say what this exactly mean? I get often errors with cdo
>> 2.0m4 has this version lots of errors or is derby not good to use for
>> the server?
> Can you be a bit more specific on what you are trying to write? Maybe
> describe your model and what values you set before committing?
>
> Cheers,
> Stefan


--------------060907040706020609010002
Content-Type: text/xml;
name="rmof.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="rmof.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="rmof"
nsURI="http:///rmof/rmof.ecore" nsPrefix="rmof">
<eClassifiers xsi:type="ecore:EEnum" name="AggregationKind">
<eLiterals name="none"/>
<eLiterals name="shared" value="1" literal="shared"/>
<eLiterals name="composite" value="2" literal="composite"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Class" eSuperTypes="#//Classifier">
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedAttribute" upperBound="-1"
eType="#//Property" containment="true" eOpposite="#//Property/clazz"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="superClass" upperBound="-1"
eType="#//Class"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedOperation" upperBound="-1"
eType="#//Operation" containment="true" eOpposite="#//Operation/clazz"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Classifier" abstract="true" eSuperTypes="#//Namespace #//Type">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isAbstract" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" upperBound="-1"
eType="#//Property"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="feature" upperBound="-1"
eType="#//Feature"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="general" upperBound="-1"
eType="#//Classifier"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="inheritedMember" upperBound="-1"
eType="#//NamedElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="package" eType="#//NamedElement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Comment" eSuperTypes="#//Element">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="body" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="annotatedElement" upperBound="-1"
eType="#//Element"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Constraint" eSuperTypes="#//PackageableElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="constrainedElement" upperBound="-1"
eType="#//Element"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="context" eType="#//Namespace"
eOpposite="#//Namespace/ownedRule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="specification" eType="#//Operation"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DataType" abstract="true" eSuperTypes="#//Classifier"/>
<eClassifiers xsi:type="ecore:EClass" name="Element" abstract="true" eSuperTypes="#//Object">
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedComment" eType="#//Comment"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedElement" upperBound="-1"
eType="#//Element" containment="true" eOpposite="#//Element/owner"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="#//Element"
eOpposite="#//Element/ownedElement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ElementImport" eSuperTypes="#//Element">
<eStructuralFeatures xsi:type="ecore:EReference" name="importedElement" lowerBound="1"
eType="#//PackageableElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="importingNamespace" lowerBound="1"
eType="#//Namespace"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Enumeration" eSuperTypes="#//DataType">
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedLiteral" lowerBound="1"
upperBound="-1" eType="#//EnumerationLiteral" containment="true" eOpposite="#//EnumerationLiteral/enumeration"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EnumerationLiteral" eSuperTypes="#//PackageableElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="enumeration" lowerBound="1"
eType="#//Enumeration" eOpposite="#//Enumeration/ownedLiteral"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Feature" abstract="true" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="featuringClassifier" lowerBound="1"
upperBound="-1" eType="#//Class"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="MultiplicityElement" abstract="true"
eSuperTypes="#//Element">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isOrdered" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isUnique" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lower" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="upper" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
defaultValueLiteral="1"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true" eSuperTypes="#//Element">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="qualifiedName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="namespace" eType="#//Namespace"
eOpposite="#//Namespace/ownedMember"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Namespace" abstract="true" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="member" upperBound="-1"
eType="#//NamedElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedMember" upperBound="-1"
eType="#//NamedElement" containment="true" eOpposite="#//NamedElement/namespace"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="elementImport" upperBound="-1"
eType="#//PackageableElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="importedMember" upperBound="-1"
eType="#//PackageableElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedRule" upperBound="-1"
eType="#//Constraint" containment="true" eOpposite="#//Constraint/context"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="packageImport" upperBound="-1"
eType="#//PackageableElement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Operation" eSuperTypes="#//Feature #//Namespace">
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedParameter" upperBound="-1"
eType="#//Parameter" containment="true" eOpposite="#//Parameter/operation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="stateMachine" lowerBound="1"
eType="#//StateMachine" containment="true" eOpposite="#//StateMachine/operation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="calledFromStateMachine"
lowerBound="1" eType="#//StateMachine"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="subOperationCallString"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="clazz" lowerBound="1" eType="#//Class"
eOpposite="#//Class/ownedOperation"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="effect" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="calledParameters" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Package" eSuperTypes="#//Namespace #//PackageableElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="ownedMemberPackage" upperBound="-1"
eType="#//PackageableElement" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="package" eType="#//Package"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PackageableElement" abstract="true"
eSuperTypes="#//NamedElement"/>
<eClassifiers xsi:type="ecore:EClass" name="PackageImport" eSuperTypes="#//Element">
<eStructuralFeatures xsi:type="ecore:EReference" name="importedPackage" lowerBound="1"
eType="#//Package"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="importingNamespace" lowerBound="1"
eType="#//Namespace"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="#//MultiplicityElement #//TypedElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="direction" lowerBound="1"
eType="#//ParameterDirectionKind"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="operation" lowerBound="1"
eType="#//Operation" derived="true" eOpposite="#//Operation/ownedParameter"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="signature" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
volatile="true" transient="true" derived="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ParameterDirectionKind">
<eLiterals name="in"/>
<eLiterals name="inout" value="1"/>
<eLiterals name="out" value="2" literal="out"/>
<eLiterals name="return" value="3"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PrimitiveType" eSuperTypes="#//DataType"/>
<eClassifiers xsi:type="ecore:EClass" name="Property" eSuperTypes="#//StructuralFeature">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="aggregation" eType="#//AggregationKind"
defaultValueLiteral="none"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isDerived" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isDerivedUnion" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="subsettedProperty" upperBound="-1"
eType="#//Property"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="opposite" eType="#//Property"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="clazz" lowerBound="1" eType="#//Class"
eOpposite="#//Class/ownedAttribute"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="signature" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
volatile="true" transient="true" derived="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StructuralFeature" abstract="true" eSuperTypes="#//Feature #//MultiplicityElement #//TypedElement"/>
<eClassifiers xsi:type="ecore:EClass" name="Type" abstract="true" eSuperTypes="#//PackageableElement"/>
<eClassifiers xsi:type="ecore:EClass" name="TypedElement" abstract="true" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="type" lowerBound="1" eType="#//Type"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FinalState" eSuperTypes="#//Vertex"/>
<eClassifiers xsi:type="ecore:EClass" name="Pseudostate" eSuperTypes="#//Vertex"/>
<eClassifiers xsi:type="ecore:EClass" name="StateMachineHandler" eSuperTypes="#//Object">
<eStructuralFeatures xsi:type="ecore:EReference" name="state" lowerBound="1" eType="#//Vertex"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="transition" lowerBound="1"
eType="#//Transition"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isSuspended" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="effectCount" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="0"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="effectNo" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="0"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="stateMachine" lowerBound="1"
eType="#//StateMachine"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="effect" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="&quot;&quot;"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="calledFrom" eType="#//StateMachineHandler"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="itsClassID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="State" eSuperTypes="#//Namespace #//Vertex"/>
<eClassifiers xsi:type="ecore:EClass" name="StateMachine" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="transition" upperBound="-1"
eType="#//Transition" containment="true" eOpposite="#//Transition/container"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="subvertex" upperBound="-1"
eType="#//Vertex" containment="true" eOpposite="#//Vertex/container"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="operation" lowerBound="1"
eType="#//Operation" eOpposite="#//Operation/stateMachine"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="initialActive" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="rtc" lowerBound="1" eType="#//runToCompletion"
defaultValueLiteral="effect"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="trAttach" upperBound="-1"
eType="#//TrAttachment" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="calledOperation" eType="#//Operation"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="runToCompletion">
<eLiterals name="effect" literal="effect"/>
<eLiterals name="transition" value="1" literal="transition"/>
<eLiterals name="statemachine" value="2" literal="statemachine"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GlobalStateMachine" eSuperTypes="#//Object">
<eStructuralFeatures xsi:type="ecore:EReference" name="stateMachines" upperBound="-1"
eType="#//StateMachine"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="stateMachineHandlers" upperBound="-1"
eType="#//StateMachineHandler"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="stateMachineHandlerCount"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="constraintsAllTrue" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="hasReturnParam" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="paramCount" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="stateExitCount" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="stateExitNo" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="o" eType="#//Operation"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Transition" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1"
eType="#//Vertex"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="target" lowerBound="1"
eType="#//Vertex"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="container" lowerBound="1"
eType="#//StateMachine" eOpposite="#//StateMachine/transition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="attachment" eType="#//TrAttachment"
eOpposite="#//TrAttachment/transition"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TrAttachment" eSuperTypes="#//Object">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="guard" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="container" eType="#//StateMachine"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="effects" upperBound="-1"
eType="#//Effect" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="transition" eType="#//Transition"
eOpposite="#//Transition/attachment"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Effect" eSuperTypes="#//Object">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="effect" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Vertex" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="outgoing" upperBound="-1"
eType="#//Transition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="incoming" upperBound="-1"
eType="#//Transition"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="container" lowerBound="1"
eType="#//StateMachine" eOpposite="#//StateMachine/subvertex"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Object">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="ObjectID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Tag" eSuperTypes="#//Object">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="elements" upperBound="-1"
eType="#//Element"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Model" eSuperTypes="#//Object">
<eStructuralFeatures xsi:type="ecore:EReference" name="clazz" upperBound="-1"
eType="#//Class" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="enumerations" upperBound="-1"
eType="#//Enumeration" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="packages" upperBound="-1"
eType="#//Package" containment="true"/>
</eClassifiers>
</ecore:EPackage>

--------------060907040706020609010002
Content-Type: text/xml;
name="modell"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="modell"

<?xml version="1.0" encoding="ASCII"?>
<rmof:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rmof="http:///rmof/rmof.ecore" ObjectID="9132b3">
<clazz ObjectID="305318" name="Boolean"/>
<clazz ObjectID="10cbdbd" name="Integer"/>
<clazz ObjectID="11253ac" name="String"/>
<clazz ObjectID="183c533" name="Class" qualifiedName="" general="//@clazz.4" superClass="//@clazz.4">
<ownedAttribute ObjectID="1d5e75e" name="ownedAttribute" qualifiedName="" upper="-1" type="//@clazz.22" aggregation="composite" opposite="//@clazz.22/@ownedAttribute.5" defaultValue="null"/>
<ownedAttribute ObjectID="1c10295" name="superClass" qualifiedName="" upper="-1" type="//@clazz.3" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="15c7850" name="ownedOperation" qualifiedName="" upper="-1" type="//@clazz.16" aggregation="composite" opposite="//@clazz.16/@ownedAttribute.3" defaultValue="null"/>
</clazz>
<clazz ObjectID="118cba5" name="Classifier" qualifiedName="" isAbstract="true" general="//@clazz.15 //@clazz.24" superClass="//@clazz.15 //@clazz.24">
<ownedAttribute ObjectID="1e944bf" name="isAbstract" qualifiedName="" lower="1" type="//@clazz.0" defaultValue="false"/>
<ownedAttribute ObjectID="67860a" name="attribute" qualifiedName="" upper="-1" type="//@clazz.22" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="f11c96" name="feature" qualifiedName="" upper="-1" type="//@clazz.12" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="12f0ec3" name="general" qualifiedName="" upper="-1" type="//@clazz.4" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="1c350cd" name="inheritedMember" qualifiedName="" upper="-1" type="//@clazz.14" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="1b60321" name="package" qualifiedName="" type="//@clazz.14" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="1cf69b1" name="Comment" qualifiedName="" general="//@clazz.8" superClass="//@clazz.8">
<ownedAttribute ObjectID="163b7cb" name="body" qualifiedName="" lower="1" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="16f5d2f" name="annotatedElement" qualifiedName="" upper="-1" type="//@clazz.8" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="9823a1" name="Constraint" qualifiedName="" general="//@clazz.18" superClass="//@clazz.18">
<ownedAttribute ObjectID="d1e855" name="constrainedElement" qualifiedName="" upper="-1" type="//@clazz.8" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="1c9f839" name="context" qualifiedName="" type="//@clazz.15" aggregation="shared" opposite="//@clazz.15/@ownedAttribute.4" defaultValue="null"/>
<ownedAttribute ObjectID="31ac08" name="specification" qualifiedName="" type="//@clazz.16" aggregation="composite" defaultValue="null"/>
</clazz>
<clazz ObjectID="296d15" name="DataType" qualifiedName="" isAbstract="true" general="//@clazz.4" superClass="//@clazz.4"/>
<clazz ObjectID="68952e" name="Element" qualifiedName="" isAbstract="true" general="//@clazz.35" superClass="//@clazz.35">
<ownedAttribute ObjectID="3bb54b" name="ownedComment" qualifiedName="" type="//@clazz.5" aggregation="composite" defaultValue="null"/>
<ownedAttribute ObjectID="18ac638" name="ownedElement" qualifiedName="" upper="-1" type="//@clazz.8" aggregation="composite" opposite="//@clazz.8/@ownedAttribute.2" defaultValue="null"/>
<ownedAttribute ObjectID="1c985d7" name="owner" qualifiedName="" type="//@clazz.8" aggregation="shared" opposite="//@clazz.8/@ownedAttribute.1" defaultValue="null"/>
</clazz>
<clazz ObjectID="103f024" name="ElementImport" qualifiedName="" general="//@clazz.8" superClass="//@clazz.8">
<ownedAttribute ObjectID="190bb73" name="importedElement" qualifiedName="" lower="1" type="//@clazz.18" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="67ab7f" name="importingNamespace" qualifiedName="" lower="1" type="//@clazz.15" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="1774d6a" name="Enumeration" qualifiedName="" general="//@clazz.7" superClass="//@clazz.7">
<ownedAttribute ObjectID="120bcb" name="ownedLiteral" qualifiedName="" lower="1" upper="-1" type="//@clazz.11" aggregation="composite" opposite="//@clazz.11/@ownedAttribute.0"/>
</clazz>
<clazz ObjectID="16fac64" name="EnumerationLiteral" qualifiedName="" superClass="//@clazz.18">
<ownedAttribute ObjectID="e21a7" name="enumeration" qualifiedName="" lower="1" type="//@clazz.10" aggregation="shared" opposite="//@clazz.10/@ownedAttribute.0"/>
</clazz>
<clazz ObjectID="4a28f2" name="Feature" qualifiedName="" isAbstract="true" general="//@clazz.14" superClass="//@clazz.14">
<ownedAttribute ObjectID="1cebc46" name="featuringClassifier" qualifiedName="" lower="1" upper="-1" type="//@clazz.3" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="d90d71" name="MultiplicityElement" qualifiedName="" isAbstract="true" general="//@clazz.8" superClass="//@clazz.8">
<ownedAttribute ObjectID="978023" name="isOrdered" qualifiedName="" lower="1" type="//@clazz.0" defaultValue="false"/>
<ownedAttribute ObjectID="7ec2b8" name="isUnique" qualifiedName="" lower="1" type="//@clazz.0" defaultValue="true"/>
<ownedAttribute ObjectID="1ab04cf" name="lower" qualifiedName="" lower="1" type="//@clazz.1" defaultValue="1"/>
<ownedAttribute ObjectID="486f7d" name="upper" qualifiedName="" lower="1" type="//@clazz.1" defaultValue="1"/>
</clazz>
<clazz ObjectID="b83276" name="NamedElement" qualifiedName="" isAbstract="true" general="//@clazz.8" superClass="//@clazz.8">
<ownedAttribute ObjectID="19a48b2" name="name" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="f0f0eb" name="qualifiedName" qualifiedName="" type="//@clazz.2" isDerived="true" defaultValue="null"/>
<ownedAttribute ObjectID="acc49a" name="namespace" qualifiedName="" type="//@clazz.15" aggregation="shared" opposite="//@clazz.15/@ownedAttribute.1" defaultValue="null"/>
</clazz>
<clazz ObjectID="16fda16" name="Namespace" qualifiedName="" isAbstract="true" general="//@clazz.14" superClass="//@clazz.14">
<ownedAttribute ObjectID="155a8d0" name="member" qualifiedName="" upper="-1" type="//@clazz.14" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="11f2e1a" name="ownedMember" qualifiedName="" upper="-1" type="//@clazz.14" aggregation="composite" opposite="//@clazz.14/@ownedAttribute.2" defaultValue="null"/>
<ownedAttribute ObjectID="11131ca" name="elementImport" qualifiedName="" upper="-1" type="//@clazz.18" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="168546a" name="importedMember" qualifiedName="" upper="-1" type="//@clazz.18" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="1a7ccfc" name="ownedRule" qualifiedName="" upper="-1" type="//@clazz.6" aggregation="composite" opposite="//@clazz.6/@ownedAttribute.1" defaultValue="null"/>
<ownedAttribute ObjectID="598a6f" name="packageImport" qualifiedName="" upper="-1" type="//@clazz.18" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="b219f9" name="Operation" qualifiedName="" superClass="//@clazz.12 //@clazz.15">
<ownedAttribute ObjectID="413ebc" name="ownedParameter" qualifiedName="" upper="-1" type="//@clazz.20" aggregation="composite" opposite="//@clazz.20/@ownedAttribute.1" defaultValue="null"/>
<ownedAttribute ObjectID="1d9a291" name="stateMachine" qualifiedName="" lower="1" type="//@clazz.30" aggregation="composite" defaultValue="null"/>
<ownedAttribute ObjectID="1cb6d4c" name="calledFromStateMachine" qualifiedName="" lower="1" type="//@clazz.30" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="1f7adfe" name="clazz" qualifiedName="" lower="1" type="//@clazz.3" aggregation="shared" opposite="//@clazz.3/@ownedAttribute.2" defaultValue="null"/>
<ownedAttribute ObjectID="35ee41" name="subOperationCallString" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="1fd76f7" name="effect" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="15629fd" name="calledParameters" upper="-1" type="//@clazz.2" defaultValue="null"/>
</clazz>
<clazz ObjectID="1b586fd" name="Package" qualifiedName="" general="//@clazz.15 //@clazz.18" superClass="//@clazz.15 //@clazz.18">
<ownedAttribute ObjectID="1f0678c" name="ownedMemberPackage" qualifiedName="" upper="-1" type="//@clazz.18" aggregation="composite" defaultValue="null"/>
<ownedAttribute ObjectID="7c6cbd" name="package" qualifiedName="" type="//@clazz.17" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="1554415" name="PackageableElement" qualifiedName="" isAbstract="true" general="//@clazz.14" superClass="//@clazz.14"/>
<clazz ObjectID="109ae90" name="PackageImport" qualifiedName="" general="//@clazz.8" superClass="//@clazz.8">
<ownedAttribute ObjectID="15fcb93" name="importedPackage" qualifiedName="" lower="1" type="//@clazz.17" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="5dc4c6" name="importingNamespace" qualifiedName="" lower="1" type="//@clazz.15" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="cc2998" name="Parameter" qualifiedName="" general="//@clazz.13 //@clazz.25" superClass="//@clazz.13 //@clazz.25">
<ownedAttribute ObjectID="8e4439" name="direction" qualifiedName="" lower="1" type="//@enumerations.2" defaultValue="in"/>
<ownedAttribute ObjectID="d74223" name="operation" qualifiedName="" lower="1" type="//@clazz.16" aggregation="shared" opposite="//@clazz.16/@ownedAttribute.0" defaultValue="null"/>
<ownedAttribute ObjectID="aae58e" name="defaultValue" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="2667e0" name="signature" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
</clazz>
<clazz ObjectID="12313f1" name="PrimitiveType" qualifiedName="" general="//@clazz.7" superClass="//@clazz.7"/>
<clazz ObjectID="1786c8a" name="Property" qualifiedName="" general="//@clazz.23" superClass="//@clazz.23">
<ownedAttribute ObjectID="2a77c3" name="aggregation" qualifiedName="" type="//@enumerations.1" defaultValue="none"/>
<ownedAttribute ObjectID="9eeb07" name="isDerived" qualifiedName="" lower="1" type="//@clazz.0" defaultValue="false"/>
<ownedAttribute ObjectID="ac357e" name="isDerivedUnion" qualifiedName="" lower="1" type="//@clazz.0" defaultValue="false"/>
<ownedAttribute ObjectID="f70998" name="subsettedProperty" qualifiedName="" upper="-1" type="//@clazz.22" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="67a932" name="opposite" qualifiedName="" type="//@clazz.22" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="1c48cbe" name="class" qualifiedName="" lower="1" type="//@clazz.3" aggregation="shared" opposite="//@clazz.3/@ownedAttribute.0" defaultValue="null"/>
<ownedAttribute ObjectID="172f092" name="defaultValue" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="407c9f" name="signature" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="1d30b16" name="description" type="//@clazz.2" defaultValue="null"/>
</clazz>
<clazz ObjectID="19b10cd" name="StructuralFeature" qualifiedName="" isAbstract="true" general="//@clazz.12 //@clazz.13 //@clazz.25" superClass="//@clazz.12 //@clazz.13 //@clazz.25"/>
<clazz ObjectID="17db9c4" name="Type" qualifiedName="" isAbstract="true" general="//@clazz.18" superClass="//@clazz.18"/>
<clazz ObjectID="5085ad" name="TypedElement" qualifiedName="" isAbstract="true" general="//@clazz.14" superClass="//@clazz.14">
<ownedAttribute ObjectID="7c4226" name="type" qualifiedName="" lower="1" type="//@clazz.24" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="1eaf4b3" name="FinalState" qualifiedName="" general="//@clazz.34" superClass="//@clazz.34"/>
<clazz ObjectID="1ef527d" name="Pseudostate" qualifiedName="" general="//@clazz.34" superClass="//@clazz.34"/>
<clazz ObjectID="817dd2" name="StateMachineHandler" qualifiedName="">
<ownedAttribute ObjectID="55334a" name="state" qualifiedName="" lower="1" type="//@clazz.34" aggregation="shared" defaultValue="null" description=""/>
<ownedAttribute ObjectID="12bdd12" name="transition" qualifiedName="" lower="1" type="//@clazz.31" aggregation="shared" defaultValue="null" description=""/>
<ownedAttribute ObjectID="5b8a10" name="currStateExit" qualifiedName="" lower="1" type="//@clazz.31" aggregation="shared" defaultValue="null" description=""/>
<ownedAttribute ObjectID="507f30" name="stateExitNo" qualifiedName="" lower="1" type="//@clazz.1" defaultValue="0" description="number of exit transition of current state"/>
<ownedAttribute ObjectID="87196c" name="isSuspended" qualifiedName="" lower="1" type="//@clazz.0" defaultValue="false"/>
<ownedAttribute ObjectID="80103d" name="effectCount" qualifiedName="" lower="1" type="//@clazz.1" defaultValue="0" description="Effect Counter"/>
<ownedAttribute ObjectID="12fce0c" name="effectNo" qualifiedName="" lower="1" type="//@clazz.1" defaultValue="0" description="Effect Number"/>
<ownedAttribute ObjectID="227d3d" name="stateMachine" qualifiedName="" lower="1" type="//@clazz.30" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="213223" name="effect" qualifiedName="" lower="1" type="//@clazz.2" defaultValue="&quot;&quot;" description=""/>
<ownedAttribute ObjectID="1df8f67" name="stateExitCount" lower="1" type="//@clazz.1" defaultValue="0"/>
<ownedAttribute ObjectID="184eb2c" name="calledFrom" qualifiedName="" type="//@clazz.28" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="1b12d9d" name="itsClassID" type="//@clazz.2" defaultValue="null"/>
</clazz>
<clazz ObjectID="904219" name="State" qualifiedName="" general="//@clazz.15 //@clazz.34" superClass="//@clazz.15 //@clazz.34"/>
<clazz ObjectID="113c960" name="StateMachine" qualifiedName="" general="//@clazz.14" superClass="//@clazz.14">
<ownedAttribute ObjectID="1335f10" name="transition" qualifiedName="" upper="-1" type="//@clazz.31" aggregation="composite" opposite="//@clazz.31/@ownedAttribute.2" defaultValue="null"/>
<ownedAttribute ObjectID="663caf" name="subvertex" qualifiedName="" upper="-1" type="//@clazz.34" aggregation="composite" opposite="//@clazz.34/@ownedAttribute.2" defaultValue="null"/>
<ownedAttribute ObjectID="c4b9" name="operation" lower="1" type="//@clazz.16" aggregation="composite" defaultValue="null"/>
<ownedAttribute ObjectID="136e029" name="initialActive" qualifiedName="" lower="1" type="//@clazz.0" defaultValue="false" description=""/>
<ownedAttribute ObjectID="1418853" name="trAttach" qualifiedName="" upper="-1" type="//@clazz.32" aggregation="shared" opposite="//@clazz.32/@ownedAttribute.1" defaultValue="null"/>
<ownedAttribute ObjectID="1a43c0" name="calledOperation" type="//@clazz.16" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="92089a" name="rtc" lower="1" type="//@enumerations.0" defaultValue="false"/>
</clazz>
<clazz ObjectID="16417e" name="Transition" qualifiedName="" general="//@clazz.14" superClass="//@clazz.14">
<ownedAttribute ObjectID="15715e2" name="source" qualifiedName="" lower="1" type="//@clazz.34" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="e2e186" name="target" qualifiedName="" lower="1" type="//@clazz.34" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="17acc05" name="container" qualifiedName="" lower="1" type="//@clazz.30" aggregation="composite" opposite="//@clazz.30/@ownedAttribute.0" defaultValue="null"/>
<ownedAttribute ObjectID="99c1ba" name="attachment" qualifiedName="" type="//@clazz.32" aggregation="shared" opposite="//@clazz.32/@ownedAttribute.3" defaultValue="null"/>
</clazz>
<clazz ObjectID="167213b" name="TrAttachment" qualifiedName="">
<ownedAttribute ObjectID="12a3c05" name="guard" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="b2601" name="container" qualifiedName="" type="//@clazz.30" aggregation="shared" opposite="//@clazz.30/@ownedAttribute.4" defaultValue="null"/>
<ownedAttribute ObjectID="1b67499" name="effects" qualifiedName="" upper="-1" type="//@clazz.33" aggregation="composite" defaultValue="null"/>
<ownedAttribute ObjectID="5061af" name="transition" qualifiedName="" type="//@clazz.31" aggregation="shared" opposite="//@clazz.31/@ownedAttribute.3" defaultValue="null"/>
</clazz>
<clazz ObjectID="18d964" name="Effect" qualifiedName="">
<ownedAttribute ObjectID="13c95f8" name="effect" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
</clazz>
<clazz ObjectID="19af885" name="Vertex" qualifiedName="" general="//@clazz.14" superClass="//@clazz.14">
<ownedAttribute ObjectID="4bbee7" name="outgoing" qualifiedName="" upper="-1" type="//@clazz.31" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="5f8ae" name="incoming" qualifiedName="" upper="-1" type="//@clazz.31" aggregation="shared" defaultValue="null"/>
<ownedAttribute ObjectID="19704c2" name="container" qualifiedName="" lower="1" type="//@clazz.30" aggregation="shared" opposite="//@clazz.30/@ownedAttribute.1" defaultValue="null"/>
</clazz>
<clazz ObjectID="3fecbf" name="Object" qualifiedName="" isAbstract="true"/>
<clazz ObjectID="1044cc" name="Tag" qualifiedName="">
<ownedAttribute ObjectID="19475c7" name="name" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="2b5065" name="value" qualifiedName="" type="//@clazz.2" defaultValue="null"/>
<ownedAttribute ObjectID="26354a" name="elements" qualifiedName="" upper="-1" type="//@clazz.8" aggregation="shared" defaultValue="null"/>
</clazz>
<clazz ObjectID="19f7ee4" name="Model" qualifiedName="">
<ownedAttribute ObjectID="d1e077" name="clazz" qualifiedName="" upper="-1" type="//@clazz.3" aggregation="composite" defaultValue="null"/>
<ownedAttribute ObjectID="1c61522" name="enumerations" upper="-1" type="//@clazz.10" aggregation="composite" defaultValue="null"/>
<ownedAttribute ObjectID="1970bf2" name="packages" upper="-1" type="//@clazz.17" aggregation="composite" defaultValue="null"/>
</clazz>
<clazz ObjectID="179b234" name="GlobalStateMachine" superClass="//@clazz.30">
<ownedAttribute ObjectID="13344a5" name="stateMachines" qualifiedName="" upper="-1" type="//@clazz.30" aggregation="shared" defaultValue="null" description="managed by GlobalStateMachine"/>
<ownedAttribute
Re: Error in CDO (DBException) [message #426453 is a reply to message #426452] Tue, 06 January 2009 16:56 Go to previous message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
I tried it also in cdo 1.0.4 but there i get the following error:

SQL Exception: Lexical error at line 1, column 137. Encountered: "\\"
(92), after : "".

The nsURI is http:///rmof/rmof.ecore . Is this a bug?


Jörg schrieb:
> Hello,
>
> i try to upload this model. Grounded on the rmof.ecore structure.
> This is the code i use for
>
> // Enable logging and tracing
> OMPlatform.INSTANCE.setDebugging(true);
> OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
> OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOL E);
>
> // Prepare container
> IManagedContainer container = ContainerUtil.createContainer();
> Net4jUtil.prepareContainer(container); // Register Net4j factories
> TCPUtil.prepareContainer(container); // Register TCP factories
> CDOUtil.prepareContainer(container, false); // Register CDO
> factories
> // container.activate();
>
> // Create connector
> connector = TCPUtil.getConnector(container, "localhost:2036");
>
> // Create configuration
> CDOSessionConfiguration configuration =
> CDOUtil.createSessionConfiguration();
> configuration.setConnector(connector);
> configuration.setRepositoryName("repo1");
>
> // Open session
> session = configuration.openSession();
> session.getPackageRegistry().putEPackage(RmofPackage.eINSTAN CE);
>
> // Open transaction
> CDOTransaction transaction = session.openTransaction();
>
> // Get or create resource
> String res = "/layer0";
> // transaction.createResource(res);
> CDOResource resource = transaction.getOrCreateResource(res);
>
> //Adding the content
> //...
> resourcecopy.getContents().add(EcoreUtil.copy((EObject)
> entry.getValue()));
>
>
> // Work with the resource and commit the transaction
> transaction.commit();
> logger.debug("CDO commit");
>
> session.close();
> LifecycleUtil.deactivate(connector);
>
>
> Thanks for your help.
> Greetings
>
> Stefan Winkler schrieb:
>> Hi,
>>> i use CDO 2.0m4 with derby DB on Eclipse 3.5m4. Now i try to
>>> upload/download some resources. And i get everytime this error:
>>>
>>> [ERROR] Rollback in DBStore: org.eclipse.net4j.db.DBException: SQL
>>> Exception: An attempt was made to get a data value of type 'VARCHAR'
>>> from a data value of type
>>> 'org.eclipse.emf.cdo.internal.common.revision.CDOListImpl'.
>>>
>>> Can somebody say what this exactly mean? I get often errors with cdo
>>> 2.0m4 has this version lots of errors or is derby not good to use for
>>> the server?
>> Can you be a bit more specific on what you are trying to write? Maybe
>> describe your model and what values you set before committing?
>>
>> Cheers,
>> Stefan
>
Previous Topic:xmi.FeatureNotFoundException on opening the ecore file thro New Wizard plugin
Next Topic:java.lang.NumberFormatException when reading a model
Goto Forum:
  


Current Time: Thu Apr 25 17:03:26 GMT 2024

Powered by FUDForum. Page generated in 0.03357 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top