2 Replies Latest reply on Nov 16, 2011 9:02 AM by davsclaus

    Getting error on Karaf console when starting servicemix

    gaurav_lohiya

      Hi,

       

      I am getting following error in my Karaf console on start-up.  I have not changed anything except using log4j in one of my projects.

       

      Can you please look at it and tell me what's the cause of this and how can I resolve it?

       

      ERROR: Bundle org.apache.servicemix.jbi.osgi EventDispatcher: Error during dispatch. (org.apache.servicemix.nmr.api.ServiceMixException: Unable to register ser

      vice servicemix-wsn2005 with properties {NAME=servicemix-wsn2005, objectClass=[Ljava.lang.String;@6a4db4, service.id=433, TYPE=service-engine}. Reason: javax.jbi.JBI

      Exception: Error calling init)

      org.apache.servicemix.nmr.api.ServiceMixException: Unable to register service servicemix-wsn2005 with properties {NAME=servicemix-wsn2005, objectClass=[Ljava.lang.St

      ring;@6a4db4, service.id=433, TYPE=service-engine}. Reason: javax.jbi.JBIException: Error calling init

              at org.apache.servicemix.nmr.core.ServiceRegistryImpl.register(ServiceRegistryImpl.java:52)

              at org.apache.servicemix.nmr.osgi.OsgiServiceRegistryTracker.addingService(OsgiServiceRegistryTracker.java:78)

              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)

              at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)

              at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)

              at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)

              at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)

              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)

              at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)

              at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3781)

              at org.apache.felix.framework.Felix.access$000(Felix.java:79)

              at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:723)

              at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)

              at org.apache.felix.framework.Felix.registerService(Felix.java:2870)

              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)

              at org.apache.servicemix.jbi.deployer.impl.Deployer.registerService(Deployer.java:758)

              at org.apache.servicemix.jbi.deployer.impl.Deployer.registerComponent(Deployer.java:414)

              at org.apache.servicemix.jbi.deployer.impl.ComponentInstaller.initComponent(ComponentInstaller.java:424)

              at org.apache.servicemix.jbi.deployer.impl.ComponentInstaller.install(ComponentInstaller.java:150)

              at org.apache.servicemix.jbi.deployer.impl.Deployer.registerDeployedComponent(Deployer.java:653)

              at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:218)

              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)

              at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)

              at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)

              at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)

              at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)

              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)

              at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)

              at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3781)

              at org.apache.felix.framework.Felix.access$000(Felix.java:79)

              at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:723)

              at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)

              at org.apache.felix.framework.Felix.registerService(Felix.java:2870)

              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)

              at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)

              at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)

              at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)

              at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)

              at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

              at java.util.concurrent.FutureTask.run(FutureTask.java:138)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

      Caused by: javax.jbi.JBIException: Error calling init

              at org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:211)

              at org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl$ComponentWrapper.init(ComponentImpl.java:247)

              at org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doRegister(ComponentRegistryImpl.java:88)

              at org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doRegister(ComponentRegistryImpl.java:37)

              at org.apache.servicemix.nmr.core.ServiceRegistryImpl.register(ServiceRegistryImpl.java:47)

              ... 46 more

      Caused by: javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused: connect

              at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)

              at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:290)

              at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:234)

              at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:182)

              at org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:137)

              at org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:121)

              at org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:92)

              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 org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:50)

              at org.apache.aries.proxy.impl.DefaultWrapper.invoke(DefaultWrapper.java:31)

              at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:78)

              at $Proxy32.createConnection(Unknown Source)

              at org.apache.servicemix.wsn.jms.JmsNotificationBroker.init(JmsNotificationBroker.java:48)

              at org.apache.servicemix.wsn.component.WSNComponent.doInit(WSNComponent.java:165)

              at org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:205)

              ... 50 more

      Caused by: java.net.ConnectException: Connection refused: connect

              at java.net.PlainSocketImpl.socketConnect(Native Method)

              at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

              at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)

              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)

              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

              at java.net.Socket.connect(Socket.java:529)

              at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:505)

              at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:468)

              at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54)

              at org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:126)

              at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)

              at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)

              at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)

              at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)

              at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:270)

              ... 66 more

        • 1. Re: Getting error on Karaf console when starting servicemix
          gaurav_lohiya

          Some more info about versions etc:

           

             ID   State         Blueprint      Spring    Level  Name

          activemq-ra (5.5.1.fuse-01-06)

          activemq-core (5.5.1.fuse-01-06)

                                                 Fragments: 62

          activemq-karaf (5.5.1.fuse-01-06)

          activemq-pool (5.5.1.fuse-01-06)

          Apache Aries Transaction Manager (0.2.0.incubating)

          activemq-console (5.5.1.fuse-01-06)

          kahadb (5.5.1.fuse-01-06)

          geronimo-j2ee-management_1.1_spec (1.0.1)

          Commons Pool (1.5.4)

          geronimo-jms_1.1_spec (1.1.1)

          Apache ServiceMix :: Bundles :: commons-codec (1.3.0.3)

          Apache ServiceMix Bundles: xpp3-1.1.4c (1.1.0.4c_3)

          Commons Collections (3.2.1)

          Apache ServiceMix Bundles: oro-2.0.8 (2.0.8.3)

          Apache ServiceMix :: Bundles :: jasypt (1.6.0.1)

          Apache ServiceMix :: Bundles :: commons-lang (2.4.0.4)

          Apache ServiceMix :: Bundles :: jdom (1.1.0.3)

          Apache ServiceMix :: Bundles :: velocity (1.7.0.1)

          activemq-blueprint (5.5.1.fuse-01-06)

                                                 Hosts: 45

          Apache ServiceMix :: Specs :: Scripting API 1.0 (1.8.0)

          Apache XBean :: OSGI Blueprint Namespace Handler (3.7)

          Commons JEXL (2.0.1)

          activemq-broker.xml (0.0.0)

          Spring Beans (3.0.5.RELEASE)

          Spring Context Support (3.0.5.RELEASE)

          Spring Context (3.0.5.RELEASE)

          Spring Expression Language (3.0.5.RELEASE)

          Spring ASM (3.0.5.RELEASE)

          Spring Core (3.0.5.RELEASE)

          Spring AOP (3.0.5.RELEASE)

          Apache ServiceMix :: Bundles :: aopalliance (1.0.0.5)

          spring-osgi-core (1.2.1)

          spring-osgi-io (1.2.1)

          spring-osgi-annotation (1.2.1)

          spring-osgi-extender (1.2.1)

          Apache ServiceMix :: Bundles :: cglib (2.1.0.3_7)

          activemq-spring (5.5.1.fuse-01-06)

          Apache XBean :: Spring (3.7)

          Apache ServiceMix :: Bundles :: jaxb-impl (2.2.1.1_1)

          camel-karaf-commands (2.8.0.fuse-01-06)

          Commons Management (1.0)

          Apache ServiceMix :: Specs :: Stax API 1.0 (1.8.0)

          Apache ServiceMix :: Specs :: JAXB API 2.2 (1.8.0)

          Apache ServiceMix :: Specs :: Activation API 1.4 (1.8.0)

          Spring Transaction (3.0.5.RELEASE)

          Apache ServiceMix Bundles: dom4j-1.6.1 (1.6.1.2)

          Apache ServiceMix Bundles: xstream-1.3 (1.3.0.3)

          camel-jms (2.8.0.fuse-01-06)

          Spring JMS (3.0.5.RELEASE)

          activemq-camel (5.5.1.fuse-01-06)

          Apache ServiceMix :: Document (1.5.1.fuse-01-06)

          Apache ServiceMix :: NMR :: OSGi (1.5.1.fuse-01-06)

          Apache ServiceMix :: NMR :: Core (1.5.1.fuse-01-06)

          Apache ServiceMix :: NMR :: API (1.5.1.fuse-01-06)

          Apache ServiceMix :: NMR :: Commands (1.5.1.fuse-01-06)

          Apache ServiceMix :: NMR :: Management (1.5.1.fuse-01-06)

          Apache ServiceMix :: Utils (1.5.1.fuse-01-06)

          Apache ServiceMix :: Features :: Camel Support :: Component (4.4.1.fuse-01-06)

          Web Services Metadata 2.0 (1.1.3)

          Apache ServiceMix :: Specs :: JAXWS API 2.2 (1.8.0)

          Apache ServiceMix :: Specs :: SAAJ API 1.3 (1.8.0)

          Jetty :: JNDI Naming (7.4.5.fuse20111017)

          Jetty :: Continuation (7.4.5.fuse20111017)

          Jetty :: Http Utility (7.4.5.fuse20111017)

          Jetty :: IO Utility (7.4.5.fuse20111017)

          Jetty :: Security (7.4.5.fuse20111017)

          Jetty :: Servlet Handling (7.4.5.fuse20111017)

          Jetty :: Asynchronous HTTP Client (7.4.5.fuse20111017)

          Jetty :: Server Core (7.4.5.fuse20111017)

          Jetty :: Utilities (7.4.5.fuse20111017)

          Jetty :: XML utilities (7.4.5.fuse20111017)

          Jetty :: Plus (7.4.5.fuse20111017)

          Jetty :: JMX Management (7.4.5.fuse20111017)

          Jetty :: Utility Servlets and Filters (7.4.5.fuse20111017)

          Jetty :: Webapp Application Support (7.4.5.fuse20111017)

          geronimo-servlet_2.5_spec (1.1.2)

          JavaMail API (1.4.3)

          Apache ServiceMix :: Bundles :: xmlsec (1.4.5.1)

          jettison (1.3)

          WSS4J (1.6.1)

          Apache ServiceMix :: Bundles :: xmlbeans (2.5.0.1)

          Apache CXF Bundle Jar (2.4.3.fuse-00-06)

          Apache ServiceMix :: Bundles :: saaj-impl (1.3.2.2)

          Apache ServiceMix :: Bundles :: velocity (1.7.0.2)

          Joda-Time (1.6.2)

          Apache ServiceMix :: Bundles :: FastInfoset (1.2.7.3)

          Apache ServiceMix :: Bundles :: wsdl4j (1.6.2.3)

          Apache Neethi (3.0.0)

          Apache ServiceMix :: Bundles :: xmlresolver (1.2.0.3)

          XmlSchema Core (2.0)

          Abdera Core (1.1.2)

          Woodstox XML-processor (4.1.1)

          Stax2 API (3.1.1)

          I18N Libraries (1.1.2)

          Apache ServiceMix :: Specs :: JSR-311 API 1.1 (1.8.0)

          Apache ServiceMix :: Bundles :: opensaml (2.4.1.1)

          Axiom API (1.2.12)

          camel-cxf (2.8.0.fuse-01-06)

          camel-cxf-transport (2.8.0.fuse-01-06)

          Apache ServiceMix :: Naming (1.5.1.fuse-01-06)

          Apache Aries Transaction Manager (0.3.0)

          Apache Aries Transaction Enlisting JDBC Datasource (0.3.0)

          Apache Aries Transaction Blueprint (0.3.0)

          Apache ServiceMix :: JBI :: Commands (1.5.1.fuse-01-06)

          Apache ServiceMix :: JBI :: OSGi (1.5.1.fuse-01-06)

          Apache ServiceMix :: JBI :: Runtime (1.5.1.fuse-01-06)

          Apache ServiceMix :: JBI :: Deployer (1.5.1.fuse-01-06)

          Apache ServiceMix :: Components :: Shared Libraries :: Common (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Specs :: JBI API 1.0 (1.8.0)

          Apache XBean :: Classloader (3.7)

          Apache ServiceMix :: Bundles :: ant (1.7.0.4)

          Apache ServiceMix :: JBI :: Clustering :: Requestor (1.5.1.fuse-01-06)

          Apache ServiceMix :: JBI :: Clustering :: Engine (1.5.1.fuse-01-06)

          Apache ServiceMix :: JBI :: Clustering :: Config (1.5.1.fuse-01-06)

          OPS4J Pax Web - API (1.0.3)

          OPS4J Pax Web - Runtime (1.0.3)

          OPS4J Pax Web - Service SPI (1.0.3)

          OPS4J Pax Web - Jetty (1.0.3)

          OPS4J Pax Web - Extender - Whiteboard (1.0.3)

          OPS4J Pax Web - Extender - WAR (1.0.3)

          OPS4J Pax Url - war (1.2.6)

          OPS4J Pax Web - Jsp Support (1.0.3)

          OPS4J Pax Web - FileInstall Deployer (1.0.3)

          Apache ServiceMix :: Components :: CXF Binding Component (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Components :: Shared Libraries :: SOAP Stack v2 (2011.02.1.fuse-02-06)

          Servlet 3.0 (1.0)

          Apache ServiceMix :: Components :: File Binding Component (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Components :: FTP Binding Component (2011.02.1.fuse-02-06)

          Commons Net (2.2)

          Apache ServiceMix :: Components :: HTTP Binding Component (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: jetty (6.1.26.1)

          Apache ServiceMix :: Components :: Shared Libraries :: SOAP Stack (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: commons-httpclient (3.1.0.5)

          Apache ServiceMix :: Components :: JMS Binding Component (2011.02.1.fuse-02-06)

          geronimo-j2ee-connector_1.5_spec (2.0.0)

          Apache ServiceMix :: Components :: Mail Binding Component (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Components :: SMPP Binding Component (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: jsmpp (2.1.0.2)

          Apache ServiceMix :: Components :: SNMP Binding Component (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: snmp4j (1.8.1.4)

          Apache ServiceMix :: Components :: VFS Binding Component (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: commons-vfs (1.0.0.5)

          Apache ServiceMix :: Components :: Bean Service Engine (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Components :: Camel Service Engine (2011.02.1.fuse-02-06)

          Apache CXF Runtime JBI Binding (2.4.3.fuse-00-06)

          Apache CXF Runtime JBI Transport (2.4.3.fuse-00-06)

          Apache ServiceMix :: Components :: CXF Service Engine (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: mvel2 (2.0.8.4)

          Apache ServiceMix :: Bundles :: antlr-runtime (3.0.1.2)

          Apache ServiceMix :: Bundles :: core (3.2.3.4)

          Apache ServiceMix :: Components :: Drools Service Engine (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: quartz (1.8.5.1)

          Apache ServiceMix :: Bundles :: drools (5.1.1.1)

          Apache ServiceMix :: Components :: EIP Service Engine (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Components :: OSWorkflow Service Engine (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: oscore (2.2.4.4)

          Apache ServiceMix :: Bundles :: osworkflow (2.7.0.4)

          Apache ServiceMix :: Bundles :: propertyset (1.3.0.4)

          Apache ServiceMix :: Components :: Quartz Service Engine (2011.02.1.fuse-02-06)

          Groovy Runtime (1.8.0)

          Apache ServiceMix :: Components :: JSR-223 Scripting Service Engine (2011.02.1.fuse-02-06)

          ScriptEngines :: Groovy (1.1)

          ScriptEngines :: JavaScript (1.1)

          Apache ServiceMix :: Bundles :: js (1.0.0.7R1_3)

          ScriptEngines :: JRuby (1.1)

          Apache ServiceMix :: Bundles :: jruby (1.1.2.3)

          Apache ServiceMix :: Components :: Validation Service Engine (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Components :: Saxon Service Engine (2011.02.1.fuse-02-06)

          Apache ServiceMix :: Bundles :: saxon (9.1.0.8_1)

          Apache ServiceMix :: Components :: WS-Notification Service Engine (2011.02.1.fuse-02-06)

          camel-http (2.8.0.fuse-01-06)

          camel-jetty (2.8.0.fuse-01-06)

          camel-http4 (2.8.0.fuse-01-06)

          Apache HttpCore OSGi bundle (4.1.1)

          Apache HttpClient OSGi bundle (4.1.1)

          camel-core (2.8.1)

          camel-blueprint (2.8.1)

          camel-spring (2.8.1)

          • 2. Re: Getting error on Karaf console when starting servicemix
            davsclaus

            Im etc/activemq-broker.xml can you try changing the brokerURL to the following

             

             

             

            And make sure to delete the data directory before restarting the Fuse ESB.