All,
I have created a spring DM bundle with an activator class, and tried to install the jar file using Maven commands, it successfully installs and sets the bundle context on first build , during subsequent builds i seem to be getting below error. I restart the instance and it runs smooth.
This is in AEM 5.6, JDK 1.7. Anyone facing similar issues?
ERROR* [SpringOsgiExtenderThread-1] org.apache.sling.extensions.threaddump.internal.Activator Uncaught exception in Thread Thread[SpringOsgiExtenderThread-1,5,spring-osgi-extender[fc6a4c]-threads] 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:171)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.ref resh(AbstractDelegatedExecutionApplicationContext.java:175)
at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextL oaderListener.java:718)
at java.lang.Thread.run(Unknown Source)
Regards,
NZ