java.lang.NullPointerException

Sonatype JIRA | Marvin Herman Froeder | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Running Nexus142 with security on produces the following exception: 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: REQUEST /nexus/service/local/users/deleteUser on org.mortbay.jetty.HttpConnection@5324ccb0 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: sessionManager=org.mortbay.jetty.servlet.HashSessionManager@20e183e9 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: session=null 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: servlet=nexus 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: chain=nexusFilter->nexus 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: servlet holder=nexus 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: call filter nexusFilter 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: call servlet nexus 2008-12-24 13:40:22.694 ERROR [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.sonatype.nexus.rest.NexusApplication: Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.rest.users.UserPlexusResource.isCurrentUser(UserPlexusResource.java:186) at org.sonatype.nexus.rest.users.UserPlexusResource.delete(UserPlexusResource.java:161) at org.sonatype.plexus.rest.resource.RestletResource.removeRepresentations(RestletResource.java:321) at org.restlet.resource.Resource.delete(Resource.java:224) at org.restlet.resource.Resource.handleDelete(Resource.java:384) at org.restlet.Finder.handle(Finder.java:361) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.sonatype.plexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) at org.restlet.Application.handle(Application.java:341) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at org.restlet.Component.handle(Component.java:673) at org.restlet.Server.handle(Server.java:331) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:173) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) 2008-12-24 13:40:22.694 INFO [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.restlet.Component.LogService: 2008-12-24 13:40:22 127.0.0.1 - 127.0.0.1 54014 DELETE /nexus/service/local/users/deleteUser - 500 365 - 0 http://localhost:54014 Noelios-Restlet-Engine/1.1..1 - 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: RESPONSE /nexus/service/local/users/deleteUser 500

    Sonatype JIRA | 8 years ago | Marvin Herman Froeder
    java.lang.NullPointerException
  2. 0

    Running Nexus142 with security on produces the following exception: 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: REQUEST /nexus/service/local/users/deleteUser on org.mortbay.jetty.HttpConnection@5324ccb0 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: sessionManager=org.mortbay.jetty.servlet.HashSessionManager@20e183e9 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: session=null 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: servlet=nexus 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: chain=nexusFilter->nexus 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: servlet holder=nexus 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: call filter nexusFilter 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: call servlet nexus 2008-12-24 13:40:22.694 ERROR [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.sonatype.nexus.rest.NexusApplication: Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.rest.users.UserPlexusResource.isCurrentUser(UserPlexusResource.java:186) at org.sonatype.nexus.rest.users.UserPlexusResource.delete(UserPlexusResource.java:161) at org.sonatype.plexus.rest.resource.RestletResource.removeRepresentations(RestletResource.java:321) at org.restlet.resource.Resource.delete(Resource.java:224) at org.restlet.resource.Resource.handleDelete(Resource.java:384) at org.restlet.Finder.handle(Finder.java:361) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.sonatype.plexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) at org.restlet.Application.handle(Application.java:341) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at org.restlet.Component.handle(Component.java:673) at org.restlet.Server.handle(Server.java:331) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:173) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) 2008-12-24 13:40:22.694 INFO [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.restlet.Component.LogService: 2008-12-24 13:40:22 127.0.0.1 - 127.0.0.1 54014 DELETE /nexus/service/local/users/deleteUser - 500 365 - 0 http://localhost:54014 Noelios-Restlet-Engine/1.1..1 - 2008-12-24 13:40:22.694 DEBUG [qtp0-13 - /nexus/service/local/users/deleteUser:] - org.mortbay.log: RESPONSE /nexus/service/local/users/deleteUser 500

    Sonatype JIRA | 8 years ago | Marvin Herman Froeder
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.sonatype.nexus.rest.users.UserPlexusResource.isCurrentUser()
    2. org.sonatype.nexus
      UserPlexusResource.delete
      1. org.sonatype.nexus.rest.users.UserPlexusResource.isCurrentUser(UserPlexusResource.java:186)
      2. org.sonatype.nexus.rest.users.UserPlexusResource.delete(UserPlexusResource.java:161)
      2 frames
    3. ${project.groupId}:${project.artifactId}
      RestletResource.removeRepresentations
      1. org.sonatype.plexus.rest.resource.RestletResource.removeRepresentations(RestletResource.java:321)
      1 frame
    4. org.restlet.resource
      Resource.handleDelete
      1. org.restlet.resource.Resource.delete(Resource.java:224)
      2. org.restlet.resource.Resource.handleDelete(Resource.java:384)
      2 frames
    5. org.restlet
      Filter.handle
      1. org.restlet.Finder.handle(Finder.java:361)
      2. org.restlet.Filter.doHandle(Filter.java:150)
      3. org.restlet.Filter.handle(Filter.java:195)
      4. org.restlet.Router.handle(Router.java:504)
      5. org.restlet.Filter.doHandle(Filter.java:150)
      6. org.restlet.Filter.handle(Filter.java:195)
      7. org.restlet.Router.handle(Router.java:504)
      8. org.restlet.Filter.doHandle(Filter.java:150)
      9. org.restlet.Filter.handle(Filter.java:195)
      9 frames
    6. ${project.groupId}:${project.artifactId}
      RetargetableRestlet.handle
      1. org.sonatype.plexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33)
      1 frame
    7. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.doHandle(Filter.java:150)
      2. org.restlet.Filter.handle(Filter.java:195)
      3. org.restlet.Filter.doHandle(Filter.java:150)
      4. org.restlet.Filter.handle(Filter.java:195)
      5. org.restlet.Filter.doHandle(Filter.java:150)
      5 frames
    8. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
      1 frame
    9. org.restlet
      Filter.handle
      1. org.restlet.Filter.handle(Filter.java:195)
      2. org.restlet.Filter.doHandle(Filter.java:150)
      3. org.restlet.Filter.handle(Filter.java:195)
      3 frames
    10. com.noelios.restlet
      ApplicationHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
      2. com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
      2 frames
    11. org.restlet
      Filter.handle
      1. org.restlet.Application.handle(Application.java:341)
      2. org.restlet.Filter.doHandle(Filter.java:150)
      3. org.restlet.Filter.handle(Filter.java:195)
      4. org.restlet.Router.handle(Router.java:504)
      5. org.restlet.Filter.doHandle(Filter.java:150)
      6. org.restlet.Filter.handle(Filter.java:195)
      7. org.restlet.Router.handle(Router.java:504)
      8. org.restlet.Filter.doHandle(Filter.java:150)
      9. org.restlet.Filter.handle(Filter.java:195)
      9 frames
    12. com.noelios.restlet
      ChainHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
      1 frame
    13. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:673)
      2. org.restlet.Server.handle(Server.java:331)
      2 frames
    14. com.noelios.restlet
      ServerServlet.service
      1. com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)
      2. com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)
      3. com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884)
      3 frames
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    16. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124)
      2 frames
    17. org.jsecurity.web
      OncePerRequestFilter.doFilter
      1. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:173)
      1 frame
    18. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      9. org.mortbay.jetty.Server.handle(Server.java:320)
      10. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
      11. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
      12. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
      13. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
      14. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
      15. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      15 frames
    19. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
      1 frame