Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12009

Exception during startup if no application baseUrl has been set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.7.2, 6.8.0
    • 6.7.0, 6.7.1
    • StartUp
    • None

    Description

      Issue Summary

      Steps to Reproduce

      1. Start the application without setting any application baseUrl

      Expected Results

      Actual Results

      The below exception is thrown in the application log file:

      ERROR [ThreadPoolAsyncTaskExecutor::Thread 34]  c.a.plugin.osgi.factory.OsgiPlugin Unable to start the plugin container for plugin 'com.atlassian.bitbucket.server.bitbucket-emoticons'
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'twemojiProvider' defined in URL [bundle://47.0:0/META-INF/spring/atlassian-plugins-components.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bitbucket.internal.emoticons.twemoji.TwemojiProvider]: Constructor threw exception; nested exception is java.lang.NullPointerException
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
      	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:57)
      	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:322)
      	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:287)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.lang.Thread.run(Thread.java:748)
      	... 11 frames trimmed
      Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bitbucket.internal.emoticons.twemoji.TwemojiProvider]: Constructor threw exception; nested exception is java.lang.NullPointerException
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:184)
      	... 9 common frames omitted
      Caused by: java.lang.NullPointerException: null
      	at com.atlassian.bitbucket.internal.emoticons.twemoji.TwemojiProvider.<init>(TwemojiProvider.java:47)
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
      	... 9 common frames omitted
      

       

      Workaround

      Set a value for the setup.baseUrl property

      Attachments

        Activity

          People

            fdoherty@atlassian.com Frank Doherty
            fdoherty@atlassian.com Frank Doherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: