• Post Reply Bookmark Topic Watch Topic
  • New Topic

axis exception

 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all I am genereating a webservce using jaba 1.5,axis2 & Tomcat 5
when I invoke my service fro http it thorws java.lang.NullPointerException.
please suggest me if any thing wrong with the given wsdl file

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="VccService"
targetNamespace="http://webservices.alcatel.com/VccService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://webservices.alcatel.com/VccService"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://websoap.vcc.ias.alcatel.com/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<types>
<schema targetNamespace="http://websoap.vcc.ias.alcatel.com/xsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
elementFormDefault="qualified">
<complexType name="VccServiceForm">
<sequence>
<element name="vccId" type="string" minOccurs="1"/>
<element name="msIsdn" type="string" minOccurs="1"/>
<element name="sipUri" type="string" minOccurs="1"/>
<element name="result" type="string" minOccurs="1"/>
<element name="wifiToGsmAllowed" type="boolean" minOccurs="1"/>
<element name="gsmtoWifiAllowed" type="boolean" minOccurs="1"/>
<element name="inwardHandOver" type="boolean" minOccurs="1"/>
<element name="serviceActive" type="boolean" minOccurs="1"/>
</sequence>
</complexType>

<element name="inputParam" type="xsd1:VccServiceForm"/>
<element name="outputParam" type="xsd1:VccServiceForm"/>

</schema>
</types>
<message name="vccRequest">
<part element="xsd1:inputParam" name="a"/>
</message>
<message name="vccResponse">
<part element="xsd1 utputParam" name="result"/>
</message>

<portType name="VccService">
<operation name="getVccServiceData">
<input message="tns:vccRequest" name="vccRequest"/>
<output message="tns:vccResponse" name="vccResponse"/>
</operation>
</portType>

<binding name="VccPortBinding" type="tns:VccService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getVccServiceData">
<soap peration soapAction="getVccServiceData" style="document"/>
<input name="vccRequest">
<soap:body namespace="http://webservices.alcatel.com/VccService"
use="literal"/>
</input>
<output name="vccResponse">
<soap:body namespace="http://webservices.alcatel.com/VccService"
use="literal"/>
</output>
</operation>
</binding>

<service name="VccService">
<port binding="tns:VccPortBinding"
name="VccService">
<soap:address
location="http://10.203.143.96:4444/webservices/VccService"/>
</port>
</service>
</definitions>


throws Exception
java.lang.NullPointerException
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.transportConfigurationPOST(CommonsHTTPTransportSender.java:417)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:167)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:109)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:87)
at org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:37)
at org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:174)
at com.alcatel.ias.vcc.websoap.VccServiceStub.getVccServiceData(UnknownSource)
at com.alcatel.ias.GetVccServiceRequestAction.execute(GetVccServiceRequestAction.java:50)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:53)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:64)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)

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.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:595)



I awaiting your valuable suggessions..

Thanks
 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
is there anything wrong with my query???
Thanks
Vijay Kumar
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PatienceIsAVirtue
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!