[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.technology.mddi] Re: Modelbus toolkit tutorial. Part 6

Hi,


I still need to improve my understanding of modelbus ... Now I am able to execute the sampleOCLClient.


Everything runs fine until the instruction : Collection[] result = ocltool.consume_checkUML2(testmodel,constraints);


I get the following exception : org.eclipse.mddi.modelbus.adapter.user.consumer.ModelBusCommunicationException: Can't unmarshal response message
at the end of this console outputs.


An idea ?


0 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.registry.RegistryClient - Registry lookup result: 0 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.registry.RegistryClient - <?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns:abstract="http://modelbus/description/abstract";>
<abstract:ModelingServiceInterface name="TransformationService">
<service name="getAvailableTransformationNames">
<parameter name="transformationNames" type="/1" direction="return" lower="0" upper="-1"/>
</service>
<service name="executeTransformation">
<parameter name="transformationName" type="/1"/>
<parameter name="modelResult" type="/2" direction="return" lower="0" upper="-1"/>
<parameter name="inputModels" type="/2" upper="-1"/>
<parameter name="serverSideStore" type="/3"/>
<parameter name="rootDir" type="/4"/>
<serviceError name="TransformationNotExistingError" type="/1"/>
<serviceError name="MetaModelError" type="/1"/>
</service>
<service name="getAvailableTransformations">
<parameter name="transformationDescriptors" type="/2" direction="return" lower="0" upper="-1"/>
</service>
</abstract:ModelingServiceInterface>
<abstract:PrimitiveType name="string"/>
<abstract:ModelType name="model"/>
<abstract:PrimitiveType name="boolean"/>
<abstract:PrimitiveType name="String"/>
</xmi:XMI>


0 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.registry.RegistryClient - <?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:abstract="http://modelbus/description/abstract"; xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore";>
<abstract:ModelingServiceInterface name="OCLToolServiceInterface">
<service name="checkUML2">
<parameter name="UML2Model" type="/1"/>
<parameter name="Constraints" type="/2" upper="-1"/>
<parameter name="Result" type="/3" direction="out" upper="-1"/>
</service>
</abstract:ModelingServiceInterface>
<abstract:ModelType name="UML2Model"/>
<abstract:PrimitiveType name="string"/>
<abstract:ModelType name="OCLResult">
<content name="" metaClass="/4/OCLResult"/>
</abstract:ModelType>
<ecore:EPackage name="OCLResult" nsURI="http://oclresult.olso-project.berlios.de"; nsPrefix="oclresult">
<eClassifiers xsi:type="ecore:EClass" name="OCLResult">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="Constraint">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="EvaluationResult" upperBound="-1" eType="/4/ResultType"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ResultType">
<eStructuralFeatures xsi:type="ecore:EReference" name="belong_to" lowerBound="1" eType="/4/ModelObject" eOpposite="/4/ModelObject/result"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StringResult" eSuperTypes="/4/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanResult" eSuperTypes="/4/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IntResult" eSuperTypes="/4/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModelResult" eSuperTypes="/4/ResultType">
<eStructuralFeatures xsi:type="ecore:EReference" name="result" upperBound="-1" eType="/4/ModelObject"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FloatResult" eSuperTypes="/4/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EFloatObject"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModelObject">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="ModelID">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="result" eType="/4/ResultType" eOpposite="/4/ResultType/belong_to"/>
</eClassifiers>
</ecore:EPackage>
</xmi:XMI>


