atlassian-authentication-plugin throws MalformedURLException during JIRA setup

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 7.3.1
    • Affects Version/s: 7.3.0
    • Component/s: None
    • 7.03
    • Severity 3 - Minor

      When JIRA is setup we get following exception in the logs:

      2017-01-10 19:36:58,356 ThreadPoolAsyncTaskExecutor::Thread 2 ERROR anonymous 1176x190x1 n8ob51 172.18.74.30 /secure/SetupDatabase.jspa [o.e.g.b.e.i.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.plugins.authentication.atlassian-authentication-plugin], unsatisfied dependencies: none
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JIRALoginGadgetDisabler': Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.net.MalformedURLException: no protocol: null/plugins/servlet/samlconsumer
      at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
      at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
      at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
      at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
      at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalStateException: java.net.MalformedURLException: no protocol: null/plugins/servlet/samlconsumer
      at com.atlassian.plugins.authentication.impl.config.saml.persistance.SamlConfigDAO.load(SamlConfigDAO.java:57)
      at com.atlassian.plugins.authentication.impl.config.saml.SamlConfigService.getSamlConfig(SamlConfigService.java:44)
      at com.atlassian.plugins.authentication.impl.config.JIRALoginGadgetDisabler.disableLoginGadget(JIRALoginGadgetDisabler.java:86)
      at com.atlassian.plugins.authentication.impl.config.JIRALoginGadgetDisabler.setup(JIRALoginGadgetDisabler.java:49)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ... 1 filtered
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
      at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
      at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
      ... 18 more
      Caused by: java.net.MalformedURLException: no protocol: null/plugins/servlet/samlconsumer
      at java.net.URL.<init>(URL.java:593)
      at java.net.URL.<init>(URL.java:490)
      at java.net.URL.<init>(URL.java:439)
      at com.atlassian.plugins.authentication.impl.config.saml.persistance.SamlConfigDAO.load(SamlConfigDAO.java:55)
      ... 28 more

      This is intermittent and JIRA continues to work properly after base url is setup. 

              Assignee:
              Ignat (Inactive)
              Reporter:
              Adam Jakubowski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: