axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeepta Bhattacharya" <pradeepta.bhattacha...@bsil.com>
Subject AXIS2::Serialization of conplex type throws NPE
Date Wed, 12 Jul 2006 06:10:36 GMT
When trying to invoke a RPC based service, Axis throws an exception when 
trying to serialize a response of hierarchic bean structure to response SOAP

request. I have attached the service jar deployed on JBoss 4.0.4 and I have 
tested the simple response sayHello but when it comes to complex structure 
axis throws NPE. Any help on what might be wrong is highly appreciated. 
Thanks a lot.
 
/////////////////////////////////////////////////////////////////
////////////////////////// REQUEST  /////////////////////////////
/////////////////////////////////////////////////////////////////
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
               <soapenv:Header/>
               <soapenv:Body>
                               <airAvailability 
xmlns="http://ShoppingEngine.shoppingengine.airtrade.project.bsil.com/types"
>
                                              <param0>
 
<originDestination 
xmlns="http://air.airtrade.project.bsil.com/xsd">
 
<departureDate>2006-08-
28T00:22:08.968+05:30</departureDate>
 
<destination>MIA</destination>
 
<origin>CDG</origin>
 
</originDestination>
                                                             <tripType 
xmlns="http://air.airtrade.project.bsil.com/xsd">1</tripType>
                                              </param0>
                               </airAvailability>
               </soapenv:Body>
</soapenv:Envelope>
 
 
/////////////////////////////////////////////////////////////////
////////////////////////// RESPONSE /////////////////////////////
/////////////////////////////////////////////////////////////////
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
               <soapenv:Header/>
               <soapenv:Body>
                               <soapenv:Fault>
 
<faultcode>soapenv:Client</faultcode>
                               
               <faultstring>java.lang.NullPointerException</faultstring>
                                              <detail>
 
<Exception>org.apache.axis2.AxisFault: 
java.lang.NullPointerException; nested exception is: 
               org.apache.axiom.om.OMException:
java.lang.NullPointerException&#13;
               at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)&#13;
               at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:150)&#13;
               at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive
(AbstractInOutSyncMessageReceiver.java:37)&#13;
               at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
&#13;
               at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
(HTTPTransportUtils.java:284)&#13;
               at org.apache.axis2.transport.http.AxisServlet.doPost
(AxisServlet.java:144)&#13;
               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;
               at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;
               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)&#13;
               at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)&#13;
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilter.java:96)&#13;
               at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)&#13;
               at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)&#13;
               at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)&#13;
               at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)&#13;
               at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
(SecurityAssociationValve.java:175)&#13;
               at org.jboss.web.tomcat.security.JaccContextValve.invoke
(JaccContextValve.java:74)&#13;
               at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)&#13;
               at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)&#13;
               at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)&#13;
               at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)&#13;
               at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)&#13;
               at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
o
nnection(Http11BaseProtocol.java:664)&#13;
               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)&#13;
               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
(MasterSlaveWorkerThread.java:112)&#13;
               at java.lang.Thread.run(Thread.java:534)&#13;
Caused by: org.apache.axiom.om.OMException: 
java.lang.NullPointerException&#13;
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:206)&#13;
               at org.apache.axiom.om.impl.llom.OMNodeImpl.build
(OMNodeImpl.java:298)&#13;
               at org.apache.axiom.om.impl.llom.OMElementImpl.detach
(OMElementImpl.java:586)&#13;
               at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent
(OMNodeImpl.java:118)&#13;
               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
(OMElementImpl.java:241)&#13;
               at org.apache.axiom.om.impl.llom.OMElementImpl.addChild
(OMElementImpl.java:198)&#13;
               at org.apache.axis2.rpc.receivers.RPCUtil.processResponse
(RPCUtil.java:72)&#13;
               at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:141)&#13;
               ... 24 more&#13;
Caused by: java.lang.NullPointerException&#13;
               at org.apache.axis2.databinding.utils.BeanUtil.getPullParser
(BeanUtil.java:95)&#13;
               at 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProp
e
rties(ADBXMLStreamReaderImpl.java:953)&#13;
               at 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next
(ADBXMLStreamReaderImpl.java:807)&#13;
               at
org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
&#13;
               at org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:123)&#13;
               ... 31 more&#13;
</Exception>
                                              </detail>
                               </soapenv:Fault>
               </soapenv:Body>
</soapenv:Envelope>
 

 


Mime
View raw message