You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <tu...@ws.apache.org> on 2007/08/23 21:38:28 UTC

[jira] Commented: (TUSCANY-1559) Exception flowing a simple Java bean through a Web service with no WSDL

    [ https://issues.apache.org/jira/browse/TUSCANY-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522243 ] 

ant elder commented on TUSCANY-1559:
------------------------------------

A way to "fix" this for now that i think would help a lot of users would be for the pass-by-value interceptor to not be inserted when the java component is wired from/to a binding or just  the axis2 binding or when the databinding is different or the axiom databinding. Need to change the interfaces around where the interceptor is inserted as that type of information ins't available in that part of the code right now.

> Exception flowing a simple Java bean through a Web service with no WSDL
> -----------------------------------------------------------------------
>
>                 Key: TUSCANY-1559
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1559
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Java Implementation Extension
>            Reporter: Jean-Sebastien Delfino
>             Fix For: Java-SCA-0.99
>
>         Attachments: helloworld-bean.zip
>
>
> To reproduce the problem, replace the string in the helloworld-ws-service sample with a simple JavaBean.
> You'll get the following exception when you run the test case in the sample:
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.995 sec <<< FAILURE!
> testServiceCall(helloworld.HelloWorldServerTestCase)  Time elapsed: 1.184 sec  <<< ERROR!
> java.lang.reflect.UndeclaredThrowableException
>         at $Proxy5.getGreetings(Unknown Source)
>         at helloworld.HelloWorldServerTestCase.testServiceCall(HelloWorldServerTestCase.java:56)
>         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 org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
>         at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
>         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>         at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
>         at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
>         at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:75)
>         at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:36)
>         at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
>         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>         at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         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 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> Caused by: org.apache.axis2.AxisFault: Pass-by-value is not supported for the given object
>         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434)
>         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>         at org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:87)
>         at org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:67)
>         at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:231)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:92)
>         ... 26 more
> Results :
> Tests in error: 
>   testServiceCall(helloworld.HelloWorldServerTestCase)
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org