com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: No valid JIRA Home directory.

Atlassian JIRA | Brenden Bain [Atlassian] | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    # Start JIRA with no JIRA home specified. You will see this: {noformat} Jun 01, 2014 3:27:06 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter trustedapps com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: No valid JIRA Home directory. at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:87) at com.atlassian.jira.config.properties.ApplicationPropertiesStore.getOverlayedString(ApplicationPropertiesStore.java:364) at com.atlassian.jira.config.properties.ApplicationPropertiesStore.getString(ApplicationPropertiesStore.java:357) at com.atlassian.jira.config.properties.ApplicationPropertiesImpl.getDefaultBackedString(ApplicationPropertiesImpl.java:66) at com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$ApplicationPropertiesClassNameRetriever.get(UserNameTransformer.java:68) at com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$Factory.get(UserNameTransformer.java:99) at com.atlassian.jira.security.auth.trustedapps.TrustedApplicationFilter$OSUserResolver.<init>(TrustedApplicationFilter.java:40) at com.atlassian.jira.security.auth.trustedapps.TrustedApplicationFilter.<init>(TrustedApplicationFilter.java:25) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: No valid JIRA Home directory. at com.atlassian.jira.config.util.DefaultJiraHome.getLocalHome(DefaultJiraHome.java:30) at com.atlassian.jira.config.util.AbstractJiraHome.getLocalHomePath(AbstractJiraHome.java:73) at com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.loadOverlays(ApplicationPropertiesStore.java:96) at com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.create(ApplicationPropertiesStore.java:68) at com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.create(ApplicationPropertiesStore.java:65) at com.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:140) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 26 more {noformat} That filter is trying to access PICO even though it isn't initialised (PICO is not started correctly unless a JIRA.HOME is specified as it wont start unless there is a JIRA.HOME object).

    Atlassian JIRA | 3 years ago | Brenden Bain [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: No valid JIRA Home directory.
  2. 0

    # Start JIRA with no JIRA home specified. You will see this: {noformat} Jun 01, 2014 3:27:06 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter trustedapps com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: No valid JIRA Home directory. at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:87) at com.atlassian.jira.config.properties.ApplicationPropertiesStore.getOverlayedString(ApplicationPropertiesStore.java:364) at com.atlassian.jira.config.properties.ApplicationPropertiesStore.getString(ApplicationPropertiesStore.java:357) at com.atlassian.jira.config.properties.ApplicationPropertiesImpl.getDefaultBackedString(ApplicationPropertiesImpl.java:66) at com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$ApplicationPropertiesClassNameRetriever.get(UserNameTransformer.java:68) at com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$Factory.get(UserNameTransformer.java:99) at com.atlassian.jira.security.auth.trustedapps.TrustedApplicationFilter$OSUserResolver.<init>(TrustedApplicationFilter.java:40) at com.atlassian.jira.security.auth.trustedapps.TrustedApplicationFilter.<init>(TrustedApplicationFilter.java:25) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: No valid JIRA Home directory. at com.atlassian.jira.config.util.DefaultJiraHome.getLocalHome(DefaultJiraHome.java:30) at com.atlassian.jira.config.util.AbstractJiraHome.getLocalHomePath(AbstractJiraHome.java:73) at com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.loadOverlays(ApplicationPropertiesStore.java:96) at com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.create(ApplicationPropertiesStore.java:68) at com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.create(ApplicationPropertiesStore.java:65) at com.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:140) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 26 more {noformat} That filter is trying to access PICO even though it isn't initialised (PICO is not started correctly unless a JIRA.HOME is specified as it wont start unless there is a JIRA.HOME object).

    Atlassian JIRA | 3 years ago | Brenden Bain [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: No valid JIRA Home directory.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No valid JIRA Home directory.

      at com.atlassian.jira.config.util.DefaultJiraHome.getLocalHome()
    2. com.atlassian.jira
      ApplicationPropertiesStore$2.create
      1. com.atlassian.jira.config.util.DefaultJiraHome.getLocalHome(DefaultJiraHome.java:30)
      2. com.atlassian.jira.config.util.AbstractJiraHome.getLocalHomePath(AbstractJiraHome.java:73)
      3. com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.loadOverlays(ApplicationPropertiesStore.java:96)
      4. com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.create(ApplicationPropertiesStore.java:68)
      5. com.atlassian.jira.config.properties.ApplicationPropertiesStore$2.create(ApplicationPropertiesStore.java:65)
      5 frames
    3. com.atlassian.util
      ResettableLazyReference.get
      1. com.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:140)
      2. com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)
      3. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
      4. com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
      5. com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:87)
      5 frames
    4. com.atlassian.jira
      TrustedApplicationFilter.<init>
      1. com.atlassian.jira.config.properties.ApplicationPropertiesStore.getOverlayedString(ApplicationPropertiesStore.java:364)
      2. com.atlassian.jira.config.properties.ApplicationPropertiesStore.getString(ApplicationPropertiesStore.java:357)
      3. com.atlassian.jira.config.properties.ApplicationPropertiesImpl.getDefaultBackedString(ApplicationPropertiesImpl.java:66)
      4. com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$ApplicationPropertiesClassNameRetriever.get(UserNameTransformer.java:68)
      5. com.atlassian.jira.security.auth.trustedapps.UserNameTransformer$Factory.get(UserNameTransformer.java:99)
      6. com.atlassian.jira.security.auth.trustedapps.TrustedApplicationFilter$OSUserResolver.<init>(TrustedApplicationFilter.java:40)
      7. com.atlassian.jira.security.auth.trustedapps.TrustedApplicationFilter.<init>(TrustedApplicationFilter.java:25)
      7 frames
    5. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      5. java.lang.Class.newInstance(Class.java:374)
      5 frames
    6. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
      2. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
      3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
      4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
      5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
      6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      7. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      8. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      8 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames