On 9/19/06, Jimisola Laursen <[EMAIL PROTECTED]> wrote:

Like I mentioned in my first post I get a NullPointer exception:

java.lang.NullPointerException
        at
org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:447)

An NPE at line 120 means, that the "server" variable is null. However,
that can only be the case, if

 a) The method init(ServletConfig) wasn't successfully invoked before doPost.
     This would mean, that the servlet engine violates the Servlet API, which
     I doubt.

 b) You have overriden the methods init(ServletConfig)
     or newXmlRpcServer(ServletConfig) in an invalid manner, that prevents the
     variable from being initialized.

It is up to you to determine, which one is the case.


However, the server instance variable is an XmlRpcServletServer not a
generic WebServer.

Forget the WebServer. It isn't related to the XmlRpcServletServer.


I need to use the following XMLRPC features:
 1. PropertyHandlerMapping
 2. Proxy-based, i.e. ProperyHandlerMapping with
addHandler(TestRPC.class.getName(), TestRPCImpl.class);
 3. Extension enabled
 4. Optional content length enabled

I still can't see any problems.


Jochen


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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

Reply via email to