activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eylon <eylonmal...@gmail.com>
Subject SocketException with "no such device" msg on multicast configuration
Date Mon, 05 Feb 2007 16:13:25 GMT

Hello,

I've tried to configure 2 brokers, having one of them listen to a multicast
address and the other advertise itself using discovery. This configuration
is described  
http://incubator.apache.org/activemq/what-is-the-difference-between-discovery-multicast-and-zeroconf.html
here  

while I tried to run these brokers I got SocketException with "no such
device" message.

Does someone know why ?

=========  first broker configuration ==================

<?xml version="1.0" encoding="UTF-8"?>

<beans>
	<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

	<broker brokerName="cms-broker" persistent="false" useShutdownHook="false"
xmlns="http://activemq.org/config/1.0">
    	
    	<transportConnectors>
    		<transportConnector name="multicast" uri="tcp://localhost:61616"
discoveryUri="multicast://default"/>
   			<transportConnector name="stomp" 	 uri="stomp://localhost:61613"/>
			<transportConnector name="vm" 		 uri="vm://cms-broker"/>
		</transportConnectors>
	</broker>
</beans>

=========  second broker configuration =======================

?xml version="1.0" encoding="UTF-8"?>

<beans>
	<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

	<broker brokerName="play-broker" persistent="false" useShutdownHook="false"
xmlns="http://activemq.org/config/1.0">
    	         
                  <transportConnectors>
			<transportConnector uri="vm://play-broker"/>
		</transportConnectors>
		
		<networkConnectors>
			<networkConnector name="default" uri="multicast://default"/>
    	        </networkConnectors>
    </broker>
</beans>


=============   on running any of the  brokers i got :  ===============


2007-02-05 17:03:29,166 1468  ERROR
[org.apache.activemq.broker.BrokerService] (main:) Failed to start ActiveMQ
JMS Message Broker. Reason: java.net.SocketException: No such device
java.net.SocketException: No such device
	at java.net.PlainDatagramSocketImpl.join(Native Method)
	at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172)
	at java.net.MulticastSocket.joinGroup(MulticastSocket.java:276)
	at
org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.start(MulticastDiscoveryAgent.java:223)
	at
org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:225)
	at
org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1510)
	at
org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1468)
	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:402)
	at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:47)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
	at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:88)
	at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:76)
	at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:72)
	at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:68)
	at
org.apache.activemq.xbean.BrokerFactoryBean.afterPropertiesSet(BrokerFactoryBean.java:84)
	at CommunicationCenter.<init>(CommunicationCenter.java:23)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)
	at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
	at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:156)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:683)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:621)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
	at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:89)
	at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:74)
	at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:65)
       ...



-- 
View this message in context: http://www.nabble.com/SocketException-with-%22no-such-device%22-msg--on-multicast-configuration-tf3175260.html#a8809278
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message