You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Yong Miao <yo...@aspentech.com> on 2002/07/08 20:11:44 UTC

What's the problem

The message sent is:

POST /soap/servlet/rpcrouter HTTP/1.0 Host: localhost Content-Type:
text/xml; charset=utf-8 Content-Length: 904 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:CreateOrderFromControlRecipe xmlns:ns1="urn:aspentech-aebrs-api"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
 <orderCode xsi:type="xsd:string">YM22204</orderCode>
 <description xsi:type="xsd:string">YM test order</description>
 <recipe xsi:type="xsd:string">1</recipe>
 <recipeVersion xsi:type="xsd:string">1</recipeVersion>
 <article xsi:type="xsd:string">xx</article> <batch
xsi:type="xsd:string">YM1234</batch>
 <scheduledStartDate xsi:type="xsd:string">2002-07-03</scheduledStartDate>
 <scheduledEndDate xsi:type="xsd:string">2002-07-10</scheduledEndDate>
 </ns1:CreateOrderFromControlRecipe> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

I got the error:

HTTP/1.1 500 Internal Server Error Connection: close Set-Cookie:
JSESSIONID=D89F4940B8B399014F40002A644FB39C;Path=/soap
<html><head><title>Apache Tomcat/4.0.3 - 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.3 - 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:35
3) 	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:2343)
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:
1012) 	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
) 	at java.lang.Thread.run(Thread.java:536) </pre></p><HR size="1"
noshade></body></html>


Anybody any ideas?

Thanks,
~~~~~~~~~~~~~~~~~~~~~~~
Yong Miao
~~~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: Wei Li [mailto:wei@eng.fsu.edu] 
Sent: Monday, July 08, 2002 10:17 AM
To: soap-user@xml.apache.org
Subject: Re: How to use TcpTunnelGui


Hi, Yong,

I think the setting of your TcpTunnelGui is right. The problem is your
client 
program. Please debug your client program and try again.

If the problem is in server side, The tcpTunnelGui only show the sent
message 
and will response a fault report.

Best regards.
>
>Please help!
>
>I started TcpTunnelGui like this:
>   java org.apache.soap.util.net.TcpTunnelGui 999 http://localhost 
><http://localhost>  8080
>
>I set url as below:
>  URL url = new URL("http://localhost:999/soap/servlet/rpcrouter");
>And call:
>  call.invoke(url, "");
>
>I see nothing on the TcpTunnelGui screen.
>
>I 'd like to see the soap message. What's wrong this?\
>
>Regards,
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Yong Miao 
>Sr. Staff Engineer                             Tel:  425-492-2204 
>yong.miao@aspentech.com          Fax: 425-492-2125 
>
>Aspen Technology, Inc.
>19204 North Creek Parkway, Suite 104, 
>Bothell, WA 98011-8001         
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
>
>

************************************************************

Wei Li                                         @__   -----
System Administrator                          _,>/'_  ----
FAMU/FSU College of Engineering              (*) \(*)  ---
O:332 - D  Tel:(850)410-6157

************************************************************

============================================================
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.

--Peter J. Schoenster
============================================================




--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>