You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Rama Panda <ra...@networld.ne.jp> on 2002/06/03 08:12:08 UTC

javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException

Hi,

I use i-planet and soap. after i do all kind of required setup,
get the following error message at server side.

[03/6/2002:14:20:54] failure (  980): Internal error: exception thrown from
the servlet service function (uri=/soap/servlet/rpcrouter):
javax.servlet.ServletException: Error building response envelope:
java.lang.NullPointerException, Stack: javax.servlet.ServletException: Error
building response envelope: java.lang.NullPointerException
	at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
	at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
a:497)

and the following corresponding message at client side.

Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type
"tex
t/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>Server Error</TITLE></HEAD>
<BODY><H1>Server Error</H1>
This server has encountered an internal error which prevents it from
fulfilling
your request. The most likely cause is a misconfiguration. Please ask the
admini
strator to look for messages in the server's error log.
</BODY></HTML>

The soap server setup is ok and the soap service is ok as i tested using
org.apache.soap.server.ServiceManagerClient tool.

Pls tell mw where is the root of the problem .

Thanks in advance!
panda


Re: javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException

Posted by Michael Jennings <mi...@southgatesoftware.com>.
Sounds like you've got an unchecked exception server-side error that is causing the rpcrouter servlet
to try to tell you about the error, hence the text/html mime type sent from the server.
The other thing you could try is compile the soap.jar file with debugging information
turned on so that the stack trace would tell you a bit more.

That's all I can think of, hope this helps!
-Mike

  ----- Original Message ----- 
  From: Rama Panda 
  To: soap-dev@xml.apache.org 
  Sent: Sunday, June 02, 2002 11:12 PM
  Subject: javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException


  Hi,

  I use i-planet and soap. after i do all kind of required setup,
  get the following error message at server side.

  [03/6/2002:14:20:54] failure (  980): Internal error: exception thrown from the servlet service function (uri=/soap/servlet/rpcrouter): javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException, Stack: javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException 
  at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java, Compiled Code) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:826) 
  at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:497) 

  and the following corresponding message at client side.

  Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type "tex
  t/html", must be: "text/xml". Response was:
  <HTML><HEAD><TITLE>Server Error</TITLE></HEAD>
  <BODY><H1>Server Error</H1>
  This server has encountered an internal error which prevents it from fulfilling
  your request. The most likely cause is a misconfiguration. Please ask the admini
  strator to look for messages in the server's error log.
  </BODY></HTML>

  The soap server setup is ok and the soap service is ok as i tested using org.apache.soap.server.ServiceManagerClient tool.

  Pls tell mw where is the root of the problem .

  Thanks in advance!
  panda


Re: javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException

Posted by Michael Jennings <mi...@southgatesoftware.com>.
Sounds like you've got an unchecked exception server-side error that is causing the rpcrouter servlet
to try to tell you about the error, hence the text/html mime type sent from the server.
The other thing you could try is compile the soap.jar file with debugging information
turned on so that the stack trace would tell you a bit more.

That's all I can think of, hope this helps!
-Mike

  ----- Original Message ----- 
  From: Rama Panda 
  To: soap-dev@xml.apache.org 
  Sent: Sunday, June 02, 2002 11:12 PM
  Subject: javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException


  Hi,

  I use i-planet and soap. after i do all kind of required setup,
  get the following error message at server side.

  [03/6/2002:14:20:54] failure (  980): Internal error: exception thrown from the servlet service function (uri=/soap/servlet/rpcrouter): javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException, Stack: javax.servlet.ServletException: Error building response envelope: java.lang.NullPointerException 
  at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java, Compiled Code) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:826) 
  at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:497) 

  and the following corresponding message at client side.

  Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type "tex
  t/html", must be: "text/xml". Response was:
  <HTML><HEAD><TITLE>Server Error</TITLE></HEAD>
  <BODY><H1>Server Error</H1>
  This server has encountered an internal error which prevents it from fulfilling
  your request. The most likely cause is a misconfiguration. Please ask the admini
  strator to look for messages in the server's error log.
  </BODY></HTML>

  The soap server setup is ok and the soap service is ok as i tested using org.apache.soap.server.ServiceManagerClient tool.

  Pls tell mw where is the root of the problem .

  Thanks in advance!
  panda