You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Jennie Jacobsson <je...@sync.se> on 2001/02/26 14:03:42 UTC

500 Servlet Exception

Hello!

I'm still having problems with my webservice. I'm using caucho's resin
webserver (Soap 2.1) and Windows 2000. I'm also running my program in Visual
Age. I get the following error message:

invoke service
  URL= http://localhost:8080/servlet/rpcrouter
  URN =urn:Exchange
SOAPException= SOAP-ENV:Protocol, Unsupported response content type
"text/html", must be: "text/xml". Response was:
<title>500 Servlet Exception</title>
<h1>500 Servlet Exception</h1>
<code><pre>
java.lang.NullPointerException
	at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:142)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
	at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:8
2)
	at com.caucho.server.http.Invocation.service(Invocation.java:259)
	at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:146)
	at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:238)
	at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java,
Compiled Code)
	at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled
Code)
	at java.lang.Thread.run(Thread.java:479)
</pre></code>
<hr /><small>
Resin 1.3.b1 (built Mon Jan 29 19:25:51 PST 2001)
</small>


I also did a tcp-trace and I received following:

POST /servlet/rpcrouter HTTP/1.0
Host: localhost:80
Content-Type: text/xml; charset=utf-8
Content-Length: 495
SOAPAction: ""

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getRate xmlns:ns1="urn:Exchange"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<country1 xsi:type="xsd:string">USA</country1>
<country2 xsi:type="xsd:string">japan</country2>
</ns1:getRate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


HTTP/1.0 500 Internal Server Error
Server: Resin/1.3.b1
Set-Cookie: JSESSIONID=kciMEGx1G4XE-HaoTU;Path=/
Content-Type: text/html
Content-Length: 948
Date: Mon, 26 Feb 2001 12:56:13 GMT

<title>500 Servlet Exception</title>
<h1>500 Servlet Exception</h1>
<code><pre>
java.lang.NullPointerException
	at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:142)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
	at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:8
2)
	at com.caucho.server.http.Invocation.service(Invocation.java:259)
	at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:146)
	at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:238)
	at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java,
Compiled Code)
	at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled
Code)
	at java.lang.Thread.run(Thread.java:479)
</pre></code>
<hr /><small>
Resin 1.3.b1 (built Mon Jan 29 19:25:51 PST 2001)
</small>

Does anyone have any idea of what went wrong?
Sincerely
Jennie