java.lang.NullPointerException: null

JFrog JIRA | Arturo Aparicio | 11 months ago
  1. 0

    Retrieving a repository configuration from an NPM Virtual Repositories using the REST API leads to an HTTP 500 error. h3. To reproduce 1. Create a virtual repository, name it 'npm-a' 2. Perform the [GET repository configuration call|https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RepositoryConfiguration]. Something along these lines {noformat} curl -u admin:password http://localhost:8081/artifactory/api/repositories/npm-a {noformat} h3. Observe the error {noformat} { "errors" : [ { "status" : 500, "message" : "An unexpected error has occurred, please check Artifactory logs for further details." } ] {noformat} h3. Artifactory log {noformat} 2016-02-13 10:52:05,603 [http-nio-8081-exec-1] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:46) - null java.lang.NullPointerException: null at org.artifactory.repo.VirtualRepositoryConfigurationImpl.<init>(VirtualRepositoryConfigurationImpl.java:75) ~[artifactory-common-4.4.3.jar:na] at org.artifactory.addon.rest.RestAddonImpl.getRepositoryConfiguration(RestAddonImpl.java:623) ~[artifactory-addon-rest-4.4.3.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_71] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_71] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE] .... {noformat}

    JFrog JIRA | 11 months ago | Arturo Aparicio
    java.lang.NullPointerException: null
  2. 0

    Retrieving a repository configuration from an NPM Virtual Repositories using the REST API leads to an HTTP 500 error. h3. To reproduce 1. Create a virtual repository, name it 'npm-a' 2. Perform the [GET repository configuration call|https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RepositoryConfiguration]. Something along these lines {noformat} curl -u admin:password http://localhost:8081/artifactory/api/repositories/npm-a {noformat} h3. Observe the error {noformat} { "errors" : [ { "status" : 500, "message" : "An unexpected error has occurred, please check Artifactory logs for further details." } ] {noformat} h3. Artifactory log {noformat} 2016-02-13 10:52:05,603 [http-nio-8081-exec-1] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:46) - null java.lang.NullPointerException: null at org.artifactory.repo.VirtualRepositoryConfigurationImpl.<init>(VirtualRepositoryConfigurationImpl.java:75) ~[artifactory-common-4.4.3.jar:na] at org.artifactory.addon.rest.RestAddonImpl.getRepositoryConfiguration(RestAddonImpl.java:623) ~[artifactory-addon-rest-4.4.3.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_71] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_71] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE] .... {noformat}

    JFrog JIRA | 11 months ago | Arturo Aparicio
    java.lang.NullPointerException: null
  3. 0
    Elasticsearch 1.x and 2.x nodes are not compatible, make sure your setup contains nodes of the same major version.
    via GitHub by dakrone
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    It is a JDK bug, no workaround currently.
    via GitHub by jroper
  6. 0
    Some of the parametes ar enull

    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.artifactory.repo.VirtualRepositoryConfigurationImpl.<init>()
    2. org.artifactory.repo
      VirtualRepositoryConfigurationImpl.<init>
      1. org.artifactory.repo.VirtualRepositoryConfigurationImpl.<init>(VirtualRepositoryConfigurationImpl.java:75)[artifactory-common-4.4.3.jar:na]
      1 frame
    3. org.artifactory.addon
      RestAddonImpl.getRepositoryConfiguration
      1. org.artifactory.addon.rest.RestAddonImpl.getRepositoryConfiguration(RestAddonImpl.java:623)[artifactory-addon-rest-4.4.3.jar:na]
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_71]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_71]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_71]
      4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_71]
      4 frames
    5. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      1 frame