You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Trollchik <an...@mail.ru> on 2009/02/20 12:39:03 UTC

get Exception

Hi,
I'm new in using Spring and JMS, and i have some problems. i'm using Spring
and ActiveMQ.
I have the next XML:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
	http://www.directwebremoting.org/schema/spring-dwr
       http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">
       
       <bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
       <property name="brokerURL" value="tcp://127.0.0.1:61616"/>
       <property name="useAsyncSend" value="true"/>
       </bean>
       
       <bean id="pointToPoint"
class="org.apache.activemq.command.ActiveMQQueue">
       <constructor-arg index="0" value="test"/>
       </bean>
       
       <bean id="jmsTemplate"
class="org.springframework.jms.core.JmsTemplate">
       <property name="defaultDestination" ref="pointToPoint"/>
       <property name="connectionFactory" ref="singleConnection"/>
       </bean>
       
       
       <bean id="connector" class="com.test.jbossqueue.Producer"
init-method="init" >
       <property name="jmsTemplate" ref="jmsTemplate"/>
       </bean>
       
       </beans>

but when i try to sent message, i get next exception:

org.springframework.jms.UncategorizedJmsException: Uncategorized exception
occured during JMS processing; nested exception is javax.jms.JMSException:
Channel was inactive for too long: /127.0.0.1:61616; nested exception is
org.apache.activemq.transport.InactivityIOException: Channel was inactive
for too long: /127.0.0.1:61616
14:37:44,030 ERROR [STDERR] Caused by: 
14:37:44,030 ERROR [STDERR] javax.jms.JMSException: Channel was inactive for
too long: /127.0.0.1:61616
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1255)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1339)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:298)
14:37:44,030 ERROR [STDERR] 	at
org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:200)
14:37:44,030 ERROR [STDERR] 	at
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:428)
14:37:44,030 ERROR [STDERR] 	at
org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:480)
14:37:44,030 ERROR [STDERR] 	at
org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:472)
14:37:44,030 ERROR [STDERR] 	at
com.test.jbossqueue.Producer.run(Producer.java:34)
14:37:44,030 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:619)
14:37:44,030 ERROR [STDERR] Caused by:
org.apache.activemq.transport.InactivityIOException: Channel was inactive
for too long: /127.0.0.1:61616
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.transport.InactivityMonitor.oneway(InactivityMonitor.java:225)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.transport.TransportFilter.oneway(TransportFilter.java:83)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:100)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:74)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:79)
14:37:44,030 ERROR [STDERR] 	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1233)
14:37:44,030 ERROR [STDERR] 	... 8 more


Please, help me to solve my problem!

-- 
View this message in context: http://www.nabble.com/get-Exception-tp22119123p22119123.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.