8 Replies Latest reply on Mar 30, 2011 4:50 PM by Denis Sukhoroslov

    IllegalStateException at restart of Fuse ESB

    Jochen Lauer Apprentice

      Hello,

       

      I copied some camel osgi bundles to the deploy directory of the Fuse ESB 4.3.1. Everything works fine. After a restart of the Fuse ESB the console shows

       

      karaf@root> osgi:listException in thread "SpringOsgiExtenderThread-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(AbstractRefreshableApplicationContext.java:171)

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicatio

      nContextExecutor.java:345)

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplication

      ContextExecutor.java:401)

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplica

      tionContextExecutor.java:287)

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicat

      ionContextExecutor.java:175)

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.

      java:175)

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)

              at java.lang.Thread.run(Thread.java:662)

       

       

       

      and the log file

       

       

      19:48:17,874 | INFO  | guration Updater | JettyServerImpl                  | 104 - org.ops4j.pax.web.pax-web-jetty - 0.7.4 | Pax Web available at :[8181]

      19:48:18,431 | ERROR | ExtenderThread-2 | ContextLoaderListener            | 72 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=openliga-import-spiele-target-osgi, config=osgibundle:/META-INF/spring/*.xml))

      org.springframework.beans.factory.BeanDefinitionStoreException: Failed to create the JAXB binder; nested exception is javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 75 counts of IllegalAnnotationExceptions

      org.apache.camel.Expression is an interface, and JAXB can't handle interfaces.

           this problem is related to the following location:

                at org.apache.camel.Expression

                at public org.apache.camel.Expression org.apache.camel.model.ExpressionSubElementDefinition.getExpression()

                at org.apache.camel.model.ExpressionSubElementDefinition

                at public org.apache.camel.model.ExpressionSubElementDefinition org.apache.camel.model.loadbalancer.StickyLoadBalancerDefinition.getCorrelationExpression()

                at org.apache.camel.model.loadbalancer.StickyLoadBalancerDefinition

      org.apache.camel.Expression does not have a no-arg default constructor.

           this problem is related to the following location:

                at org.apache.camel.Expression

                at public org.apache.camel.Expression org.apache.camel.model.ExpressionSubElementDefinition.getExpression()

                at org.apache.camel.model.ExpressionSubElementDefinition

                at public org.apache.camel.model.ExpressionSubElementDefinition org.apache.camel.model.loadbalancer.StickyLoadBalancerDefinition.getCorrelationExpression()

                at org.apache.camel.model.loadbalancer.StickyLoadBalancerDefinition

       

       

      Thanks in advance

      labo

       

      Edited by: labo32 on Mar 24, 2011 7:36 PM