[ http://issues.apache.org/jira/browse/TUSCANY-372?page=all ]
ant elder updated TUSCANY-372: ------------------------------ Fix Version: Java-Mx (was: Java-M1) Version: Java-Mx (was: Java-M1) This is fixed now, but these client and service tests attached here will make good tests so i'll move the JIRA to Mx so they can be added to the WS test suite > Null pointer for axis2/tomcat example where the service interface/operation > takes no parameters > ----------------------------------------------------------------------------------------------- > > Key: TUSCANY-372 > URL: http://issues.apache.org/jira/browse/TUSCANY-372 > Project: Tuscany > Type: Bug > Components: Java SCA Axis Binding > Versions: Java-Mx > Environment: Fedora Core 5 > Reporter: Simon Laws > Assignee: ant elder > Fix For: Java-Mx > Attachments: helloworld6-notworkingsample.tar, helloworld7-workingsample.tar > > This is based on a check out from last week so I will give it a go on the > latest release but lest I forget the details. I have an example (attached) > which simply calls a remote component via axis2/web services. The implemented > operation takes no parameters and causes a null pointers exception down in > the Axis code on the server side where the request message is being unpacked > [1]. I copied the example and changed the operation signature to include a > single string parameter (also included) and all was well. Nothing else, as > far as I can tell, changed between the two versions of the sample. > [1] > [EMAIL PROTECTED] helloworld6client]$ ./run.sh > Exception in thread "main" org.osoa.sca.ServiceRuntimeException: > org.apache.axis2.AxisFault: null; nested exception is: > java.lang.NullPointerException > at > org.apache.tuscany.binding.axis2.externalservice.Axis2ServiceInvoker.invoke(Axis2ServiceInvoker.java:56) > at > org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.doInvoke(ExternalServiceTargetInvoker.java:84) > at > org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.invokeTarget(ExternalServiceTargetInvoker.java:79) > at > org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.invoke(ExternalServiceTargetInvoker.java:93) > at > org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39) > at > org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112) > at $Proxy13.getResponse(Unknown Source) > at > org.sample.helloworld.HelloWorldClient.main(HelloWorldClient.java:28) > Caused by: org.apache.axis2.AxisFault: null; nested exception is: > java.lang.NullPointerException > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) > at > org.apache.tuscany.binding.axis2.externalservice.Axis2OperationInvoker.invokeOperation(Axis2OperationInvoker.java:78) > at > org.apache.tuscany.binding.axis2.externalservice.Axis2ServiceInvoker.invoke(Axis2ServiceInvoker.java:53) > ... 7 more > Caused by: java.lang.Exception: org.apache.axis2.AxisFault: null; nested > exception is: > java.lang.NullPointerException > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) > at > org.apache.tuscany.binding.axis2.entrypoint.WebServiceEntryPointInOutSyncMessageReceiver.invokeBusinessLogic(WebServiceEntryPointInOutSyncMessageReceiver.java:83) > at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) > at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) > at > org.apache.tuscany.binding.axis2.entrypoint.WebServiceEntryPointServlet.doPost(WebServiceEntryPointServlet.java:81) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at org.apache.tuscany.tomcat.TuscanyValve.invoke(TuscanyValve.java:87) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:797) > Caused by: java.lang.NullPointerException > at > org.apache.tuscany.binding.axis2.databinding.AxiomHelper.toDataObject(AxiomHelper.java:164) > at > org.apache.tuscany.binding.axis2.databinding.AxiomHelper.toObjects(AxiomHelper.java:68) > at > org.apache.tuscany.binding.axis2.databinding.SDODataBinding.fromOMElement(SDODataBinding.java:42) > at > org.apache.tuscany.binding.axis2.entrypoint.WebServiceEntryPointInOutSyncMessageReceiver.invokeBusinessLogic(WebServiceEntryPointInOutSyncMessageReceiver.java:50) > ... 22 more > at org.apache.axis2.AxisFault.<init>(AxisFault.java:159) > ... 10 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira