ws-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fluharty, Fred" <Fred.Fluha...@ps.net>
Subject Trouble with SOAPException
Date Wed, 07 Jan 2004 13:41:32 GMT
Hello all.  Hopefully someone can help me here.

I want to have an exception returned to the caller of an exposed SOAP
method, so I'm making the following call:

	throw new SOAPException(Constants.FAULT_CODE_SERVER, <error
message>);

An exception makes it back to the caller, but it's more something about the
content of the response being in HTML, not XML.  On our side, which is a
WebLogic server using Apache SOAP, I get the following in the WebLogic
output:

<Jan 6, 2004 11:42:44 AM PST> <Error> <HTTP> <101018>
<[ServletContext(id=1223009,name=soap,context-path=/soap)] Servlet failed
with ServletException
javax.servlet.ServletException: Error building response envelope:
java.lang.NullPointerException
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:41
8)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1075)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:418)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:306)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5528)
        at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:685)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3155)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2519)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)

I don't know why this NPE is happening on my server-side, or why they're not
simply seeing a SOAPException on the client side..  I'd appreciate any help
you could give me.


Thanks,
Fred Fluharty

Mime
View raw message