> you've got a NullPointerException at line 35 of RPCRouterServlet. Have a
> look at javadoc or java source for that class. Your request is probably
not
> passing some parameter the servlet requires (as a best guess). Tomcat
> returns an html error report and the soap client is expecting a response
> with a mime type text/xml.
>
> Jon
>
> 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)
>
    Thanks for your answer Jon. The registered class couldn't be more simple
(see below).

package javasoap.book.ch4;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2002</p>
 * <p>Company: </p>
 * @author unascribed
 * @version 1.0
 */

public class MethodCounter {
   int _counter;
   public MethodCounter()
   {
      _counter = 0;
   }
   public int getCount()
   {
      return _counter;
   }

   public boolean doSomething()
   {
      _counter += 1;
      return true;
   }
}





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to