As you can see from the response, an exception is being thrown.
Unfortunately, Tomcat does not do a getRootCause on the ServletException and
provide a stack trace of the root cause, which is what would be most useful.
>From the line numbers, it looks like you are using SOAP 2.3 or later. Is
that correct? If you are using the 2.3 or 2.3.1 release builds, something
that has caused this exception for others is in the handling of the fault
router in the deployment descriptor. Specifically, leading white space in
the text leads to an NPE.
This is OK:
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
This causes an NPE:
<isd:faultListener>
org.apache.soap.server.DOMFaultListener</isd:faultListener>
Unfortunately, without information from the root cause, this is hard to
analyze. Can you try other versions of Tomcat and/or SOAP? If there is a
later version of Tomcat than you are using, perhaps it prints root cause
information. The nightly build of SOAP *may* behave slightly differently,
but not much has changed in this piece of code.
Also, you may want to check Tomcat's logs to see if it logged root cause
information, or check the Tomcat docs for whether there is some config
option to show root cause.
Scott Nichol
----- Original Message -----
From: "Lian Fern" <[EMAIL PROTECTED]>
To: "Scott Nichol" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 4:44 AM
Subject: Re: (SOAP-ENV:Protocol): Unsupported response content type
"text/html"
> Hi All,
>
> I have tried out the TcpTunnelGui on my web service. This is the msg
> that appear in my gui screen.
>
> --------------------------------------------------------------------------
--
> -------
> From Port 5555:
>
> POST /soap/servlet/rpcrouter HTTP/1.0
> Host: 192.168.122.10:5555
> Content-Type: text/xml; charset=utf-8
> Content-Length: 819
> 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/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <SOAP-ENV:Body>
>
> <ns1:runBlast xmlns:ns1="urn:xml-web-blast"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <blast xmlns:ns2="urn:web-blast" xsi:type="ns2:blastbean">
> <database xsi:type="xsd:string"> nr</database>
> <program xsi:type="xsd:string">blastn</program>
> <sequence xsi:type="xsd:string">>gi|730305|
> MATHHTLWMGLALLGVLGDLQAAPEAQVSVQPNFQQDKFLGRWFSAGLAS
> NSSWLREKKAALSMCKSVVAPATDGGLNLTSTFLRKNQCETRTMLLQPAG
> SLGSYSYRSPHWGSTYSVSVVETDYDQYALLYSQGSKGPGEDFRMATLYS
> RTQTPRAELKEKFTAFCKAQGFTEDTIVFLPQTDKCMTEQ</sequence>
> </blast>
> </ns1:runBlast>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> --------------------------------------------------------------------------
--
> -----
>
> From port 8080:
>
> HTTP/1.1 500 Internal Server Error
> Content-Type: text/html
> Connection: close
> Set-Cookie: JSESSIONID=9748BA53D32496ED3EF6843D9F6D571A;Path=/soap
> <html><head><title>Apache Tomcat/4.0.4 - Error
> report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color :
> white;background-color : #0086b2;} BODY{font-family :
> sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color :
> white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE>
> </head><body><h1>Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server
> Error</h1><HR size="1" noshade><p><b>type</b> Exception
> report</p><p><b>message</b> <u>Internal Server
> Error</u></p><p><b>description</b> <u>The server encountered an internal
> error
> (Internal Server Error) that prevented it from fulfilling this
> request.</u></p><p><b>exception</b>
> <pre>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
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1027)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
> )
> at java.lang.Thread.run(Thread.java:536)
> </pre></p><HR size="1" noshade></body></html>
>
> --------------------------------------------------------------------------
--
> ----------
>
> any ideas what's happening? Thanks a lot for the time.
>
> Regards,
> Lianfern
>
>
> ----- Original Message -----
> From: "Scott Nichol" <[EMAIL PROTECTED]>
> To: "Lian Fern" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, September 18, 2002 9:58 PM
> Subject: Re: (SOAP-ENV:Protocol): Unsupported response content type
> "text/html"
>
>
> > When an "internal" error occurs with many Web servers or servlet
> containers,
> > a "normal" HTML response is returned, which is what you are seeing. To
> > fully understand what is going wrong, you might need to capture the
> response
> > using TcpTunnelGui or another network monitoring application.
> >
> > Scott Nichol
> >
> > ----- Original Message -----
> > From: "Lian Fern" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 17, 2002 11:04 PM
> > Subject: (SOAP-ENV:Protocol): Unsupported response content type
> "text/html"
> >
> >
> > Hi All,
> >
> > While I am trying to access the web service, I hit the above mentioned
> error
> > at the client side(java servlet). I have already point to
> > http://localhost:8080/soap/servlet/rpcrouter. Both my server and
> client-side
> > stuff properly set up and tested.
> >
> > Any ideas what are the other possibilities?
> >
> > Thank you and best regards, lianfern
> >
> >
> >
> >
> >
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>