375 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.registry.RegistryClient - Registry lookup result: 375 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.registry.RegistryClient - <?xml version="1.0" encoding="UTF-8"?>
<tooldescription:ModelBusPackaging xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:abstract="http://modelbus/description/abstract"; xmlns:concrete="http://modelbus/description/concrete"; xmlns:tooldescription="http://modelbus/description";>
<content xsi:type="abstract:ModelingServiceInterface" name="TransformationService">
<service name="getAvailableTransformationNames">
<parameter name="transformationNames" type="//@content.2" direction="return" lower="0" upper="-1"/>
</service>
<service name="executeTransformation">
<parameter name="transformationName" type="//@content.2"/>
<parameter name="modelResult" type="//@content.1" direction="return" lower="0" upper="-1"/>
<parameter name="inputModels" type="//@content.1" upper="-1"/>
<parameter name="serverSideStore" type="//@content.4"/>
<parameter name="rootDir" type="//@content.5"/>
<serviceError name="TransformationNotExistingError" type="//@content.2"/>
<serviceError name="MetaModelError" type="//@content.2"/>
</service>
<service name="getAvailableTransformations">
<parameter name="transformationDescriptors" type="//@content.1" direction="return" lower="0" upper="-1"/>
</service>
</content>
<content xsi:type="abstract:ModelType" name="model"/>
<content xsi:type="abstract:PrimitiveType" name="string"/>
<content xsi:type="concrete:Tool" name="TransformationServiceTool" interface="//@content.0" platform="Java">
<property name="URL" value="http://193.174.152.34:8085/modelbus/modeling_services/TransformationServiceTool"/>
</content>
<content xsi:type="abstract:PrimitiveType" name="boolean"/>
<content xsi:type="abstract:PrimitiveType" name="String"/>
</tooldescription:ModelBusPackaging>


641 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.registry.RegistryClient - Registry lookup result: 641 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.registry.RegistryClient - <?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:abstract="http://modelbus/description/abstract"; xmlns:concrete="http://modelbus/description/concrete"; xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; xmlns:tooldescription="http://modelbus/description";>
<tooldescription:ModelBusPackaging name="ToolDescriptions">
<content xsi:type="tooldescription:ModelBusPackaging" name="ServicePackage">
<content xsi:type="abstract:ModelingServiceInterface" name="OCLToolServiceInterface">
<service name="checkUML2">
<parameter name="UML2Model" type="/0/@content.1/@content.1"/>
<parameter name="Constraints" type="/0/@content.1/@content.0" upper="-1"/>
<parameter name="Result" type="/0/@content.1/@content.2" direction="out" upper="-1"/>
</service>
</content>
</content>
<content xsi:type="tooldescription:ModelBusPackaging" name="TypePackage">
<content xsi:type="abstract:PrimitiveType" name="string"/>
<content xsi:type="abstract:ModelType" name="UML2Model"/>
<content xsi:type="abstract:ModelType" name="OCLResult">
<content name="" metaClass="/1/OCLResult"/>
</content>
<content xsi:type="abstract:ModelType" name="MetaModel"/>
<content xsi:type="abstract:ModelType" name="InstanceModel"/>
</content>
<content xsi:type="concrete:Tool" name="OCLTool" interface="/0/@content.0/@content.0">
<property name="URL" value="http://193.174.152.34:8081/modelbus/modeling_services/OCLTool"/>
</content>
</tooldescription:ModelBusPackaging>
<ecore:EPackage name="OCLResult" nsURI="http://oclresult.olso-project.berlios.de"; nsPrefix="oclresult">
<eClassifiers xsi:type="ecore:EClass" name="OCLResult">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="Constraint">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="EvaluationResult" upperBound="-1" eType="/1/ResultType"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ResultType">
<eStructuralFeatures xsi:type="ecore:EReference" name="belong_to" lowerBound="1" eType="/1/ModelObject" eOpposite="/1/ModelObject/result"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StringResult" eSuperTypes="/1/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanResult" eSuperTypes="/1/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IntResult" eSuperTypes="/1/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModelResult" eSuperTypes="/1/ResultType">
<eStructuralFeatures xsi:type="ecore:EReference" name="result" upperBound="-1" eType="/1/ModelObject"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FloatResult" eSuperTypes="/1/ResultType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="result">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EFloatObject"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModelObject">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="ModelID">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="result" eType="/1/ResultType" eOpposite="/1/ResultType/belong_to"/>
</eClassifiers>
</ecore:EPackage>
</xmi:XMI>


