axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm Brady <colm.br...@roamware.com>
Subject Re: Axis2 cant instantiate stubs generated with xmlbeans correctly. (InstantiationException)
Date Tue, 27 Mar 2012 02:26:02 GMT
Dear User Group,

This is a non-issue, I beleive that I had some old ADB stubs on the 
class path and I can only guess this caused the behaviour I experienced. 
That, or I was sending an invalid SOAP request to my service. The 
problem does not seem to be causing a problem now.

On 27/03/2012 10:22, Colm Brady wrote:
> Dear User Group,
>
> I have a problem using an Axis2 service generated with XMLBeans 
> bindings running in Tomcat 5.X using JDK 1.6. Axis2 is deployed as an 
> embeded service inside my applicaiton.
>
> To generate the Axis2 service, I first generated some WSDL from a Java 
> interface using java2wsdl. I then generated a server side stub using 
> wsdl2java and used xmlbeans data binding. (I can share the generated 
> stub files if this will help diagnose the problem)
>
> When I call the SOAP service I am receiving the following Axis2 Error. 
> It appears that Axis2 is trying to instantiate an Interface class 
> generated by xmlbeans and not the implementation class, which exists 
> in subpackage "impl.ProcessSearchUserTransactionsDocumentImpl".
>
> I am wondering if anyone has experienced a simular issue with XMLBeans 
> and axis2 and also wondering if I need to tell Axis2 that I am using 
> xmlbeans as a binding framework instead of ADB?? I could not find this 
> documented.
>
> <soapenv:Envelope 
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <soapenv:Fault>
> <soapenv:Code>
> <soapenv:Value>soapenv:Receiver</soapenv:Value>
> </soapenv:Code>
> <soapenv:Reason>
> <soapenv:Text 
> xml:lang="en-US">com.macalla.mp.etransactions.api.webservices.axis2.ProcessSearchUserTransactionsDocument</soapenv:Text>
> </soapenv:Reason>
> <soapenv:Detail>
> <Exception>org.apache.axis2.AxisFault: 
> com.macalla.mp.etransactions.api.webservices.axis2.ProcessSearchUserTransactionsDocument
>     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>     at 
> org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:47)
>     at 
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:421)
>     at 
> org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:827)
>     at 
> org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:746)
>     at 
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:655)
>     at 
> org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:153)
>     at 
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:206)
>     at 
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>     at 
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>     at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
>     at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>     at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>     at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>     at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
>     at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>     at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>     at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>     at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
>     at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>     at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>     at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>     at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.InstantiationException: 
> com.macalla.mp.etransactions.api.webservices.axis2.ProcessSearchUserTransactionsDocument
>     at java.lang.Class.newInstance0(Class.java:340)
>     at java.lang.Class.newInstance(Class.java:308)
>     at 
> org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:42)
>     ... 29 more</Exception>
> </soapenv:Detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
>
> Regards
>
> Colm
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message