2 Replies Latest reply on Sep 4, 2008 5:14 AM by smh oseyni

    error startin  FUSE ESB 3.3.1.4

    smh oseyni Newbie

      Hi, I got the following error when starting fuse (WINXP SP2, JDK 1.6.0) from the console using the servicemix.bat  when I am in my bin directory

      (C:\iona\fuse-esb-3.3.1.4\bin)  :

      -


      C:\iona\fuse-esb-3.3.1.4\bin>servicemix.bat

      Starting Apache ServiceMix ESB: 3.3.1.4-fuse

       

      Loading Apache ServiceMix from servicemix.xml on the CLASSPATH

      ERROR - BrokerService                  - Failed to start ActiveMQ JMS Message Br

      oker. Reason: java.net.SocketException: error setting options

      java.net.SocketException: error setting options

      2)

      gent.start(MulticastDiscoveryAgent.java:277)

      r.java:241)

      erService.java:1881)

      vice.java:1826)

      )

      BrokerService.java:52)

      Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)

      Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)

      Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)

      ject(AbstractBeanFactory.java:251)

      y.getSingleton(DefaultSingletonBeanRegistry.java:156)

      (AbstractBeanFactory.java:248)

      (AbstractBeanFactory.java:160)

      Factory.createBean(AbstractAutowireCapableBeanFactory.java:337)

      ject(AbstractBeanFactory.java:251)

      y.getSingleton(DefaultSingletonBeanRegistry.java:156)

      (AbstractBeanFactory.java:248)

      (AbstractBeanFactory.java:160)

      Factory.createBean(AbstractAutowireCapableBeanFactory.java:337)

      ject(AbstractBeanFactory.java:251)

      y.getSingleton(DefaultSingletonBeanRegistry.java:156)

      (AbstractBeanFactory.java:248)

      (AbstractBeanFactory.java:160)

      preInstantiateSingletons(DefaultListableBeanFactory.java:284)

      h(AbstractApplicationContext.java:352)

      (ClassPathXmlApplicationContext.java:161)

      (ClassPathXmlApplicationContext.java:51)

      java:39)

      sorImpl.java:25)

      Caught: org.springframework.beans.factory.BeanCreationException: Error creating

      bean with name 'broker' defined in class path resource http://activemq.xml: Invocatio

      n of init method failed; nested exception is java.net.SocketException: error set

      ting options

      org.springframework.beans.factory.BeanCreationException: Error creating bean wit

      h name 'broker' defined in class path resource http://activemq.xml: Invocation of ini

      t method failed; nested exception is java.net.SocketException: error setting opt

      ions

      Caused by: java.net.SocketException: error setting options

      2)

      gent.start(MulticastDiscoveryAgent.java:277)

      r.java:241)

      erService.java:1881)

      vice.java:1826)

      )

      BrokerService.java:52)

      Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)

      Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)

      Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)

      ject(AbstractBeanFactory.java:251)

      y.getSingleton(DefaultSingletonBeanRegistry.java:156)

      (AbstractBeanFactory.java:248)

      (AbstractBeanFactory.java:160)

      Factory.createBean(AbstractAutowireCapableBeanFactory.java:337)

      ject(AbstractBeanFactory.java:251)

      y.getSingleton(DefaultSingletonBeanRegistry.java:156)

      (AbstractBeanFactory.java:248)

      (AbstractBeanFactory.java:160)

      Factory.createBean(AbstractAutowireCapableBeanFactory.java:337)

      ject(AbstractBeanFactory.java:251)

      y.getSingleton(DefaultSingletonBeanRegistry.java:156)

      (AbstractBeanFactory.java:248)

      (AbstractBeanFactory.java:160)

      preInstantiateSingletons(DefaultListableBeanFactory.java:284)

      h(AbstractApplicationContext.java:352)

      (ClassPathXmlApplicationContext.java:161)

      (ClassPathXmlApplicationContext.java:51)

      java:39)

      sorImpl.java:25)

      -


      anyone can help me?

        • 1. Re: error startin  FUSE ESB 3.3.1.4
          Martin Murphy Novice

          First of all, you should start ServiceMix from the directory above the bin directory and run this as:

          bin\servicemix.bat
          

           

          Either way that's not the problem you have

          It seems that your computer does not have multicast support. This is how the ActiveMQ broker launched from ServiceMix discovers other brokers for clustering support by default. You can comment this out of your activemq.xml configuration if you wish. To do this change your activemq.xml from

              <transportConnectors>
                <transportConnector uri="tcp://localhost:61616" discoveryUri="multicast://default"></transportConnector>
              </transportConnectors>
          
              <networkConnectors>
                <networkConnector uri="multicast://default"></networkConnector>
              </networkConnectors>
          

          to

              <transportConnectors>
                <transportConnector uri="tcp://localhost:61616"></transportConnector>
              </transportConnectors>
          
              <networkConnectors>
              </networkConnectors>
          

          You can read more on this here

           

          My guess why you are seeing this problem is because your computer is not attached to the network.

          • 2. Re: error startin  FUSE ESB 3.3.1.4
            smh oseyni Newbie

            thanks, it solved.