java.lang.NullPointerException

Sonatype JIRA | Tamás Cservenák | 7 years ago
  1. 0

    NPE happened while opening Routing panel in UI. I did exactly these steps: * started up virgin Nexus OSS * logged in as admin * opened Administration -> Server (was checking new UI regarding notification), did not change * clicked Cancel * opened Administration -> Routes * I got 500 response on UI and NPE was in log {noformat} jvm 1 | 2010-04-02 14:04:01 INFO [er_start_runner] - o.s.s.w.PlexusConfi~ - SecurityManager with role='org.sonatype.security.PlexusSecurityManager' and roleHint='web' found in Plexus. jvm 1 | 2010-04-02 14:04:02 INFO [er_start_runner] - org.mortbay.log - Started SelectChannelConnector@0.0.0.0:8081 jvm 1 | 2010-04-02 14:04:09 INFO [@qtp-35138160-0] - /nexus - nexus: [Noelios Restlet Engine] - Attaching application: org.sonatype.nexus.rest.NexusApplication@4f47e0ba to URI: /nexus jvm 1 | 2010-04-02 14:04:10 INFO [@qtp-35138160-0] - o.s.s.m.s.FileModel~ - Loading Security configuration from /Users/cstamas/tmp/nexus-gbundle/nexus-oss-webapp-1.5.1-SNAPSHOT/./../sonatype-work/nexus/conf/security.xml jvm 1 | 2010-04-02 14:05:07 ERROR [@qtp-35138160-6] - o.s.n.r.r.Repositor~ - Cannot create reference for repository with role of org.sonatype.nexus.proxy.repository.Repository jvm 1 | 2010-04-02 14:05:07 ERROR [@qtp-35138160-6] - o.s.n.e.r.DefaultEr~ - Detected Error in Nexus jvm 1 | java.lang.NullPointerException jvm 1 | at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.listRepositories(AbstractRepositoryPlexusResource.java:217) jvm 1 | at org.sonatype.nexus.rest.repositories.RepositoryListPlexusResource.get(RepositoryListPlexusResource.java:111) jvm 1 | at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:272) jvm 1 | at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) jvm 1 | at org.restlet.resource.Resource.getRepresentation(Resource.java:302) jvm 1 | at org.restlet.resource.Resource.handleGet(Resource.java:464) jvm 1 | at org.restlet.Finder.handle(Finder.java:353) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) {noformat}

    Sonatype JIRA | 7 years ago | Tamás Cservenák
    java.lang.NullPointerException
  2. 0

    NPE happened while opening Routing panel in UI. I did exactly these steps: * started up virgin Nexus OSS * logged in as admin * opened Administration -> Server (was checking new UI regarding notification), did not change * clicked Cancel * opened Administration -> Routes * I got 500 response on UI and NPE was in log {noformat} jvm 1 | 2010-04-02 14:04:01 INFO [er_start_runner] - o.s.s.w.PlexusConfi~ - SecurityManager with role='org.sonatype.security.PlexusSecurityManager' and roleHint='web' found in Plexus. jvm 1 | 2010-04-02 14:04:02 INFO [er_start_runner] - org.mortbay.log - Started SelectChannelConnector@0.0.0.0:8081 jvm 1 | 2010-04-02 14:04:09 INFO [@qtp-35138160-0] - /nexus - nexus: [Noelios Restlet Engine] - Attaching application: org.sonatype.nexus.rest.NexusApplication@4f47e0ba to URI: /nexus jvm 1 | 2010-04-02 14:04:10 INFO [@qtp-35138160-0] - o.s.s.m.s.FileModel~ - Loading Security configuration from /Users/cstamas/tmp/nexus-gbundle/nexus-oss-webapp-1.5.1-SNAPSHOT/./../sonatype-work/nexus/conf/security.xml jvm 1 | 2010-04-02 14:05:07 ERROR [@qtp-35138160-6] - o.s.n.r.r.Repositor~ - Cannot create reference for repository with role of org.sonatype.nexus.proxy.repository.Repository jvm 1 | 2010-04-02 14:05:07 ERROR [@qtp-35138160-6] - o.s.n.e.r.DefaultEr~ - Detected Error in Nexus jvm 1 | java.lang.NullPointerException jvm 1 | at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.listRepositories(AbstractRepositoryPlexusResource.java:217) jvm 1 | at org.sonatype.nexus.rest.repositories.RepositoryListPlexusResource.get(RepositoryListPlexusResource.java:111) jvm 1 | at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:272) jvm 1 | at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) jvm 1 | at org.restlet.resource.Resource.getRepresentation(Resource.java:302) jvm 1 | at org.restlet.resource.Resource.handleGet(Resource.java:464) jvm 1 | at org.restlet.Finder.handle(Finder.java:353) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) jvm 1 | at org.restlet.Filter.handle(Filter.java:195) jvm 1 | at org.restlet.Router.handle(Router.java:504) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) {noformat}

    Sonatype JIRA | 7 years ago | Tamás Cservenák
    java.lang.NullPointerException
  3. 0

    I'm seeing this in Nexus OSS SVN #5154, running the WAR version inside of Tomcat 6.0.20. When clicking on repositoiies in the repo view I get an error 500 once in a while. The log is below. At this point I don't know this bug is specific to the WAR version or not, this is just where I see it. INFO: Server startup in 6885 ms 2009-10-01 14:42:19 INFO - o.s.s.m.s.FileModel~ - Loading Security configuration from /Users/rseddon/sonatype-work/nexus/conf/security.xml 2009-10-01 14:42:24 INFO - o.s.n.p.s.r.RemoteR~:apacheH~ - Remote storage settings change detected for ProxyRepository ID="apache-snapshots" ("Apache Snapshots"), updating HttpClient... 2009-10-01 14:42:24 INFO - o.s.n.p.s.r.RemoteR~:apacheH~ - Remote storage settings change detected for ProxyRepository ID="central" ("Maven Central"), updating HttpClient... 2009-10-01 14:42:24 INFO - o.s.n.p.s.r.RemoteR~:apacheH~ - Remote storage settings change detected for ProxyRepository ID="codehaus-snapshots" ("Codehaus Snapshots"), updating HttpClient... 2009-10-01 14:42:31 WARN - o.s.p.r.r.PlexusRes~:Reposit~ - Repository access denied, id=thirdparty 2009-10-01 14:43:10 INFO - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [admin] from IP Address 0:0:0:0:0:0:0:1%0 2009-10-01 14:43:10 INFO - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [admin] from IP Address 0:0:0:0:0:0:0:1%0 2009-10-01 14:44:04 WARN - o.s.p.r.r.PlexusRes~:Reposit~ - Repository access denied, id=apache-snapshots 2009-10-01 14:46:04 ERROR - o.s.p.r.r.PlexusRes~:Reposit~ - Cannot create reference for non-existant repository 2009-10-01 14:46:04 ERROR - o.s.n.e.r.ErrorRepo~ - Detected Error in Nexus java.lang.NullPointerException at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.listRepositories(AbstractRepositoryPlexusResource.java:216) at org.sonatype.nexus.rest.repositories.RepositoryListPlexusResource.get(RepositoryListPlexusResource.java:93) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:263) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) 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.restlet.Filter.doHandle(Filter.java:150) at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) 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 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.ext.wadl.WadlApplication.handle(WadlApplication.java:705) 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:881) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 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.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:637) 2009-10-01 14:46:04 ERROR - o.s.n.r.NexusApplic~ - Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.listRepositories(AbstractRepositoryPlexusResource.java:216) at org.sonatype.nexus.rest.repositories.RepositoryListPlexusResource.get(RepositoryListPlexusResource.java:93) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:263) at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34) at org.restlet.resource.Resource.getRepresentation(Resource.java:302) at org.restlet.resource.Resource.handleGet(Resource.java:464) at org.restlet.Finder.handle(Finder.java:353) 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.restlet.Filter.doHandle(Filter.java:150) at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) 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 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.ext.wadl.WadlApplication.handle(WadlApplication.java:705) 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:881) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 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.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:637)

    Sonatype JIRA | 7 years ago | Rich Seddon
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

    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.rest.repositories.AbstractRepositoryPlexusResource.listRepositories()
    2. Nexus Core
      RepositoryListPlexusResource.get
      1. org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.listRepositories(AbstractRepositoryPlexusResource.java:217)
      2. org.sonatype.nexus.rest.repositories.RepositoryListPlexusResource.get(RepositoryListPlexusResource.java:111)
      2 frames
    3. ${project.groupId}:${project.artifactId}
      RestletResource.represent
      1. org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:272)
      1 frame
    4. Nexus Core
      NexusRestletResource.represent
      1. org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:34)
      1 frame
    5. org.restlet.resource
      Resource.handleGet
      1. org.restlet.resource.Resource.getRepresentation(Resource.java:302)
      2. org.restlet.resource.Resource.handleGet(Resource.java:464)
      2 frames
    6. org.restlet
      Filter.doHandle
      1. org.restlet.Finder.handle(Finder.java:353)
      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)
      8 frames