java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Arturo Aparicio,
  • 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}
    via by Arturo Aparicio,
    • 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]
    No Bugmate found.