activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blin <bing_li...@yahoo.com>
Subject Error getting ActiveMQTopicSession (Multicast Transport)
Date Mon, 09 Nov 2009 14:07:22 GMT

Hi,

We are using Multicast Transport to broadcasting messages. We get
topicConnection successfully. But when it tries to get topicSession, it
receives timeout. Do we need to pass any particular options to the
connection or any other configuration might be wrong?

topicConnection = topicConnectionFactory.createTopicConnection(); 
//Successful
topicSession = topicConnection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);

Here is the stack trace.

2009/11/09 08:43:18 ERROR com.visioninfo.MessageManager  - JMS Exception
occurred
org.apache.activemq.ConnectionFailedException: The JMS connection has
failed: Receive timed out
	at
org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1320)
	at
org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:299)
	at
org.apache.activemq.ActiveMQConnection.createTopicSession(ActiveMQConnection.java:1047)
	at com.visioninfo.MessageManager.<init>(MessageManager.java:147)
	at com.visioninfo.MessageManager.initManager(MessageManager.java:92)
	at
com.visioninfo.web.WebApplicationListener.contextInitialized(WebApplicationListener.java:95)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
	at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
	at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.net.SocketTimeoutException: Receive timed out
	at java.net.PlainDatagramSocketImpl.receive0(Native Method)
	at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
	at java.net.DatagramSocket.receive(Unknown Source)
	at
org.apache.activemq.transport.udp.CommandDatagramSocket.read(CommandDatagramSocket.java:69)
	at
org.apache.activemq.transport.udp.UdpTransport.run(UdpTransport.java:147)

Thanks in advance!!
-- 
View this message in context: http://old.nabble.com/Error-getting-ActiveMQTopicSession-%28Multicast-Transport%29-tp26266974p26266974.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message