java.lang.NullPointerException

Sonatype JIRA | Brian Fox | 8 years ago
  1. 0

    I got this exception by trying to setup nexus to point at my local repo...i defined an override storage location of file://d:/mavenrepo jvm 1 | 2008-07-09 20:49:27,029 INFO [org.sonatype.nexus.proxy.registry.RepositoryRegistry:default] - Added repository ID=local (contentClass=maven2) jvm 1 | 2008-07-09 20:49:27,031 INFO [org.sonatype.nexus.configuration.NexusConfiguration:default] - Applyi ng Nexus Configuration... jvm 1 | Jul 9, 2008 8:49:27 PM com.noelios.restlet.StatusFilter getStatus jvm 1 | SEVERE: Unhandled exception or error intercepted jvm 1 | java.lang.NullPointerException jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.setRepositoryIndexContextSearchable(DefaultI ndexerManager.java:324) jvm 1 | at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:438) jvm 1 | at org.sonatype.nexus.rest.repositories.RepositoryListResourceHandler.post(RepositoryListResou rceHandler.java:224) jvm 1 | at org.restlet.resource.Resource.handlePost(Resource.java:484) jvm 1 | at org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePost(AbstractNexusResourceHandle r.java:348) jvm 1 | at org.restlet.Finder.handle(Finder.java:297) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Guard.accept(Guard.java:83) jvm 1 | at org.restlet.Guard.doHandle(Guard.java:198) jvm 1 | at org.sonatype.nexus.rest.NexusAuthenticationGuard.doHandle(NexusAuthenticationGuard.java:100 ) jvm 1 | at org.sonatype.nexus.rest.NexusWriteAccessAuthenticationGuard.doHandle(NexusWriteAccessAuthen ticationGuard.java:60) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Router.handle(Router.java:445) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Guard.accept(Guard.java:83) jvm 1 | at org.restlet.Guard.doHandle(Guard.java:198) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Router.handle(Router.java:445) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:98) jvm 1 | at org.restlet.Application.handle(Application.java:294) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Router.handle(Router.java:445) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Router.handle(Router.java:445) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at org.restlet.Filter.doHandle(Filter.java:105) jvm 1 | at org.restlet.Filter.handle(Filter.java:135) jvm 1 | at com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120) jvm 1 | at org.restlet.Component.handle(Component.java:231) jvm 1 | at org.restlet.Server.handle(Server.java:282)

    Sonatype JIRA | 8 years ago | Brian Fox
    java.lang.NullPointerException
  2. 0

    Looks like nexus is trying to index shadow repos. Run Nexus642SynchShadowTaskTest to taste it. Got the following exception: 2009-05-06 15:33:16 ERROR [al/repositories] - o.s.n.r.NexusApplic~ - Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.setRepositoryIndexContextSearchable(DefaultIndexerManager.java:337) at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:304) at org.sonatype.nexus.rest.repositories.RepositoryListPlexusResource.post(RepositoryListPlexusResource.java:88) at org.sonatype.plexus.rest.resource.RestletResource.acceptRepresentation(RestletResource.java:281) at org.restlet.resource.Resource.post(Resource.java:688) at org.restlet.resource.Resource.handlePost(Resource.java:537) at org.restlet.Finder.handle(Finder.java:357) 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: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.content(HttpConnection.java:879) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213) 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)

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

    Looks like nexus is trying to index shadow repos. Run Nexus642SynchShadowTaskTest to taste it. Got the following exception: 2009-05-06 15:33:16 ERROR [al/repositories] - o.s.n.r.NexusApplic~ - Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.setRepositoryIndexContextSearchable(DefaultIndexerManager.java:337) at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:304) at org.sonatype.nexus.rest.repositories.RepositoryListPlexusResource.post(RepositoryListPlexusResource.java:88) at org.sonatype.plexus.rest.resource.RestletResource.acceptRepresentation(RestletResource.java:281) at org.restlet.resource.Resource.post(Resource.java:688) at org.restlet.resource.Resource.handlePost(Resource.java:537) at org.restlet.Finder.handle(Finder.java:357) 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: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.content(HttpConnection.java:879) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213) 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)

    Sonatype JIRA | 8 years ago | Marvin Herman Froeder
    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.index.DefaultIndexerManager.setRepositoryIndexContextSearchable()
    2. Sonatype Nexus Indexer
      DefaultIndexerManager.setRepositoryIndexContextSearchable
      1. org.sonatype.nexus.index.DefaultIndexerManager.setRepositoryIndexContextSearchable(DefaultIndexerManager.java:324)
      1 frame
    3. ${project.groupId}:${project.artifactId}
      DefaultNexus.createRepository
      1. org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:438)
      1 frame
    4. Nexus Core
      RepositoryListResourceHandler.post
      1. org.sonatype.nexus.rest.repositories.RepositoryListResourceHandler.post(RepositoryListResourceHandler.java:224)
      1 frame
    5. org.restlet.resource
      Resource.handlePost
      1. org.restlet.resource.Resource.handlePost(Resource.java:484)
      1 frame
    6. Nexus Core
      AbstractNexusResourceHandler.handlePost
      1. org.sonatype.nexus.rest.AbstractNexusResourceHandler.handlePost(AbstractNexusResourceHandler.java:348)
      1 frame
    7. org.restlet
      Guard.doHandle
      1. org.restlet.Finder.handle(Finder.java:297)
      2. org.restlet.Filter.doHandle(Filter.java:105)
      3. org.restlet.Guard.accept(Guard.java:83)
      4. org.restlet.Guard.doHandle(Guard.java:198)
      4 frames
    8. Nexus Core
      NexusWriteAccessAuthenticationGuard.doHandle
      1. org.sonatype.nexus.rest.NexusAuthenticationGuard.doHandle(NexusAuthenticationGuard.java:100)
      2. org.sonatype.nexus.rest.NexusWriteAccessAuthenticationGuard.doHandle(NexusWriteAccessAuthenticationGuard.java:60)
      2 frames
    9. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.handle(Filter.java:135)
      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.Guard.accept(Guard.java:83)
      7. org.restlet.Guard.doHandle(Guard.java:198)
      8. org.restlet.Filter.handle(Filter.java:135)
      9. org.restlet.Filter.doHandle(Filter.java:105)
      10. org.restlet.Filter.handle(Filter.java:135)
      11. org.restlet.Filter.doHandle(Filter.java:105)
      12. org.restlet.Filter.handle(Filter.java:135)
      13. org.restlet.Router.handle(Router.java:445)
      14. org.restlet.Filter.doHandle(Filter.java:105)
      15. org.restlet.Filter.handle(Filter.java:135)
      16. org.restlet.Filter.doHandle(Filter.java:105)
      16 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.doHandle
      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)
      8 frames
    14. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:89)
      1 frame
    15. 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
    16. com.noelios.restlet
      ComponentHelper.handle
      1. com.noelios.restlet.component.ComponentHelper.handle(ComponentHelper.java:120)
      1 frame
    17. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:231)
      2. org.restlet.Server.handle(Server.java:282)
      2 frames