Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-12636

NullPointerException when deploying a file to Artifactory with no license

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 4.9.1, 4.12.0
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:
      None

      Description

      This happens from within the docker container (tried over http, port 80):

      
      * About to connect() to localhost port 80 (#0)
      *   Trying ::1... Connection refused
      *   Trying 127.0.0.1... connected
      * Connected to localhost (127.0.0.1) port 80 (#0)
      * Server auth using Basic with user 'admin'
      > PUT /artifactory/libs-release-local HTTP/1.1
      > Authorization: Basic YWRtaW46cGFzc3dvcmQ=
      > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
      > Host: localhost
      > Accept: */*
      > Content-Length: 838860800
      > Expect: 100-continue
      > 
      < HTTP/1.1 100 Continue
      data remaining< HTTP/1.1 500 Internal Server Error
      < Date: Tue, 27 Sep 2016 12:45:26 GMT
      < Content-Type: application/json;charset=ISO-8859-1
      < Transfer-Encoding: chunked
      < Connection: keep-alive
      < Server: Artifactory/4.12.2
      < X-Artifactory-Id: 51b74e1044308228:56a2d86a:1576badac01:-8000
      < 
      * transfer closed with outstanding read data remaining
      * Closing connection #0
      curl: (18) transfer closed with outstanding read data remaining
      

      Here is the error including a stacktrace:

      [http-nio-8081-exec-1] [ERROR] (o.a.w.s.RepoFilter  :237) - Sending HTTP error code 500
      java.lang.NullPointerException: null
      	at org.artifactory.addon.LicenseProvider.c(Artifactory:213) ~[artifactory-addons-manager-4.12.2.jar:na]
      	at org.artifactory.addon.AddonsManagerImpl.isLicenseExpired(Artifactory:650) ~[artifactory-addons-manager-4.12.2.jar:na]
      	at org.artifactory.addon.AddonsManagerImpl.e(Artifactory:452) ~[artifactory-addons-manager-4.12.2.jar:na]
      	at org.artifactory.addon.AddonsManagerImpl.interceptResponse(Artifactory:468) ~[artifactory-addons-manager-4.12.2.jar:na]
      	at org.artifactory.engine.UploadServiceImpl.upload(UploadServiceImpl.java:140) ~[artifactory-core-4.12.2.jar:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_91]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_91]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_91]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_91]
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:67) ~[artifactory-core-4.12.2.jar:na]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at com.sun.proxy.$Proxy57.upload(Unknown Source) ~[na:na]
      	at org.artifactory.webapp.servlet.RepoFilter.doUpload(RepoFilter.java:231) [artifactory-web-application-4.12.2.jar:na]
      	at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:180) [artifactory-web-application-4.12.2.jar:na]
      	at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:91) [artifactory-web-application-4.12.2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.32]
      	at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.lambda$1(ArtifactoryAuthenticationFilterChain.java:136) [artifactory-web-application-4.12.2.jar:na]
      	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201) ~[spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      	at org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:84) ~[artifactory-web-application-4.12.2.jar:na]
      	at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:172) [artifactory-web-application-4.12.2.jar:na]
      	at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:276) ~[artifactory-web-application-4.12.2.jar:na]
      	at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:200) ~[artifactory-web-application-4.12.2.jar:na]
      	at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:160) ~[artifactory-web-application-4.12.2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.32]
      	at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:61) ~[artifactory-web-application-4.12.2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.32]
      	at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:111) ~[artifactory-web-application-4.12.2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.32]
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) ~[catalina.jar:8.0.32]
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) ~[catalina.jar:8.0.32]
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) ~[catalina.jar:8.0.32]
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) ~[catalina.jar:8.0.32]
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) ~[catalina.jar:8.0.32]
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) ~[catalina.jar:8.0.32]
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) ~[tomcat-coyote.jar:8.0.32]
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) ~[tomcat-coyote.jar:8.0.32]
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) ~[tomcat-coyote.jar:8.0.32]
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) ~[tomcat-coyote.jar:8.0.32]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_91]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_91]
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-util.jar:8.0.32]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_91]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              guyco Guy Cohen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: