java.lang.NullPointerException: null

Sonatype JIRA | Tamás Cservenák | 3 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

    On {{npm publish}} the version is being queries first by NPM CLI, and naturally it does not exists yet on server. Still, NX plugin will attempt to apply filter on {{null}} resulting in NPE. {noformat} jvm 1 | 2014-09-26 11:43:30,259+0200 DEBUG [qtp1788435570-93] deployment com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository - getTargetsForRequest() :: npmhosted:/testproject1 jvm 1 | 2014-09-26 11:43:30,264+0200 WARN [qtp1788435570-93] deployment org.sonatype.nexus.content.internal.ContentServlet - null [client=127.0.0.1,ua=npm/1.4.28 node/v0.10.32 darwin x64,req=PUT http://localhost:8081/nexus/content/repositories/npmhosted/testproject1] jvm 1 | java.lang.NullPointerException: null jvm 1 | at com.bolyuba.nexus.plugin.npm.service.internal.GeneratorSupport.filterPackageVersionDist(GeneratorSupport.java:188) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.service.internal.GeneratorSupport.generatePackageVersion(GeneratorSupport.java:125) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.getResultingActionOnWrite(DefaultNpmHostedRepository.java:198) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.storeItem(DefaultNpmHostedRepository.java:252) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.storeItem(DefaultRepositoryRouter.java:179) ~[nexus-core-2.10.0-01.jar:2.10.0-01] jvm 1 | at org.sonatype.nexus.content.internal.ContentServlet.doPut(ContentServlet.java:602) [nexus-content-plugin-2.10.0-01/:na] {noformat}

    Sonatype JIRA | 3 years ago | Tamás Cservenák
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at com.bolyuba.nexus.plugin.npm.service.internal.GeneratorSupport.filterPackageVersionDist()
    2. com.bolyuba.nexus
      DefaultNpmHostedRepository.storeItem
      1. com.bolyuba.nexus.plugin.npm.service.internal.GeneratorSupport.filterPackageVersionDist(GeneratorSupport.java:188)[na:na]
      2. com.bolyuba.nexus.plugin.npm.service.internal.GeneratorSupport.generatePackageVersion(GeneratorSupport.java:125)[na:na]
      3. com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.getResultingActionOnWrite(DefaultNpmHostedRepository.java:198)[na:na]
      4. com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.storeItem(DefaultNpmHostedRepository.java:252)[na:na]
      4 frames
    3. ${project.groupId}:${project.artifactId}
      DefaultRepositoryRouter.storeItem
      1. org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.storeItem(DefaultRepositoryRouter.java:179)[nexus-core-2.10.0-01.jar:2.10.0-01]
      1 frame
    4. org.sonatype.nexus
      ContentServlet.doPut
      1. org.sonatype.nexus.content.internal.ContentServlet.doPut(ContentServlet.java:602)[nexus-content-plugin-2.10.0-01/:na]
      1 frame