Unfortunately, the stack trace for the *real* exception is printed to standard error on the server in version 2.2. I'm not sure whether this ends up on the console or in a file in %TOMCAT_HOME%\logs. You will probably need to get this trace to be able to track down the problem. Or, if you can, switch to SOAP 2.3.1 or the current build. These return better exception information to the client.
Also, what versions of Tomcat and Xerces (or other XML parser) are you using? Scott Nichol ----- Original Message ----- From: "WANG xiulan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 1:46 PM Subject: Re: [from soap-user] Re: urgent help needed with:Error building response evelope i am using soap2_2 >From: Scott Nichol >To: WANG xiulan , [EMAIL PROTECTED] >Subject: [from soap-user] Re: urgent help needed with:Error building response evelope >Date: Tue, 20 Aug 2002 22:13:41 -0400 > >What version of Apache SOAP are you using? > >Scott Nichol > >----- Original Message ----- >From: "WANG xiulan" >To: >Cc: >Sent: Tuesday, August 20, 2002 11:01 AM >Subject: urgent help needed with:Error building response evelope > > > >Hi everyone, > >will u give me any idea? > >I place the .class and .xml file in %TOMCAT_HOME% >\webapps\soap\WEB-INF\classes , restart tomcat, deploy the service and it >succedd. >but when I run my JSP under http://localhost:8080/saop/servlet/admin/ , it >doesnt work well >and in dos command appears: > >2002-08-20 12:41:12 - 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) > > >here is the jsp code : > > > > > test > > Deploy Service julia and send a char! > > > > >value="Reset" name="B2"> > > > > Response from julia > > > > The response from the remote server is: > > > >and this is the java code which i place i the same directory with DD.xml >under %TOMCAT%: > > >package samples.julia; > >import java.lang.*; >import org.w3c.dom.*; >import javax.xml.parsers.*; >import org.apache.soap.util.xml.*; >import java.io.*; >import java.net.*; >import javax.swing.*; >import java.util.*; > >public class Products > > // > // method julia(): just for test which will triple the parameter String > // > public String julia(String n) throws IllegalArgumentException > { > System.out.println("."); > System.out.println("julia"); // signal the method is called > if (n == "null") > { > throw new IllegalArgumentException("The char argument must not be" + >"null."); > } > String a = new String(n+" "+n+" "+n); > return a; > } // end of julia() > > > > > > >--------------------------------------------------------------------------- - >---- >MSN Photos is the easiest way to share and print your photos: Click Here > > > ---------------------------------------------------------------------------- ---- Join the world’s largest e-mail service with MSN Hotmail. Click Here -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>