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

Pentaho BI Platform Tracking | Brandon Bruce | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

    I saw this error in the QAP pentaho.log 2012-12-26 15:17:14,144 ERROR [com.pentaho.analyzer.report.renderer.JsonChartRenderer] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153) at org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:892) at org.springframework.beans.factory.support.AbstractBeanFactory.containsBean(AbstractBeanFactory.java:334) at org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager.getBean(DefaultPluginManager.java:596) at org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager.getContentGenerator(DefaultPluginManager.java:636) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory$ProxyInvokeHandler.invoke(WebSpringPentahoObjectFactory.java:261) at $Proxy14.getContentGenerator(Unknown Source) at com.pentaho.analyzer.report.renderer.JsonChartRenderer.renderToFile(JsonChartRenderer.java:126) at com.pentaho.analyzer.report.renderer.PdfRenderer.printDocument(PdfRenderer.java:269) at com.pentaho.analyzer.report.renderer.PdfRenderer.render(PdfRenderer.java:171) at com.pentaho.analyzer.content.controller.ReportRunner.generatePDF(ReportRunner.java:202) at com.pentaho.analyzer.content.controller.AnalyzerAction.execute(AnalyzerAction.java:94) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$1.call(ActionAdapterQuartzJob.java:147) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:150) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:141) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:157) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:101) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

    Pentaho BI Platform Tracking | 4 years ago | Brandon Bruce
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  2. 0

    I saw this error in the QAP pentaho.log 2012-12-26 15:17:14,144 ERROR [com.pentaho.analyzer.report.renderer.JsonChartRenderer] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153) at org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:892) at org.springframework.beans.factory.support.AbstractBeanFactory.containsBean(AbstractBeanFactory.java:334) at org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager.getBean(DefaultPluginManager.java:596) at org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager.getContentGenerator(DefaultPluginManager.java:636) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory$ProxyInvokeHandler.invoke(WebSpringPentahoObjectFactory.java:261) at $Proxy14.getContentGenerator(Unknown Source) at com.pentaho.analyzer.report.renderer.JsonChartRenderer.renderToFile(JsonChartRenderer.java:126) at com.pentaho.analyzer.report.renderer.PdfRenderer.printDocument(PdfRenderer.java:269) at com.pentaho.analyzer.report.renderer.PdfRenderer.render(PdfRenderer.java:171) at com.pentaho.analyzer.content.controller.ReportRunner.generatePDF(ReportRunner.java:202) at com.pentaho.analyzer.content.controller.AnalyzerAction.execute(AnalyzerAction.java:94) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$1.call(ActionAdapterQuartzJob.java:147) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:150) at org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:141) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:157) at org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:101) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

    Pentaho BI Platform Tracking | 4 years ago | Brandon Bruce
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  3. 0
    samebug tip
    The application is unable to connect to the database. It could be resolved by configuring access privileges on the database side.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Testing CXF and Jersey together causes Spring conflicts?

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

    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 org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory()
    2. Spring Context
      AbstractApplicationContext.containsBean
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
      2. org.springframework.context.support.AbstractApplicationContext.containsBean(AbstractApplicationContext.java:892)
      2 frames
    3. Spring Beans
      AbstractBeanFactory.containsBean
      1. org.springframework.beans.factory.support.AbstractBeanFactory.containsBean(AbstractBeanFactory.java:334)
      1 frame
    4. org.pentaho.platform
      DefaultPluginManager.getContentGenerator
      1. org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager.getBean(DefaultPluginManager.java:596)
      2. org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager.getContentGenerator(DefaultPluginManager.java:636)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. com.pentaho.platform
      WebSpringPentahoObjectFactory$ProxyInvokeHandler.invoke
      1. com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory$ProxyInvokeHandler.invoke(WebSpringPentahoObjectFactory.java:261)
      1 frame
    7. Unknown
      $Proxy14.getContentGenerator
      1. $Proxy14.getContentGenerator(Unknown Source)
      1 frame
    8. com.pentaho.analyzer
      AnalyzerAction.execute
      1. com.pentaho.analyzer.report.renderer.JsonChartRenderer.renderToFile(JsonChartRenderer.java:126)
      2. com.pentaho.analyzer.report.renderer.PdfRenderer.printDocument(PdfRenderer.java:269)
      3. com.pentaho.analyzer.report.renderer.PdfRenderer.render(PdfRenderer.java:171)
      4. com.pentaho.analyzer.content.controller.ReportRunner.generatePDF(ReportRunner.java:202)
      5. com.pentaho.analyzer.content.controller.AnalyzerAction.execute(AnalyzerAction.java:94)
      5 frames
    9. org.pentaho.platform
      ActionAdapterQuartzJob.execute
      1. org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob$1.call(ActionAdapterQuartzJob.java:147)
      2. org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:150)
      3. org.pentaho.platform.engine.security.SecurityHelper.runAsUser(SecurityHelper.java:141)
      4. org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.invokeAction(ActionAdapterQuartzJob.java:157)
      5. org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob.execute(ActionAdapterQuartzJob.java:101)
      5 frames
    10. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:199)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
      2 frames