672 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.transport.TransportManager - Marshaler:org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.DefaultMarshaler@1bbd23f
750 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.DefaultSerializer - Non ModelType value:string : context Model inv: Package.allInstances()->forAll(p|p.ownedMember->select(c|c.oclIsTypeOf(Class))->size()<6)
750 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.transport.client.ws.DefaultWsInvocationSender - Call URL: http://193.174.152.34:8081/modelbus/modeling_services/OCLTool
766 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.transport.client.ws.DefaultWsInvocationSender - Call with Message: <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
<modelbus:checkUML2 xmlns:modelbus="http://www.eclipse.org/mddi/modelbus";>
<modelbus:UML2Model>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ASCII&quot;?&gt;
&lt;ecore:EPackage xmi:version=&quot;2.0&quot; xmlns:xmi=&quot;http://www.omg.org/XMI&quot; xmlns:ecore=&quot;http://www.eclipse.org/emf/2002/Ecore&quot;/&gt;
</modelbus:UML2Model>
<modelbus:Constraints>
<modelbus:item xsi:type="xsd:string">context Model inv: Package.allInstances()-&gt;forAll(p|p.ownedMember-&gt;select(c|c.oclIsTypeOf(Class))-&gt;size()&lt;6)</modelbus:item>
</modelbus:Constraints>
</modelbus:checkUML2>
</soapenv:Body>
1110 [main] DEBUG org.eclipse.mddi.modelbus.adapter.infrastructure.transport.client.ws.DefaultWsInvocationSender - Response Message: <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
<modelbus:checkUML2Response xmlns:modelbus="http://www.eclipse.org/mddi/modelbus";>
<modelbus:Result>
<modelbus:item>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ASCII&quot;?&gt;
&lt;oclresult:OCLResult xmi:version=&quot;2.0&quot; xmlns:xmi=&quot;http://www.omg.org/XMI&quot; xmlns:oclresult=&quot;http://oclresult.olso-project.berlios.de&quot; Constraint=&quot;context Model inv: Package.allInstances()-&gt;forAll(p|p.ownedMember-&gt;select(c|c.oclIsTypeOf(Class))-&gt;size()&amp;lt;6)&quot;/&gt;
</modelbus:item>
</modelbus:Result>
</modelbus:checkUML2Response>
</soapenv:Body>
org.eclipse.mddi.modelbus.adapter.user.consumer.ModelBusCommunicationException: Can't unmarshal response message
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.client.ws.DefaultWsInvocationSender.readResponseMessage(DefaultWsInvocationSender.java:193)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.client.ws.DefaultWsInvocationSender.invoke(DefaultWsInvocationSender.java:96)
at org.eclipse.mddi.modelbus.adapter.user.consumer.impl.GenericConsumerImpl.consume(GenericConsumerImpl.java:73)
at ocltool.OCLToolServiceInterfaceStub.consume_checkUML2(OCLToolServiceInterfaceStub.java:73)
at ocltool.SampleOclClient.main(SampleOclClient.java:51)
Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://oclresult.olso-project.berlios.de' not found. (default_resource.modelbus, 2, 261)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:149)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:155)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:884)
at org.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.Xmi2EmfConversion.convertFromString(Xmi2EmfConversion.java:71)
at org.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.DefaultSerializer.deserializeModel(DefaultSerializer.java:114)
at org.eclipse.mddi.modelbus.adapter.infrastructure.serialize.emf_xmi.DefaultSerializer.deserialize(DefaultSerializer.java:86)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.AbstractMarshaler.unmarshallSingleValue(AbstractMarshaler.java:203)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.AbstractMarshaler.unmarshal(AbstractMarshaler.java:146)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.AbstractMarshaler.unmarshal(AbstractMarshaler.java:267)
at org.eclipse.mddi.modelbus.adapter.infrastructure.transport.client.ws.DefaultWsInvocationSender.readResponseMessage(DefaultWsInvocationSender.java:191)
... 4 more