java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

Google Groups | Unknown author | 1 year ago
  1. 0

    tranSMART install error java.io.FileNotFoundException: /usr/share/tomcat7/.grails/oauth2db.lock.db (Permission denied)

    Google Groups | 1 year ago | Unknown author
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  2. 0

    h3. Summary OSGI Felix ERROR occurs on shutdown h3. Environment JIRA 6.4.x h3. Description When we shutdown JIRA, following error occurs. {noformat} 2015-08-26 10:43:11,826 localhost-startStop-2 ERROR [osgi.container.felix.FelixOsgiContainerManager] JarContent: Unable to read bytes.^M java.lang.IllegalStateException: zip file closed^M at java.util.zip.ZipFile.ensureOpen(ZipFile.java:634)^M at java.util.zip.ZipFile.getEntry(ZipFile.java:305)^M at java.util.jar.JarFile.getEntry(JarFile.java:227)^M at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)^M at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738)^M at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)^M at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)^M at java.lang.ClassLoader.loadClass(ClassLoader.java:358)^M at java.lang.Class.getDeclaringClass0(Native Method)^M at java.lang.Class.getDeclaringClass(Class.java:1106)^M at java.lang.Class.getEnclosingClass(Class.java:1142)^M at java.lang.Class.getCanonicalName(Class.java:1231)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.getPrettyClassName(BruteForceThreadLocalCleanup.java:257)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.checkThreadLocalMapForLeaks(BruteForceThreadLocalCleanup.java:181)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUpThreadImpl(BruteForceThreadLocalCleanup.java:135)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanupThreadLocals(BruteForceThreadLocalCleanup.java:94)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUp(BruteForceThreadLocalCleanup.java:63)^M at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupThreadLocals(DefaultJiraLauncher.java:225)^M at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupAfterOurselves(DefaultJiraLauncher.java:210)^M at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:190)^M at com.atlassian.jira.startup.LauncherContextListener.contextDestroyed(LauncherContextListener.java:115) <+5> (StandardContext.java:5033) (StandardContext.java:5685) (LifecycleBase.java:232) (ContainerBase.java:1591) (ContainerBase.java:1580)^M at java.util.concurrent.FutureTask.run(FutureTask.java:262)^M at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)^M at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)^M at java.lang.Thread.run(Thread.java:745)^M {noformat} According to past support ticket, this is normal error so we don't have to care about it. (Please see my internal comment.) However, if this error is harmless, please try to make JIRA to stop to output this error on the log.

    Atlassian JIRA | 1 year ago | Yuki Okamoto [Atlassian]
    java.lang.IllegalStateException: zip file closed^M at java.util.zip.ZipFile.ensureOpen(ZipFile.java:634)^M at java.util.zip.ZipFile.getEntry(ZipFile.java:305)^M at java.util.jar.JarFile.getEntry(JarFile.java:227)^M at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)^M at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738)^M at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)^M at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)^M at java.lang.ClassLoader.loadClass(ClassLoader.java:358)^M at java.lang.Class.getDeclaringClass0(Native Method)^M at java.lang.Class.getDeclaringClass(Class.java:1106)^M at java.lang.Class.getEnclosingClass(Class.java:1142)^M at java.lang.Class.getCanonicalName(Class.java:1231)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.getPrettyClassName(BruteForceThreadLocalCleanup.java:257)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.checkThreadLocalMapForLeaks(BruteForceThreadLocalCleanup.java:181)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUpThreadImpl(BruteForceThreadLocalCleanup.java:135)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanupThreadLocals(BruteForceThreadLocalCleanup.java:94)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUp(BruteForceThreadLocalCleanup.java:63)^M at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupThreadLocals(DefaultJiraLauncher.java:225) at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupAfterOurselves(DefaultJiraLauncher.java:210)^M at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:190) at com.atlassian.jira.startup.LauncherContextListener.contextDestroyed(LauncherContextListener.java:115) <+5> (StandardContext.java:5033) (StandardContext.java:5685) (LifecycleBase.java:232) (ContainerBase.java:1591) (ContainerBase.java:1580)^M at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  3. 0

    h3. Summary OSGI Felix ERROR occurs on shutdown h3. Environment JIRA 6.4.x h3. Description When we shutdown JIRA, following error occurs. {noformat} 2015-08-26 10:43:11,826 localhost-startStop-2 ERROR [osgi.container.felix.FelixOsgiContainerManager] JarContent: Unable to read bytes.^M java.lang.IllegalStateException: zip file closed^M at java.util.zip.ZipFile.ensureOpen(ZipFile.java:634)^M at java.util.zip.ZipFile.getEntry(ZipFile.java:305)^M at java.util.jar.JarFile.getEntry(JarFile.java:227)^M at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)^M at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738)^M at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)^M at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)^M at java.lang.ClassLoader.loadClass(ClassLoader.java:358)^M at java.lang.Class.getDeclaringClass0(Native Method)^M at java.lang.Class.getDeclaringClass(Class.java:1106)^M at java.lang.Class.getEnclosingClass(Class.java:1142)^M at java.lang.Class.getCanonicalName(Class.java:1231)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.getPrettyClassName(BruteForceThreadLocalCleanup.java:257)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.checkThreadLocalMapForLeaks(BruteForceThreadLocalCleanup.java:181)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUpThreadImpl(BruteForceThreadLocalCleanup.java:135)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanupThreadLocals(BruteForceThreadLocalCleanup.java:94)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUp(BruteForceThreadLocalCleanup.java:63)^M at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupThreadLocals(DefaultJiraLauncher.java:225)^M at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupAfterOurselves(DefaultJiraLauncher.java:210)^M at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:190)^M at com.atlassian.jira.startup.LauncherContextListener.contextDestroyed(LauncherContextListener.java:115) <+5> (StandardContext.java:5033) (StandardContext.java:5685) (LifecycleBase.java:232) (ContainerBase.java:1591) (ContainerBase.java:1580)^M at java.util.concurrent.FutureTask.run(FutureTask.java:262)^M at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)^M at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)^M at java.lang.Thread.run(Thread.java:745)^M {noformat} According to past support ticket, this is normal error so we don't have to care about it. (Please see my internal comment.) However, if this error is harmless, please try to make JIRA to stop to output this error on the log.

    Atlassian JIRA | 1 year ago | Yuki Okamoto [Atlassian]
    java.lang.IllegalStateException: zip file closed^M at java.util.zip.ZipFile.ensureOpen(ZipFile.java:634)^M at java.util.zip.ZipFile.getEntry(ZipFile.java:305)^M at java.util.jar.JarFile.getEntry(JarFile.java:227)^M at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)^M at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738)^M at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)^M at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)^M at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)^M at java.lang.ClassLoader.loadClass(ClassLoader.java:358)^M at java.lang.Class.getDeclaringClass0(Native Method)^M at java.lang.Class.getDeclaringClass(Class.java:1106)^M at java.lang.Class.getEnclosingClass(Class.java:1142)^M at java.lang.Class.getCanonicalName(Class.java:1231)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.getPrettyClassName(BruteForceThreadLocalCleanup.java:257)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.checkThreadLocalMapForLeaks(BruteForceThreadLocalCleanup.java:181)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUpThreadImpl(BruteForceThreadLocalCleanup.java:135)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanupThreadLocals(BruteForceThreadLocalCleanup.java:94)^M at com.atlassian.threadlocal.BruteForceThreadLocalCleanup.cleanUp(BruteForceThreadLocalCleanup.java:63)^M at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupThreadLocals(DefaultJiraLauncher.java:225) at com.atlassian.jira.startup.DefaultJiraLauncher.cleanupAfterOurselves(DefaultJiraLauncher.java:210)^M at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:190) at com.atlassian.jira.startup.LauncherContextListener.contextDestroyed(LauncherContextListener.java:115) <+5> (StandardContext.java:5033) (StandardContext.java:5685) (LifecycleBase.java:232) (ContainerBase.java:1591) (ContainerBase.java:1580)^M at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    how to convert HTML files to PDF in Java?

    Stack Overflow | 3 years ago
    java.lang.IllegalStateException: Shutdown in progress
  6. 0

    How can I cope with "IllegalStateException: BeanFactory not initialized or already closed"?

    Stack Overflow | 5 years ago | user569825
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

  1. mortalman7 4 times, last 7 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

    at java.util.concurrent.ThreadPoolExecutor.runWorker()
  2. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames