java.lang.NullPointerException

Mirth Project | nag r | 2 years ago
  1. 0

    SQL Server and MySQL string comparisons are case insensitive by default, which causes a few side effects regarding users. Note that passwords are not affected the same way since only the hash is stored. 1a. If a user "admin" exists, and a users logs in as Admin/ADMIN/admiN/etc, the credentials will work but the user is greeted with a NullPointerException upon logging in. 1b. In Postgres/Oracle/Derby, attempting to login with the wrong case would fail. 2a. If a user "admin" exists, it is not possible to create another user with Admin/ADMIN/admiN/etc. 2b. In Postgres/Oracle/Derby, it is possible to create users with the same letters and different casing. 3. With User Authorization plugin installed, logging in with the wrong casing will cause the login process to hang at Loading Extensions with a different NPE {code} java.lang.NullPointerException at com.mirth.connect.plugins.auth.client.SecureAuthorizationController.initialize(SecureAuthorizationController.java:47) at com.mirth.connect.client.ui.Frame.setupFrame(Frame.java:392) at com.mirth.connect.client.ui.Mirth.<init>(Mirth.java:62) at com.mirth.connect.client.ui.LoginPanel$8.doInBackground(LoginPanel.java:438) at com.mirth.connect.client.ui.LoginPanel$8.doInBackground(LoginPanel.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:296) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at javax.swing.SwingWorker.run(SwingWorker.java:335) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} Example of the NPE you will see when logging in without User Authorization installed {code} [2015-02-11 04:35:00,589] ERROR (com.mirth.connect.server.servlets.UserServlet:160): java.lang.NullPointerException at com.mirth.connect.server.servlets.UserServlet.isCurrentUser(UserServlet.java:260) at com.mirth.connect.server.servlets.UserServlet.doPost(UserServlet.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Unknown Source) {code}

    Mirth Project | 2 years ago | nag r
    java.lang.NullPointerException
  2. 0

    SQL Server and MySQL string comparisons are case insensitive by default, which causes a few side effects regarding users. Note that passwords are not affected the same way since only the hash is stored. 1a. If a user "admin" exists, and a users logs in as Admin/ADMIN/admiN/etc, the credentials will work but the user is greeted with a NullPointerException upon logging in. 1b. In Postgres/Oracle/Derby, attempting to login with the wrong case would fail. 2a. If a user "admin" exists, it is not possible to create another user with Admin/ADMIN/admiN/etc. 2b. In Postgres/Oracle/Derby, it is possible to create users with the same letters and different casing. 3. With User Authorization plugin installed, logging in with the wrong casing will cause the login process to hang at Loading Extensions with a different NPE {code} java.lang.NullPointerException at com.mirth.connect.plugins.auth.client.SecureAuthorizationController.initialize(SecureAuthorizationController.java:47) at com.mirth.connect.client.ui.Frame.setupFrame(Frame.java:392) at com.mirth.connect.client.ui.Mirth.<init>(Mirth.java:62) at com.mirth.connect.client.ui.LoginPanel$8.doInBackground(LoginPanel.java:438) at com.mirth.connect.client.ui.LoginPanel$8.doInBackground(LoginPanel.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:296) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at javax.swing.SwingWorker.run(SwingWorker.java:335) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} Example of the NPE you will see when logging in without User Authorization installed {code} [2015-02-11 04:35:00,589] ERROR (com.mirth.connect.server.servlets.UserServlet:160): java.lang.NullPointerException at com.mirth.connect.server.servlets.UserServlet.isCurrentUser(UserServlet.java:260) at com.mirth.connect.server.servlets.UserServlet.doPost(UserServlet.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Unknown Source) {code}

    Mirth Project | 2 years ago | nag r
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.mirth.connect.server.servlets.UserServlet.isCurrentUser()
    2. com.mirth.connect
      UserServlet.doPost
      1. com.mirth.connect.server.servlets.UserServlet.isCurrentUser(UserServlet.java:260)
      2. com.mirth.connect.server.servlets.UserServlet.doPost(UserServlet.java:137)
      2 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    4. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)
      5. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)
      6. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
      7. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)
      8. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      9. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
      10. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      11. org.eclipse.jetty.server.Server.handle(Server.java:363)
      12. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
      13. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)
      14. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)
      15. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
      16. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
      17. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      17 frames
    5. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
      3. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
      3 frames
    6. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      2 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame