Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-11925

Nexus 2 to Nexus 3 upgrade may fail with NullPointerException Cannot invoke method extract while processing RepositoryChangelogResource

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.1, 3.1.0
    • Fix Version/s: 2.14.2, 3.2.0
    • Component/s: Migration
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Sprint 83

      Description

      I try to upgrade from 2.14.1-01 to 3.1.0-04. I selected single proxy repository and got the following:

      Nexus 2 log contains the following:

      2016-11-22 15:06:22 WARN  [qtp10032359-104] *UNKNOWN org.sonatype.sisu.siesta.server.internal.mappers.ThrowableExceptionMapper - java.lang.NullPointerException: Cannot invoke method extract() on null object
      java.lang.NullPointerException: Cannot invoke method extract() on null object
      	at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:91) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:35) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:57) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[na:na]
      	at com.sonatype.nexus.migrationagent.rest.RepositoryChangelogResource$_get_closure1$_closure2.doCall(RepositoryChangelogResource.groovy:115) ~[na:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_111]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) ~[na:na]
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) ~[na:na]
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) ~[na:na]
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019) ~[na:na]
      	at groovy.lang.Closure.call(Closure.java:426) ~[na:na]
      	at groovy.lang.Closure.call(Closure.java:442) ~[na:na]
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030) ~[na:na]
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015) ~[na:na]
      	at org.codehaus.groovy.runtime.dgm$158.invoke(Unknown Source) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) ~[na:na]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[na:na]
      	at com.sonatype.nexus.migrationagent.rest.RepositoryChangelogResource$_get_closure1.doCall(RepositoryChangelogResource.groovy:107) ~[na:na]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              anatolys Anatoly Shirokov
              Last Updated By:
              Peter Lynch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: