[ https://issues.apache.org/jira/browse/TUSCANY-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526939 ]
Simon Nash commented on TUSCANY-1686: ------------------------------------- I have been successful in getting a simple business exception to flow end to end over the Web Service binding. I'll clean up the code and post a patch tomorrow (Thursday). There are changes in binding-ws-axis2 and core-databinding. > Cannot throw business exceptions across the Web Service binding > --------------------------------------------------------------- > > Key: TUSCANY-1686 > URL: https://issues.apache.org/jira/browse/TUSCANY-1686 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Core Runtime > Affects Versions: Java-SCA-Next > Environment: Windows XP > Reporter: Simon Nash > Priority: Blocker > Fix For: Java-SCA-1.0 > > Attachments: jira1686.zip > > > I tried to throw a very simple business exception across the Web Service > binding. My test case is using explicit WSDL that was generated by Axis2 1.3 > and I have verified that it is correct. > Here's the error that I got: > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.535 sec <<< > FAILURE! > test(com.example.ExampleTestCase) Time elapsed: 3.505 sec <<< ERROR! > java.lang.reflect.UndeclaredThrowableException > at $Proxy8.hello(Unknown Source) > at com.example.ExampleClientImpl.runTest(ExampleClientImpl.java:38) > 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:585) > at > org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105) > at > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:231) > at > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:128) > at $Proxy7.runTest(Unknown Source) > at com.example.ExampleTestCase.test(ExampleTestCase.java:42) > 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:585) > 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.OldTestClassRunner.run(OldTestClassRunner.java:35) > 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:163) > at org.apache.maven.surefire.Surefire.run(Surefire.java:84) > 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:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:244) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814) > Caused by: org.apache.axis2.AxisFault: > org.apache.tuscany.sca.databinding.TransformationException: No matching > source fault type is found > 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.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:95) > at > org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:75) > at > org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:70) > at > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:231) > at > org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:128) > ... 34 more -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]