You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "Millies, Sebastian" <Se...@ids-scheer.com> on 2010/11/05 16:02:39 UTC
Meaning of ContributionWriteException?
Hello there,
I’m trying to call a service method over an RMI-Binding, passing a static SDO. I get the following exception:
org.apache.tuscany.sca.contribution.service.ContributionWriteException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
Without knowing further details, can anyone guess what this might mean and where I can look for
the cause of the problem?
n Sebastian
Re: Meaning of ContributionWriteException?
Posted by Luciano Resende <lu...@gmail.com>.
On Fri, Nov 5, 2010 at 11:02 AM, Millies, Sebastian
<Se...@ids-scheer.com> wrote:
> Hello there,
>
>
>
> I’m trying to call a service method over an RMI-Binding, passing a static
> SDO. I get the following exception:
>
>
>
> org.apache.tuscany.sca.contribution.service.ContributionWriteException:
> javax.xml.stream.XMLStreamException: Unbound namespace URI
> 'http://tuscany.apache.org/xmlns/sca/1.0'
>
>
>
>
>
> Without knowing further details, can anyone guess what this might mean and
> where I can look for
>
> the cause of the problem?
>
>
>
Are you trying to persist a composite from a contribution model by any chance ?
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: Meaning of ContributionWriteException?
Posted by Raymond Feng <en...@gmail.com>.
Are you on Tuscany 2.x? If so, the namespace should be http://tuscany.apache.org/xmlns/sca/1.1
Raymond
Sent from my iPhone
On Nov 5, 2010, at 8:02 AM, "Millies, Sebastian" <Se...@ids-scheer.com> wrote:
> Hello there,
>
>
>
> I��m trying to call a service method over an RMI-Binding, passing a static SDO. I get the following exception:
>
>
>
> org.apache.tuscany.sca.contribution.service.ContributionWriteException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
>
>
>
>
>
> Without knowing further details, can anyone guess what this might mean and where I can look for
>
> the cause of the problem?
>
>
>
> n Sebastian
>
>
Re: Meaning of ContributionWriteException?
Posted by Simon Nash <na...@apache.org>.
Millies, Sebastian wrote:
> no, including the xmnls Attribute in the binding definitio does not
> change the behavior. BTW, the tuscany-namespace has already been
> declared in the composite-element. -- Sebastian
>
OK, I'll try to recreate the problem and debug it. I still suspect
there's a missing namespace when doing the serialization.
IIRC the composite element isn't included when a callable reference
is serialized, so having the namespace defined there might not be enough
to make it available to the callable reference serialization code.
Simon
>
> -----Original Message-----
> From: Simon Nash [mailto:nash@apache.org]
> Sent: Monday, November 08, 2010 11:56 AM
> To: user@tuscany.apache.org
> Subject: Re: Meaning of ContributionWriteException?
>
> Millies, Sebastian wrote:
>> yes, it does:
>>
>> <sca:service name="StaticDataFactory">
>> <sca:interface.java interface="com.softwareag.ps.platform.sdohelper.StaticDataFactory"/>
>> <sca:binding.sca/>
>> <tuscany:binding.rmi host="localhost" port="8785" serviceName="MRManagementStaticDataFactoryRMI"/>
>> </sca:service>
>>
>> and the exception disappears when I remove the RMI-Binding and stick to binding.sca.
>> I do not understand why that should be so. Is it a limitation or bug in Tuscany 1.6?
>>
>> Also, why should this marshalling error surface as a ContributionWriteException
>> in my test case?
>>
> I suspect that the problem is caused by the XML namespace corresponding to
> the "tuscany" prefix not being available when the service definition is
> serialized. Please can you confirm this by changing the service definition
> to the following:
>
> <sca:service name="StaticDataFactory">
> <sca:interface.java interface="com.softwareag.ps.platform.sdohelper.StaticDataFactory"/>
> <sca:binding.sca/>
> <tuscany:binding.rmi xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
> host="localhost" port="8785" serviceName="MRManagementStaticDataFactoryRMI"/>
> </sca:service>
>
> Simon
>
>> -- Sebastian
>>
>>
>> -----Original Message-----
>> From: Simon Nash [mailto:nash@apache.org]
>> Sent: Friday, November 05, 2010 7:48 PM
>> To: user@tuscany.apache.org
>> Subject: Re: Meaning of ContributionWriteException?
>>
>> Millies, Sebastian wrote:
>>> Hello there,
>>>
>>> I am not using policies at the moment.
>>> I am on Tuscany 1.6.
>>>
>>> Here are two stack traces. Thanks for looking at it. I won't be able to supply more information
>>> at the moment, because I won't be in the office. If I can't solve the problem, I'll try to reduce
>>> it to something small.
>>>
>>> The ContributionWriteException only shows up in my Eclipse console when I run
>>> the test. The second stack trace seems to be the underlying cause, showing
>>> RMI marshalling problems.
>>>
>> There's an important clue in the second stack trace. The problem occurs when
>> trying to marshal a CallableReference using RMI. Does this callable reference
>> contain a Tuscany-specific binding?
>>
>> Simon
>>
>>> -- Sebastian
>>>
>
RE: Meaning of ContributionWriteException?
Posted by "Millies, Sebastian" <Se...@ids-scheer.com>.
no, including the xmnls Attribute in the binding definitio does not
change the behavior. BTW, the tuscany-namespace has already been
declared in the composite-element. -- Sebastian
-----Original Message-----
From: Simon Nash [mailto:nash@apache.org]
Sent: Monday, November 08, 2010 11:56 AM
To: user@tuscany.apache.org
Subject: Re: Meaning of ContributionWriteException?
Millies, Sebastian wrote:
> yes, it does:
>
> <sca:service name="StaticDataFactory">
> <sca:interface.java interface="com.softwareag.ps.platform.sdohelper.StaticDataFactory"/>
> <sca:binding.sca/>
> <tuscany:binding.rmi host="localhost" port="8785" serviceName="MRManagementStaticDataFactoryRMI"/>
> </sca:service>
>
> and the exception disappears when I remove the RMI-Binding and stick to binding.sca.
> I do not understand why that should be so. Is it a limitation or bug in Tuscany 1.6?
>
> Also, why should this marshalling error surface as a ContributionWriteException
> in my test case?
>
I suspect that the problem is caused by the XML namespace corresponding to
the "tuscany" prefix not being available when the service definition is
serialized. Please can you confirm this by changing the service definition
to the following:
<sca:service name="StaticDataFactory">
<sca:interface.java interface="com.softwareag.ps.platform.sdohelper.StaticDataFactory"/>
<sca:binding.sca/>
<tuscany:binding.rmi xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
host="localhost" port="8785" serviceName="MRManagementStaticDataFactoryRMI"/>
</sca:service>
Simon
> -- Sebastian
>
>
> -----Original Message-----
> From: Simon Nash [mailto:nash@apache.org]
> Sent: Friday, November 05, 2010 7:48 PM
> To: user@tuscany.apache.org
> Subject: Re: Meaning of ContributionWriteException?
>
> Millies, Sebastian wrote:
>> Hello there,
>>
>> I am not using policies at the moment.
>> I am on Tuscany 1.6.
>>
>> Here are two stack traces. Thanks for looking at it. I won't be able to supply more information
>> at the moment, because I won't be in the office. If I can't solve the problem, I'll try to reduce
>> it to something small.
>>
>> The ContributionWriteException only shows up in my Eclipse console when I run
>> the test. The second stack trace seems to be the underlying cause, showing
>> RMI marshalling problems.
>>
> There's an important clue in the second stack trace. The problem occurs when
> trying to marshal a CallableReference using RMI. Does this callable reference
> contain a Tuscany-specific binding?
>
> Simon
>
>> -- Sebastian
>>
Re: Meaning of ContributionWriteException?
Posted by Simon Nash <na...@apache.org>.
Millies, Sebastian wrote:
> yes, it does:
>
> <sca:service name="StaticDataFactory">
> <sca:interface.java interface="com.softwareag.ps.platform.sdohelper.StaticDataFactory"/>
> <sca:binding.sca/>
> <tuscany:binding.rmi host="localhost" port="8785" serviceName="MRManagementStaticDataFactoryRMI"/>
> </sca:service>
>
> and the exception disappears when I remove the RMI-Binding and stick to binding.sca.
> I do not understand why that should be so. Is it a limitation or bug in Tuscany 1.6?
>
> Also, why should this marshalling error surface as a ContributionWriteException
> in my test case?
>
I suspect that the problem is caused by the XML namespace corresponding to
the "tuscany" prefix not being available when the service definition is
serialized. Please can you confirm this by changing the service definition
to the following:
<sca:service name="StaticDataFactory">
<sca:interface.java interface="com.softwareag.ps.platform.sdohelper.StaticDataFactory"/>
<sca:binding.sca/>
<tuscany:binding.rmi xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
host="localhost" port="8785" serviceName="MRManagementStaticDataFactoryRMI"/>
</sca:service>
Simon
> -- Sebastian
>
>
> -----Original Message-----
> From: Simon Nash [mailto:nash@apache.org]
> Sent: Friday, November 05, 2010 7:48 PM
> To: user@tuscany.apache.org
> Subject: Re: Meaning of ContributionWriteException?
>
> Millies, Sebastian wrote:
>> Hello there,
>>
>> I am not using policies at the moment.
>> I am on Tuscany 1.6.
>>
>> Here are two stack traces. Thanks for looking at it. I won't be able to supply more information
>> at the moment, because I won't be in the office. If I can't solve the problem, I'll try to reduce
>> it to something small.
>>
>> The ContributionWriteException only shows up in my Eclipse console when I run
>> the test. The second stack trace seems to be the underlying cause, showing
>> RMI marshalling problems.
>>
> There's an important clue in the second stack trace. The problem occurs when
> trying to marshal a CallableReference using RMI. Does this callable reference
> contain a Tuscany-specific binding?
>
> Simon
>
>> -- Sebastian
>>
RE: Meaning of ContributionWriteException?
Posted by "Millies, Sebastian" <Se...@ids-scheer.com>.
yes, it does:
<sca:service name="StaticDataFactory">
<sca:interface.java interface="com.softwareag.ps.platform.sdohelper.StaticDataFactory"/>
<sca:binding.sca/>
<tuscany:binding.rmi host="localhost" port="8785" serviceName="MRManagementStaticDataFactoryRMI"/>
</sca:service>
and the exception disappears when I remove the RMI-Binding and stick to binding.sca.
I do not understand why that should be so. Is it a limitation or bug in Tuscany 1.6?
Also, why should this marshalling error surface as a ContributionWriteException
in my test case?
-- Sebastian
-----Original Message-----
From: Simon Nash [mailto:nash@apache.org]
Sent: Friday, November 05, 2010 7:48 PM
To: user@tuscany.apache.org
Subject: Re: Meaning of ContributionWriteException?
Millies, Sebastian wrote:
> Hello there,
>
> I am not using policies at the moment.
> I am on Tuscany 1.6.
>
> Here are two stack traces. Thanks for looking at it. I won't be able to supply more information
> at the moment, because I won't be in the office. If I can't solve the problem, I'll try to reduce
> it to something small.
>
> The ContributionWriteException only shows up in my Eclipse console when I run
> the test. The second stack trace seems to be the underlying cause, showing
> RMI marshalling problems.
>
There's an important clue in the second stack trace. The problem occurs when
trying to marshal a CallableReference using RMI. Does this callable reference
contain a Tuscany-specific binding?
Simon
> -- Sebastian
>
Re: Meaning of ContributionWriteException?
Posted by Simon Nash <na...@apache.org>.
Millies, Sebastian wrote:
> Hello there,
>
> I am not using policies at the moment.
> I am on Tuscany 1.6.
>
> Here are two stack traces. Thanks for looking at it. I won't be able to supply more information
> at the moment, because I won't be in the office. If I can't solve the problem, I'll try to reduce
> it to something small.
>
> The ContributionWriteException only shows up in my Eclipse console when I run
> the test. The second stack trace seems to be the underlying cause, showing
> RMI marshalling problems.
>
There's an important clue in the second stack trace. The problem occurs when
trying to marshal a CallableReference using RMI. Does this callable reference
contain a Tuscany-specific binding?
Simon
> -- Sebastian
>
> ============================================================================================================
> INFO: Starting node: mappingcomponentserver.composite
> ... Started ...
> 05.11.2010 17:21:05 org.apache.tuscany.sca.assembly.xml.DefaultBeanModelProcessor
> SCHWERWIEGEND: ContributionWriteException occured due to : org.apache.tuscany.sca.contribution.service.ContributionWriteException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
> com.softwareag.ps.platform.exception.PSPTechnicalException: standard text: Es ist ein Fehler aufgetreten.
> at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImpl.save(MRManagementServiceImpl.java:83)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156)
> at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60)
> at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
> at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60)
> at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349)
> at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193)
> at $Proxy35.save(Unknown Source)
> at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImplTest.testSave(MRManagementServiceImplTest.java:137)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>
> ============================================================================================================
>
> java.lang.reflect.UndeclaredThrowableException: null
> at $Proxy37.store(Unknown Source) ~[na:na]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_21]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_21]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_21]
> at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_21]
> at org.apache.tuscany.sca.binding.rmi.provider.RMIReferenceInvoker.invokeTarget(RMIReferenceInvoker.java:79) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.binding.rmi.provider.RMIReferenceInvoker.invoke(RMIReferenceInvoker.java:56) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:55) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at $Proxy36.store(Unknown Source) ~[na:na]
> at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImpl.doSave(MRManagementServiceImpl.java:98) ~[na:na]
> at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImpl.save(MRManagementServiceImpl.java:79) ~[na:na]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_21]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_21]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_21]
> at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_21]
> at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at $Proxy35.save(Unknown Source) ~[na:na]
> at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImplTest.testSave(MRManagementServiceImplTest.java:137) ~[na:na]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_21]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_21]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_21]
> at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_21]
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) ~[na:na]
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) ~[na:na]
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) ~[na:na]
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) ~[na:na]
> at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) ~[na:na]
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) ~[na:na]
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) ~[na:na]
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) ~[na:na]
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) ~[na:na]
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) ~[na:na]
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) ~[na:na]
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) ~[na:na]
> at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) ~[na:na]
> at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) ~[na:na]
> at org.junit.runners.ParentRunner.run(ParentRunner.java:236) ~[na:na]
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) ~[na:na]
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) ~[na:na]
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) ~[na:na]
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) ~[na:na]
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) ~[na:na]
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) ~[na:na]
> Caused by: java.rmi.UnexpectedException: unexpected exception; nested exception is:
> java.rmi.MarshalException: error marshalling arguments; nested exception is:
> java.io.IOException: java.io.IOException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
> at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:196) ~[na:1.6.0_21]
> at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132) ~[na:1.6.0_21]
> ... 50 common frames omitted
> Caused by: java.rmi.MarshalException: error marshalling arguments; nested exception is:
> java.io.IOException: java.io.IOException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138) ~[na:1.6.0_21]
> at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178) ~[na:1.6.0_21]
> ... 51 common frames omitted
> Caused by: java.io.IOException: java.io.IOException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
> at org.apache.tuscany.sca.core.context.CallableReferenceImpl.writeExternal(CallableReferenceImpl.java:423) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1418) ~[na:1.6.0_21]
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390) ~[na:1.6.0_21]
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) ~[na:1.6.0_21]
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) ~[na:1.6.0_21]
> at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274) ~[na:1.6.0_21]
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) ~[na:1.6.0_21]
> ... 52 common frames omitted
>
RE: Meaning of ContributionWriteException?
Posted by "Millies, Sebastian" <Se...@ids-scheer.com>.
Hello there,
I am not using policies at the moment.
I am on Tuscany 1.6.
Here are two stack traces. Thanks for looking at it. I won't be able to supply more information
at the moment, because I won't be in the office. If I can't solve the problem, I'll try to reduce
it to something small.
The ContributionWriteException only shows up in my Eclipse console when I run
the test. The second stack trace seems to be the underlying cause, showing
RMI marshalling problems.
-- Sebastian
============================================================================================================
INFO: Starting node: mappingcomponentserver.composite
... Started ...
05.11.2010 17:21:05 org.apache.tuscany.sca.assembly.xml.DefaultBeanModelProcessor
SCHWERWIEGEND: ContributionWriteException occured due to : org.apache.tuscany.sca.contribution.service.ContributionWriteException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
com.softwareag.ps.platform.exception.PSPTechnicalException: standard text: Es ist ein Fehler aufgetreten.
at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImpl.save(MRManagementServiceImpl.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156)
at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60)
at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60)
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349)
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193)
at $Proxy35.save(Unknown Source)
at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImplTest.testSave(MRManagementServiceImplTest.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
============================================================================================================
java.lang.reflect.UndeclaredThrowableException: null
at $Proxy37.store(Unknown Source) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_21]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_21]
at org.apache.tuscany.sca.binding.rmi.provider.RMIReferenceInvoker.invokeTarget(RMIReferenceInvoker.java:79) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.binding.rmi.provider.RMIReferenceInvoker.invoke(RMIReferenceInvoker.java:56) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:55) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at $Proxy36.store(Unknown Source) ~[na:na]
at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImpl.doSave(MRManagementServiceImpl.java:98) ~[na:na]
at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImpl.save(MRManagementServiceImpl.java:79) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_21]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_21]
at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at $Proxy35.save(Unknown Source) ~[na:na]
at com.softwareag.ps.platform.mappingcomponent.impl.MRManagementServiceImplTest.testSave(MRManagementServiceImplTest.java:137) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_21]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_21]
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) ~[na:na]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) ~[na:na]
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) ~[na:na]
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) ~[na:na]
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) ~[na:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) ~[na:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) ~[na:na]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) ~[na:na]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) ~[na:na]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) ~[na:na]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) ~[na:na]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) ~[na:na]
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) ~[na:na]
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) ~[na:na]
at org.junit.runners.ParentRunner.run(ParentRunner.java:236) ~[na:na]
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) ~[na:na]
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) ~[na:na]
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) ~[na:na]
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) ~[na:na]
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) ~[na:na]
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) ~[na:na]
Caused by: java.rmi.UnexpectedException: unexpected exception; nested exception is:
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.IOException: java.io.IOException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:196) ~[na:1.6.0_21]
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132) ~[na:1.6.0_21]
... 50 common frames omitted
Caused by: java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.IOException: java.io.IOException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138) ~[na:1.6.0_21]
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178) ~[na:1.6.0_21]
... 51 common frames omitted
Caused by: java.io.IOException: java.io.IOException: javax.xml.stream.XMLStreamException: Unbound namespace URI 'http://tuscany.apache.org/xmlns/sca/1.0'
at org.apache.tuscany.sca.core.context.CallableReferenceImpl.writeExternal(CallableReferenceImpl.java:423) ~[tuscany-sca-all-1.7-SNAPSHOT.jar:1.7-SNAPSHOT]
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1418) ~[na:1.6.0_21]
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390) ~[na:1.6.0_21]
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) ~[na:1.6.0_21]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) ~[na:1.6.0_21]
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274) ~[na:1.6.0_21]
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) ~[na:1.6.0_21]
... 52 common frames omitted
Re: Meaning of ContributionWriteException?
Posted by Simon Laws <si...@googlemail.com>.
On Fri, Nov 5, 2010 at 3:02 PM, Millies, Sebastian
<Se...@ids-scheer.com> wrote:
> Hello there,
>
>
>
> I’m trying to call a service method over an RMI-Binding, passing a static
> SDO. I get the following exception:
>
>
>
> org.apache.tuscany.sca.contribution.service.ContributionWriteException:
> javax.xml.stream.XMLStreamException: Unbound namespace URI
> 'http://tuscany.apache.org/xmlns/sca/1.0'
>
>
>
>
>
> Without knowing further details, can anyone guess what this might mean and
> where I can look for
>
> the cause of the problem?
>
>
>
> n Sebastian
>
>
Hi Sebastien
There are a couple of places where we write out the composite model.
It does this for two reasons
1/ to evaluate the policy attachTo XPAth statements
2/ to evaluate the policy appliesTo XPath statements
It looks like the write is failing for some reason but I don't know
why of the top of my head. Do you have a stack trace?
The code to do the write accessed via...
org.apache.tuscany.sca.builder.impl.PolicyAppliesToBuilderImpl
org.apache.tuscany.sca.builder.impl.PolicyAttachToBuilderImpl
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com