#68 NPE in AuthServiceImpl.login

v1.0
closed-fixed
Rakesh Kalra
general (93)
5
2005-12-16
2005-12-14
Jason Horman
No

I have scheduled a cron job to "execute" 4 jmanage
methods via the command line interface. Works very
well, but sometimes we randomly see the error below in
the output log. We are definitely always sending the
user name and password in, and it usually works fine.
The crontab entry looks like:

*/5 * * * * jmanage.sh -username user -password pass
execute object/service/method >>
/usr/local/service/tmp/manage-errors.txt 2>&1

/usr/local/madcast/jmanage/bin ~
Exception in thread "main" java.lang.RuntimeException:
java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.jmanage.cmdui.Command.authenticate(Command.java:159)
at org.jmanage.cmdui.Main.main(Main.java:76)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.jmanage.core.remote.server.ServiceCallHandler.execute(ServiceCallHandler.java:75)
at
org.jmanage.webui.servlets.ServiceInvokerServlet.processRequest(ServiceInvokerServlet.java:75)
at
org.jmanage.webui.servlets.ServiceInvokerServlet.doPost(ServiceInvokerServlet.java:55)
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:358)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at
org.mortbay.http.HttpServer.service(HttpServer.java:879)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jmanage.core.remote.server.ServiceCallHandler.executeInternal(ServiceCallHandler.java:100)
at
org.jmanage.core.remote.server.ServiceCallHandler.execute(ServiceCallHandler.java:57)
... 17 more
Caused by: java.lang.NullPointerException
at
org.jmanage.core.services.AuthServiceImpl.login(AuthServiceImpl.java:58)
... 23 more

Discussion

  • Rakesh Kalra
    Rakesh Kalra
    2005-12-16

    Logged In: YES
    user_id=1058292

    I have identified the problem. This will be fixed in 1.0.1
    release.

     
  • Rakesh Kalra
    Rakesh Kalra
    2005-12-16

    Logged In: YES
    user_id=1058292

    This has been fixed for 1.0.1 release. We plan to do this
    release in about a week.

     
  • Rakesh Kalra
    Rakesh Kalra
    2005-12-16

    • status: open --> closed-fixed