java.lang.NullPointerException: null

Sonatype JIRA | Pehr Johansson | 4 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

    When generating a GET request, such as: GET /nexus/libs-snapshots-local/myartifact.jar HTTP/1.1 Host: myserver:8081 If-None-Match: 2302a69ea30bcdec1256de37a93b8ab0933229c8 Server responds with: HTTP/1.1 500 Internal Server Error java.lang.NullPointerException: null at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.getResourceStoreRequest(AbstractResourceStoreContentPlexusResource.java:336) ~[nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09] at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.getResourceStoreRequest(AbstractResourceStoreContentPlexusResource.java:299) ~[nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09] at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:168) ~[nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09] at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:269) [plexus-restlet-bridge-1.25.jar:1.25] at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:43) [nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09] at org.restlet.resource.Resource.getRepresentation(Resource.java:302) [org.restlet-1.1.6-SONATYPE-5348-V8.jar:na] at org.restlet.resource.Resource.handleGet(Resource.java:464) [org.restlet-1.1.6-SONATYPE-5348-V8.jar:na] Same request without If-None-Match: GET /nexus/libs-snapshots-local/myartifact.jar HTTP/1.1 Host: myserver:8081 Server responds with: HTTP/1.1 404 Not Found

    Sonatype JIRA | 4 years ago | Pehr Johansson
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.getResourceStoreRequest()
    2. Nexus Core
      AbstractResourceStoreContentPlexusResource.get
      1. org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.getResourceStoreRequest(AbstractResourceStoreContentPlexusResource.java:336)[nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09]
      2. org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.getResourceStoreRequest(AbstractResourceStoreContentPlexusResource.java:299)[nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09]
      3. org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.get(AbstractResourceStoreContentPlexusResource.java:168)[nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09]
      3 frames
    3. ${project.groupId}:${project.artifactId}
      RestletResource.represent
      1. org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:269)[plexus-restlet-bridge-1.25.jar:1.25]
      1 frame
    4. Nexus Core
      NexusRestletResource.represent
      1. org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:43)[nexus-restlet1x-plugin-2.4.0-09.jar:2.4.0-09]
      1 frame
    5. org.restlet.resource
      Resource.handleGet
      1. org.restlet.resource.Resource.getRepresentation(Resource.java:302)[org.restlet-1.1.6-SONATYPE-5348-V8.jar:na]
      2. org.restlet.resource.Resource.handleGet(Resource.java:464)[org.restlet-1.1.6-SONATYPE-5348-V8.jar:na]
      2 frames