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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by user569825

The application is unable to connect to the database. It could be resolved by configuring access privileges on the database side.

Solutions on the web

via Pentaho BI Platform Tracking by Brandon Bruce, 1 year ago
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
via Pentaho BI Platform Tracking by Brandon Bruce, 1 year ago
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
via Stack Overflow by Steve Smith
, 2 years ago
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
via serverfault.com by Unknown author, 1 year ago
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
via Server Fault by vector
, 1 year ago
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
via serverfault.com by Unknown author, 6 months ago
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.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 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)

Users with the same issue

Once, 4 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.