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

3.20.0 Pro may fail to start due to race condition loading product license

    XMLWordPrintable

    Details

      Description

      When starting a licensed NXRM pro 3.20.0 version, NXRM may not start and report the following message in the nexus.log.

      2019-12-18 12:45:59,164+0000 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to start nexus
      com.google.inject.ProvisionException: Unable to provision, see the following errors:
      
      1) Error injecting constructor, java.lang.NullPointerException
        at com.sonatype.analytics.internal.AnalyticsReportServiceImpl.<init>(AnalyticsReportServiceImpl.java:63)
        at / (via modules: org.sonatype.nexus.extender.modules.NexusBundleModule -> org.eclipse.sisu.space.SpaceModule)
        while locating com.sonatype.analytics.internal.AnalyticsReportServiceImpl
        while locating java.lang.Object annotated with *
        at org.eclipse.sisu.wire.LocatorWiring
        while locating com.sonatype.analytics.AnalyticsReportService
          for the 6th parameter of com.sonatype.analytics.internal.AnalyticsScheduledReporterImpl.<init>(AnalyticsScheduledReporterImpl.java:93)
        at / (via modules: org.sonatype.nexus.extender.modules.NexusBundleModule -> org.eclipse.sisu.space.SpaceModule)
        while locating com.sonatype.analytics.internal.AnalyticsScheduledReporterImpl
        while locating java.lang.Object annotated with *
      
      Caused by: java.lang.NullPointerException: null
      	at com.sonatype.analytics.internal.AnalyticsReportServiceImpl.<init>(AnalyticsReportServiceImpl.java:74)
      	at com.sonatype.analytics.internal.AnalyticsReportServiceImpl$$FastClassByGuice$$8fbb33ec.newInstance(<generated>)
      	at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
      	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
      	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
      	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      	at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
      	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
      	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
      	at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
      	at org.eclipse.sisu.wire.BeanProviders.firstOf(BeanProviders.java:179)
      	at org.eclipse.sisu.wire.BeanProviders$7.get(BeanProviders.java:160)
      	
      

      Diagnosis

      This error will not always happen and since the cause is a race-condition of product license loading, affected customers are impossible to predict.

      Workaround

      Do not upgrade to 3.20.0 if you are affected. A supported point released version with mitigation will be released.

      As this only affects Pro licensed customers, if you require a temporary way to bypass the issue and still upgrade to 3.20.0, contact Sonatype support for more options.

      support@sonatype.com
      https://support.sonatype.com

        Attachments

          Activity

            People

            Assignee:
            mbucher Michael Bucher
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Wes Wannemacher
            Team:
            NXRM - Operations/Groot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title