java.lang.NullPointerException

Sonatype JIRA | Kristine O'Connor | 8 years ago
  1. 0

    In running the nexus automated script, I began to receive an error of "There is an error communicating with the server. The server encountered an unexpected condition which prevented it from fulfilling the request. Nexus returned an error: ERROR 500: Internal Server Error" From the nexus.log: 2008-08-15 09:34:44.918 ERROR [btpool0-6:] - org.sonatype.nexus.rest.ApplicationBridge: Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.util.StringDigester.getDigest(StringDigester.java:54) at org.sonatype.nexus.util.StringDigester.getSha1Digest(StringDigester.java:100) at org.sonatype.nexus.configuration.security.DefaultPasswordGenerator.hashPassword(DefaultPasswordGenerator.java:65) at org.sonatype.nexus.configuration.security.DefaultNexusSecurityConfiguration.changePassword(DefaultNexusSecurityConfiguration.java:469) at org.sonatype.nexus.rest.global.GlobalConfigurationResourceHandler.put(GlobalConfigurationResourceHandler.java:252) at org.restlet.resource.Resource.handlePut(Resource.java:548) at org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePut(AbstractNexusResourceHandler.java:356) at org.restlet.Finder.handle(Finder.java:299) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.sonatype.nexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) at org.restlet.Application.handle(Application.java:294) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120) at org.restlet.Component.handle(Component.java:231) at org.restlet.Server.handle(Server.java:282) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:100) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:94) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:67) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 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:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) 2008-08-15 09:34:44.949 INFO [btpool0-6:] - org.restlet.Component (10023314): 2008-08-15 09:34:44 127.0.0.1 - 127.0.0.1 8081 PUT /nexus/service/local/global_settings/current - 500 366 550 94 http://localhost:8081 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8081/nexus/ 2008-08-15 09:34:46.465 INFO [btpool0-6:] - org.restlet.Component (10023314): 2008-08-15 09:34:46 127.0.0.1 - 127.0.0.1 8081 GET /nexus/service/local/roles/ _dc=1218818086453 200 992 - 16 http://localhost:8081 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8081/nexus/ 2008-08-15 09:34:46.527 INFO [btpool0-10:] - org.restlet.Component (10023314): 2008-08-15 09:34:46 127.0.0.1 - 127.0.0.1 8081 GET /nexus/service/local/privileges/ _dc=1218818086459 200 21291 - 47 http://localhost:8081 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8081/nexus/

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.NullPointerException
  2. 0

    In running the nexus automated script, I began to receive an error of "There is an error communicating with the server. The server encountered an unexpected condition which prevented it from fulfilling the request. Nexus returned an error: ERROR 500: Internal Server Error" From the nexus.log: 2008-08-15 09:34:44.918 ERROR [btpool0-6:] - org.sonatype.nexus.rest.ApplicationBridge: Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.util.StringDigester.getDigest(StringDigester.java:54) at org.sonatype.nexus.util.StringDigester.getSha1Digest(StringDigester.java:100) at org.sonatype.nexus.configuration.security.DefaultPasswordGenerator.hashPassword(DefaultPasswordGenerator.java:65) at org.sonatype.nexus.configuration.security.DefaultNexusSecurityConfiguration.changePassword(DefaultNexusSecurityConfiguration.java:469) at org.sonatype.nexus.rest.global.GlobalConfigurationResourceHandler.put(GlobalConfigurationResourceHandler.java:252) at org.restlet.resource.Resource.handlePut(Resource.java:548) at org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePut(AbstractNexusResourceHandler.java:356) at org.restlet.Finder.handle(Finder.java:299) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.sonatype.nexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) at org.restlet.Application.handle(Application.java:294) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at org.restlet.Router.handle(Router.java:445) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:135) at com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120) at org.restlet.Component.handle(Component.java:231) at org.restlet.Server.handle(Server.java:282) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:100) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:94) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:67) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) 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:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) 2008-08-15 09:34:44.949 INFO [btpool0-6:] - org.restlet.Component (10023314): 2008-08-15 09:34:44 127.0.0.1 - 127.0.0.1 8081 PUT /nexus/service/local/global_settings/current - 500 366 550 94 http://localhost:8081 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8081/nexus/ 2008-08-15 09:34:46.465 INFO [btpool0-6:] - org.restlet.Component (10023314): 2008-08-15 09:34:46 127.0.0.1 - 127.0.0.1 8081 GET /nexus/service/local/roles/ _dc=1218818086453 200 992 - 16 http://localhost:8081 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8081/nexus/ 2008-08-15 09:34:46.527 INFO [btpool0-10:] - org.restlet.Component (10023314): 2008-08-15 09:34:46 127.0.0.1 - 127.0.0.1 8081 GET /nexus/service/local/privileges/ _dc=1218818086459 200 21291 - 47 http://localhost:8081 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 http://localhost:8081/nexus/

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    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 org.sonatype.nexus.util.StringDigester.getDigest()
    2. ${project.groupId}:${project.artifactId}
      StringDigester.getSha1Digest
      1. org.sonatype.nexus.util.StringDigester.getDigest(StringDigester.java:54)
      2. org.sonatype.nexus.util.StringDigester.getSha1Digest(StringDigester.java:100)
      2 frames
    3. org.sonatype.nexus
      DefaultNexusSecurityConfiguration.changePassword
      1. org.sonatype.nexus.configuration.security.DefaultPasswordGenerator.hashPassword(DefaultPasswordGenerator.java:65)
      2. org.sonatype.nexus.configuration.security.DefaultNexusSecurityConfiguration.changePassword(DefaultNexusSecurityConfiguration.java:469)
      2 frames
    4. Nexus Core
      GlobalConfigurationResourceHandler.put
      1. org.sonatype.nexus.rest.global.GlobalConfigurationResourceHandler.put(GlobalConfigurationResourceHandler.java:252)
      1 frame
    5. org.restlet.resource
      Resource.handlePut
      1. org.restlet.resource.Resource.handlePut(Resource.java:548)
      1 frame
    6. Nexus Core
      AbstractNexusResourceHandler.handlePut
      1. org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePut(AbstractNexusResourceHandler.java:356)
      1 frame
    7. org.restlet
      Router.handle
      1. org.restlet.Finder.handle(Finder.java:299)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      4. org.restlet.Router.handle(Router.java:445)
      5. org.restlet.Filter.doHandle(Filter.java:105)
      6. org.restlet.Filter.handle(Filter.java:135)
      7. org.restlet.Filter.doHandle(Filter.java:105)
      8. org.restlet.Filter.handle(Filter.java:135)
      9. org.restlet.Router.handle(Router.java:445)
      9 frames
    8. Nexus Core
      RetargetableRestlet.handle
      1. org.sonatype.nexus.rest.RetargetableRestlet.handle(RetargetableRestlet.java:33)
      1 frame
    9. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.doHandle(Filter.java:105)
      2. org.restlet.Filter.handle(Filter.java:135)
      3. org.restlet.Filter.doHandle(Filter.java:105)
      3 frames
    10. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89)
      1 frame
    11. org.restlet
      Filter.handle
      1. org.restlet.Filter.handle(Filter.java:135)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      3 frames
    12. com.noelios.restlet
      ApplicationHelper.handle
      1. com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98)
      1 frame
    13. org.restlet
      Filter.handle
      1. org.restlet.Application.handle(Application.java:294)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Filter.handle(Filter.java:135)
      4. org.restlet.Router.handle(Router.java:445)
      5. org.restlet.Filter.doHandle(Filter.java:105)
      6. org.restlet.Filter.handle(Filter.java:135)
      7. org.restlet.Router.handle(Router.java:445)
      8. org.restlet.Filter.doHandle(Filter.java:105)
      9. org.restlet.Filter.handle(Filter.java:135)
      9 frames
    14. com.noelios.restlet
      ComponentHelper.handle
      1. com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120)
      1 frame
    15. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:231)
      2. org.restlet.Server.handle(Server.java:282)
      2 frames
    16. com.noelios.restlet
      ServerServlet.service
      1. com.noelios.restlet.ServerHelper.handle(ServerHelper.java:100)
      2. com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:94)
      3. com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:399)
      3 frames
    17. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    18. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
      2 frames
    19. org.jsecurity.web
      JSecurityFilter.doFilterInternal
      1. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52)
      2. org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105)
      3. org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135)
      4. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
      5. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57)
      6. org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105)
      7. org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135)
      8. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
      9. org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57)
      10. org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382)
      10 frames
    20. Nexus Core
      NexusJSecurityFilter.doFilterInternal
      1. org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:67)
      1 frame
    21. org.jsecurity.web
      OncePerRequestFilter.doFilter
      1. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
      1 frame
    22. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      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:729)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:324)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      16 frames
    23. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
      1 frame