0 Replies Latest reply on Apr 1, 2005 7:33 AM by Bart Vanhaute

    NullPointerException in HTTPServerILServlet

    Bart Vanhaute Newbie

      After a restart of our jboss server (3.2.3), a JMS client reconnected through HTTPIL, and we got the following persistent problem:

      2005-04-01 12:25:15,235 TRACE [org.jboss.mq.il.http.servlet.HTTPServerILServlet] doPost() defers to processRequest, see the parameters in its trace.
      2005-04-01 12:25:15,235 TRACE [org.jboss.mq.il.http.servlet.HTTPServerILServlet] processRequest(HttpServletRequest org.apache.coyote.tomcat4.CoyoteRequestFacade@1a7b1af, HttpServletResponse org.apache.coyote.tomcat4.CoyoteResponseFacade@8275bb)
      2005-04-01 12:25:15,235 TRACE [org.jboss.mq.il.http.servlet.HTTPServerILServlet] HTTPILRequest recieved: authenticate(class java.lang.String XYZ, class java.lang.String XYZ)
      2005-04-01 12:25:15,235 DEBUG [org.jboss.mq.il.http.servlet.HTTPServerILServlet] Threw an exception of type 'java.lang.NullPointerException' with a message of 'null.' This exception is being propogated to the client as a HTTPILResponse.

      On the client side, we see (I don't have a complete stack trace):
       at org.jboss.mq.il.http.servlet.HTTPServerILServlet.processRequest(HTTPServerILServlet.java:239)

      Looking at the source code of this servlet, it seems the invoker was not set.

      There is a dependency in the HTTPIL to the Invoker mbean, but in this case, the client already got the connection factory (it is caching it locally). So it accesses the servlet even before the invoker would be registered. At this time, the servlet now loaded, but it is not initialized properly.

      In conclusion : Shouldn't there be an extra dependency in the jbossmq-httpil.war to the invoker mbean?