You need to sign in to do that
Don't have an account?
Null pointer error
I am getting error on describe. Please tell me if my SOAP XML is incorrect.
Here is the error.
---------------------------------------------------------------------
-1java.lang.NullPointerException at common.api.Dispatcher.inner_execute(Dispatcher.java:141) at common.api.Dispatcher.execute(Dispatcher.java:113) at common.api.SOAPServer.execute(SOAPServer.java:132) at servlet.SoapApi.doPost(SoapApi.java:144) at javax.servlet.http.HttpServlet.service(HttpServlet.java:165) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113) at system.filter.PreGzipFilter.doFilter(PreGzipFilter.java:75) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:84) at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:190) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:323) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:430) at com.caucho.util.ThreadPool.run(ThreadPool.java:377) at java.lang.Thread.run(Thread.java:534)
Here is my SOAP xml.
---------------------------------------------------------------------------
iwjEWPk77ikntDUbWbpsUXPPzBlDIyZ7uZmmi._mkslCuYRehRmyyuJU6aX4GzkHKBCdy4jakrcjPCuGuV85KfbtzKggVlhLAccount
Here is another null pointer error with similar SOAP XML.
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="salesforce" xmlns:types="salesforce/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
-1
java.lang.NullPointerException
at common.api.Dispatcher.inner_execute(Dispatcher.java:141)
at common.api.Dispatcher.execute(Dispatcher.java:113)
at common.api.SOAPServer.execute(SOAPServer.java:132)
at servlet.SoapApi.doPost(SoapApi.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:113)
at system.filter.PreGzipFilter.doFilter(PreGzipFilter.java:75)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:84)
at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:190)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:323)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:430)
at com.caucho.util.ThreadPool.run(ThreadPool.java:377)
at java.lang.Thread.run(Thread.java:534)
SOAP XML used is as given below
-------------------------------------------------------
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
xmlns:ns1="urn:enterprise.soap.sforce.com">
_replaced_session_id
Account
I figured out what went wrong.
I was using the worng url to post the SOAP message.
Why should there be a null pointer error anyways? Should not it respond with a better error message.
Thanks,
dd