axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From studium-...@web.de
Subject Re: java.lang.NullPointerException
Date Mon, 17 Jul 2006 14:00:07 GMT
you are trying to use an object, which is not instantiated.
Could you please check your service implementation on 

customize.groupList1.deleteSQL(groupList1.java:158)


> -----Urspr√ľngliche Nachricht-----
> Von: axis-user@ws.apache.org
> Gesendet: 17.07.06 14:43:00
> An: axis-user@ws.apache.org
> Betreff: java.lang.NullPointerException


> 
> I got "java.lang.NullPointerException" error when I'm creating web service
> using 'message' service type. 
> 
> The specific method I used is 'public void method(SOAPEnvelope req,
> SOAPEnvelope resp);'
> 
> For example, my request SOAP is 
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Header>
>  </soapenv:Header>
>  <soapenv:Body>
> <gid xmlns="">5</gid>
>  </soapenv:Body>
> </soapenv:Envelope>
> 
> In the server side,  I was tring to get the value of 'gid'. After I got the
> value and I was going to use this value to query database, ERROR occured.  I
> also tried to just System.out.println("that value"), ERROR still remained.
> It seems that any use of that value will get this error.
> 
> <soapenv:Body
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.NullPointerException</faultstring><detail><ns1:stackTrace
> xmlns:ns1="http://xml.apache.org/axis/">java.lang.NullPointerException
> 	at customize.groupList1.deleteSQL(groupList1.java:158)
> 	at customize.groupList1.deleteGroups(groupList1.java:135)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at
> org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:155)
> 	at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> 	at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> 	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
> 	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> 	at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> 	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(Unknown Source)
> </ns1:stackTrace><ns2:hostname
> xmlns:ns2="http://xml.apache.org/axis/">manticore</ns2:hostname></detail></soapenv:Fault></soapenv:Body>
> 
> Any help??
> 
> Thanks in advance.
> -- 
> View this message in context: http://www.nabble.com/java.lang.NullPointerException-tf1954438.html#a5359933
> Sent from the Axis - User forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 


_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071


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


Mime
View raw message