One of the problems that frequently occurs is not having the DLL
COMProvider.dll in your path. This is usually located in lib directory
of the SOAP distribution. This directory needs to be in your path
environment
variable.
>Hi,
>I just installed Apache soap 2.2 and tried to run COM sample. The
>deployment of the sample COM objects were fine. However, when I tried to
>submit the Addit and Sum requests, I saw the following errors.
>Could someone point out what might went wrong?
>Thank you
>Jinhua
>
>[command line] D:\javaUtils\soap-2_2\samples\com\client>java
>samples.com.client.Addit 3 4
>[Response]
>Ouch, the call failed:
>Fault Code = SOAP-ENV:Server.Exception:
>Fault String = initlog
>[command line] D:\javaUtils\soap-2_2\samples\com\client>java
>samples.com.client.Sum 4
>[Response]
>Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
>msg=Unsupported response content type "text/html", must be: "text
>/xml". Response was:
><h1>Error: 500</h1>
><h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet
>Error:</b><br><pre>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:760)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>at org.apache.tomcat.core.Handler.service(Handler.java:286)
>at
>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>at
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
>7)
>at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:210)
>at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
>Compiled Code)
>at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
>Compiled Code)
>at java.lang.Thread.run(Thread.java:479)
></pre>
>]
>at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:175)
>at org.apache.soap.rpc.Call.invoke(Call.java:212)
>at samples.com.client.Sum.main(Sum.java:111)
Rick Rineholt
"The truth is out there... All you need is a better search engine!"
[EMAIL PROTECTED]