java.lang.NullPointerException: null

Sonatype JIRA | Matthew Casperson | 12 months ago
  1. 0

    I am attempting to define a new NPM repo via the REST API with a POST to http://localhost:8081/nexus/service/local/repositories with the body {code} <repository><data><id>npm</id><name>npm</name><exposed>true</exposed><repoType>proxy</repoType><checksumPolicy>IGNORE</checksumPolicy><repoPolicy>MIXED</repoPolicy><providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole><provider>npm-proxy</provider><format>npm</format><contentResourceURI>https://registry.npmjs.org/</contentResourceURI></data></repository> {code} This call results in a NullPointerException: {code} jvm 1 | java.lang.NullPointerException: null jvm 1 | at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.getRepositoryProxyRestModel(AbstractRepositoryPlexusResource.java:346) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.getRepositoryRestModel(AbstractRepositoryPlexusResource.java:258) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.getRepositoryResourceResponse(AbstractRepositoryPlexusResource.java:234) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.sonatype.nexus.rest.repositories.RepositoryPlexusResource.get(RepositoryPlexusResource.java:114) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:233) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:39) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.resource.Resource.getRepresentation(Resource.java:302) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.resource.Resource.handleGet(Resource.java:464) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Finder.handle(Finder.java:353) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Router.handle(Router.java:504) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:36) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) ~[nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Application.handle(Application.java:341) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Router.handle(Router.java:504) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Router.handle(Router.java:504) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Component.handle(Component.java:676) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at org.restlet.Server.handle(Server.java:331) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) [nexus-restlet1x-plugin-2.11.4-01/:na] jvm 1 | at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) [nexus-restlet1x-plugin-2.11.4-01/:na] {code}

    Sonatype JIRA | 12 months ago | Matthew Casperson
    java.lang.NullPointerException: null
  2. 0

    HQL Exception (org.hibernate.dialect.Dialect$3)

    Stack Overflow | 4 years ago | Hari
    java.lang.NullPointerException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error loading model properties in JPA on play 2.0.3

    Stack Overflow | 4 years ago | Chappies
    java.lang.NullPointerException: null
  5. 0

    Why lift can't find my "db.properties"

    Stack Overflow | 5 years ago | Freewind
    java.lang.NullPointerException: null

    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

      null

      at org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.getRepositoryProxyRestModel()
    2. Nexus Core
      RepositoryPlexusResource.get
      1. org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.getRepositoryProxyRestModel(AbstractRepositoryPlexusResource.java:346)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.getRepositoryRestModel(AbstractRepositoryPlexusResource.java:258)[nexus-restlet1x-plugin-2.11.4-01/:na]
      3. org.sonatype.nexus.rest.repositories.AbstractRepositoryPlexusResource.getRepositoryResourceResponse(AbstractRepositoryPlexusResource.java:234)[nexus-restlet1x-plugin-2.11.4-01/:na]
      4. org.sonatype.nexus.rest.repositories.RepositoryPlexusResource.get(RepositoryPlexusResource.java:114)[nexus-restlet1x-plugin-2.11.4-01/:na]
      4 frames
    3. ${project.groupId}:${project.artifactId}
      RestletResource.represent
      1. org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:233)[nexus-restlet1x-plugin-2.11.4-01/:na]
      1 frame
    4. Nexus Core
      NexusRestletResource.represent
      1. org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:39)[nexus-restlet1x-plugin-2.11.4-01/:na]
      1 frame
    5. org.restlet.resource
      Resource.handleGet
      1. org.restlet.resource.Resource.getRepresentation(Resource.java:302)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. org.restlet.resource.Resource.handleGet(Resource.java:464)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2 frames
    6. org.restlet
      Filter.doHandle
      1. org.restlet.Finder.handle(Finder.java:353)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      3. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      4. org.restlet.Router.handle(Router.java:504)[nexus-restlet1x-plugin-2.11.4-01/:na]
      5. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      6. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      7. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      7 frames
    7. ${project.groupId}:${project.artifactId}
      RetargetableRestlet.doHandle
      1. org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:36)[nexus-restlet1x-plugin-2.11.4-01/:na]
      1 frame
    8. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      3. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      4. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      5. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      6. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      6 frames
    9. com.noelios.restlet
      StatusFilter.doHandle
      1. com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)[nexus-restlet1x-plugin-2.11.4-01/:na]
      1 frame
    10. org.restlet
      Filter.handle
      1. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      3. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      3 frames
    11. com.noelios.restlet
      ApplicationHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2 frames
    12. org.restlet
      Router.handle
      1. org.restlet.Application.handle(Application.java:341)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      3. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      4. org.restlet.Router.handle(Router.java:504)[nexus-restlet1x-plugin-2.11.4-01/:na]
      5. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.11.4-01/:na]
      6. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.11.4-01/:na]
      7. org.restlet.Router.handle(Router.java:504)[nexus-restlet1x-plugin-2.11.4-01/:na]
      7 frames
    13. com.noelios.restlet
      ChainHelper.handle
      1. com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)[nexus-restlet1x-plugin-2.11.4-01/:na]
      1 frame
    14. org.restlet
      Server.handle
      1. org.restlet.Component.handle(Component.java:676)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. org.restlet.Server.handle(Server.java:331)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2 frames
    15. com.noelios.restlet
      HttpServerHelper.handle
      1. com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2. com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)[nexus-restlet1x-plugin-2.11.4-01/:na]
      2 frames