You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org> on 2009/02/05 14:17:59 UTC

[jira] Commented: (TUSCANY-2664) Databinding issue when axis2 service uses OMElement as parameter types

    [ https://issues.apache.org/jira/browse/TUSCANY-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670746#action_12670746 ] 

Ramkumar Ramalingam commented on TUSCANY-2664:
----------------------------------------------

I will take back my previous comment as the image parameter seem to work fine and for the source parameter we have a JIRA TUSCANY-2387 already.

The OMElement seems to throw a different error this time.......

org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.interfacedef.util.FaultException: org.apache.tuscany.sca.databinding.TransformationException: org.apache.tuscany.sca.databinding.TransformationException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 6 counts of IllegalAnnotationExceptions
org.apache.axiom.om.OMElement is an interface, and JAXB can't handle interfaces.
	this problem is related to the following location:
		at org.apache.axiom.om.OMElement
		at protected org.apache.axiom.om.OMElement org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile.arg0
		at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile
org.apache.axiom.om.OMElement does not have a no-arg default constructor.
	this problem is related to the following location:
		at org.apache.axiom.om.OMElement
		at protected org.apache.axiom.om.OMElement org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile.arg0
		at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile
org.apache.axiom.om.OMXMLParserWrapper is an interface, and JAXB can't handle interfaces.
	this problem is related to the following location:
		at org.apache.axiom.om.OMXMLParserWrapper
		at public abstract org.apache.axiom.om.OMXMLParserWrapper org.apache.axiom.om.OMElement.getBuilder()
		at org.apache.axiom.om.OMElement
		at protected org.apache.axiom.om.OMElement org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile.arg0
		at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile
org.apache.axiom.om.OMXMLParserWrapper does not have a no-arg default constructor.
	this problem is related to the following location:
		at org.apache.axiom.om.OMXMLParserWrapper
		at public abstract org.apache.axiom.om.OMXMLParserWrapper org.apache.axiom.om.OMElement.getBuilder()
		at org.apache.axiom.om.OMElement
		at protected org.apache.axiom.om.OMElement org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile.arg0
		at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile
org.apache.axiom.om.OMNamespace is an interface, and JAXB can't handle interfaces.
	this problem is related to the following location:
		at org.apache.axiom.om.OMNamespace
		at public abstract org.apache.axiom.om.OMNamespace org.apache.axiom.om.OMElement.getNamespace() throws org.apache.axiom.om.OMException
		at org.apache.axiom.om.OMElement
		at protected org.apache.axiom.om.OMElement org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile.arg0
		at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile
org.apache.axiom.om.OMNamespace does not have a no-arg default constructor.
	this problem is related to the following location:
		at org.apache.axiom.om.OMNamespace
		at public abstract org.apache.axiom.om.OMNamespace org.apache.axiom.om.OMElement.getNamespace() throws org.apache.axiom.om.OMException
		at org.apache.axiom.om.OMElement
		at protected org.apache.axiom.om.OMElement org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile.arg0
		at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.jaxws.UploadOMElementFile

	at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:157)
	at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:310)
	at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:163)
	at $Proxy4.uploadOMElementFile(Unknown Source)
	at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferClient.uploadOMElementFileForward(FileTransferClient.java:51)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:612)
	at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:162)
	at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
	at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:310)
	at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:163)
	at $Proxy3.uploadOMElementFileForward(Unknown Source)
	at org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferMTOMTestCase.testOMElementFileTransfer(FileTransferMTOMTestCase.java:113)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:612)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

> Databinding issue when axis2 service uses OMElement as parameter types
> ----------------------------------------------------------------------
>
>                 Key: TUSCANY-2664
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2664
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP SP2, IBM JDK 1.5
>            Reporter: Ramkumar Ramalingam
>             Fix For: Java-SCA-Next
>
>
> I am seeing the below shown exception, when axis2 service uses OMElement as parameter types
> @Remotable
> public interface FileUploadService {
>     public String saveFile(String filename, OMElement attachment) throws Exception;
> }
> Exception in thread "main" java.lang.IllegalArgumentException: Pass-by-value is not supported for the given object
>     at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBinding.copy(JavaBeansDataBinding.java:106)
>     at org.apache.tuscany.sca.databinding.DefaultDataBindingExtensionPoint$LazyDataBinding.copy(DefaultDataBindingExtensionPoint.java:155)
>     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.copy(PassByValueInterceptor.java:256)
>     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.copyFault(PassByValueInterceptor.java:136)
>     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:119)
>     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:112)
>     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)
>     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)
>     at $Proxy14.getGreetings(Unknown Source)
>     at helloworld.HelloWorldClient.main(HelloWorldClient.java:47)
> Caused by: java.io.NotSerializableException: com.sun.xml.bind.v2.model.nav.ReflectionNavigator$4
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1108)
>     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:324)
>     at java.util.ArrayList.writeObject(ArrayList.java:595)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:615)
>     at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:972)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1426)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1462)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1434)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:324)
>     at java.util.ArrayList.writeObject(ArrayList.java:595)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:615)
>     at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:972)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1426)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1462)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1434)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1462)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1434)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:324)
>     at java.util.ArrayList.writeObject(ArrayList.java:595)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:615)
>     at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:972)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1426)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1462)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1434)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1462)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1434)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1462)
>     at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:413)
>     at java.lang.Throwable.writeObject(Throwable.java:320)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:615)
>     at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:972)
>     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1426)
>     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1377)
>     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:324)
>     at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBinding.copy(JavaBeansDataBinding.java:75)
>     ... 10 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.