You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Scott Nichol <sn...@scottnichol.com> on 2002/08/22 20:23:18 UTC

Fw: urgent help needed with:Error building response evelope

I believe the white space specifying the fault handler in your deployment
descriptor prevents the fault handler from being created.  The attached file
is

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:julia">
- <isd:provider type="java" scope="Application" methods="kk">
  <isd:java class="samples.julia.products" static="false" />
  </isd:provider>
<isd:faultListener>
org.apache.soap.server.DOMFaultListener</isd:faultListener>
  </isd:service>

Try changing to

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:julia">
  <isd:provider type="java" scope="Application" methods="kk">
    <isd:java class="samples.julia.products" static="false" />
  </isd:provider>

<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
</isd:service>

Remember, after you change the file, you need to undeploy then deploy the
service.

Scott Nichol

----- Original Message -----
From: "WANG xiulan" <wx...@hotmail.com>
To: <sn...@scottnichol.com>
Sent: Thursday, August 22, 2002 7:55 AM
Subject: Re: urgent help needed with:Error building response evelope


hi scott,

Many thanks for your reply.


let me phase what i intend to do.
I am doing a project about communication between web server(machine A) and
 client server(machine B).
I install the same software package (it can be seen from my classpath and
path)
in the both machines.
there are a web page ( database) and server in A, and a dynamic web page and
server in B.
THE SERVICE IS ON A( download, paser) for response  the client side machine
B.
At the moment, I havent gone that far yet, just using the simple jsp page to
test the RPC,
which i reside in machine B http://localhost:8080/soap/admin/julia.jsp; a
java code( see attachment j)and deploymentDescriptor.xml( see atachment d)
place in machine A
c:\julia\jakarta-tomcat-3.2.3\jakarta-tomcat-3.2.3\webapps\soap\WEB-INF\clas
ses\samples\julia
BUT my jsp page doesnt invote the call at all( i mean no response from java
code)

 Error appears ON machine B- client:

Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type
"tex
t/html", must be: "text/xml". Response was:
<h1>Error: 500</h1>
<h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet
Error:</b><br><pre
>javax.servlet.ServletException: Error building response envelope:
java.lang.Nul
lPointerException
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
java:353)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
05)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:812)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758
)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:213)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
        at java.lang.Thread.run(Thread.java:479)
</pre>

Error on Machine A:

java.lang.NullPointerException
        at
org.apache.soap.server.SOAPFaultRouter.notifyListeners(SOAPFaultRoute
r.java:101)
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
java:304)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
05)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:812)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758
)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:213)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
        at java.lang.Thread.run(Thread.java:479)
2002-08-22 11:56:20 - Ctx( /soap ): Exception in: R( /soap +
/servlet/rpcrouter
+ null) - javax.servlet.ServletException: Error building response envelope:
java
.lang.NullPointerException
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
java:353)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
05)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:812)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758
)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:213)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
        at java.lang.Thread.run(Thread.java:479)


C:\>set classpath
CLASSPATH=c:\julia\xerces-1_4_4\xerces-1_4_4\xerces.jar;c:\julia\javamail\ja
vama
il-1.3\mail.jar;c:\julia\soap-2_2\soap-2_2\lib\soap.jar;c:\julia\jaf-1.0.2\j
af-1
.0.2\activation.jar;c:\julia\soap-2_2;c:\julia\jakarta-tomcat-3.2.3\jakarta-
tomc
at-3.2.3\webapps\soap\WEB-INF\classes\samples\julia

C:\>set path
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\jdk-1.3.1_04\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

thank u very much for reading bore and long email

and waiting for your guide



julia



----------------------------------------------------------------------------
----
Chat with friends online, try MSN Messenger: Click Here