activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bill richard <billrich...@126.com>
Subject Re: ActiveMQConnection:onAsyncException
Date Wed, 19 Dec 2007 04:45:59 GMT

But i encountered the below exception,could anyone give me some hint??
thanks!!

Error encountered,will handle exception.Channel was inactive for too long:
/10.61.0.212:61616
javax.jms.JMSException: Channel was inactive for too long:
/10.61.0.212:61616
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
        at
org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1642)
        at
org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1659)
        at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:98)
        at
org.apache.activemq.transport.ResponseCorrelator.onException(ResponseCorrelator.java:116)
        at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:98)
        at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:98)
        at
org.apache.activemq.transport.WireFormatNegotiator.onException(WireFormatNegotiator.java:143)
        at
org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:169)
        at
org.apache.activemq.transport.InactivityMonitor$4.run(InactivityMonitor.java:108)
Caused by: org.apache.activemq.transport.InactivityIOException: Channel was
inactive for too long: /10.61.0.212:61616
        ... 1 more
javax.jms.JMSException: java.io.InterruptedIOException
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
        at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1183)
        at
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1262)
        at
org.apache.activemq.ActiveMQConnection.setClientID(ActiveMQConnection.java:372)
        at
org.gos.common.msg.controller.MessageConsumerWrapper.handleException(MessageConsumerWrapper.java:86)
        at
org.gos.common.msg.controller.MessageConsumerWrapper.access$0(MessageConsumerWrapper.java:71)
        at
org.gos.common.msg.controller.MessageConsumerWrapper$3.onException(MessageConsumerWrapper.java:121)
        at
org.apache.activemq.ActiveMQConnection$3.run(ActiveMQConnection.java:1648)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.InterruptedIOException
        at
org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:89)
        at
org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
        at
org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:70)
        at
org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:75)
        at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1172)
        ... 9 more



bill richard wrote:
> 
> Yes,i made a test and find what i doubt is right.
> i should set exception listener which recover the subscribe.still
> testing...
> 
> bill richard wrote:
>> 
>> made a dural subscribe and wait for message.
>> i doubt the the connection or session created for subscribing is inactive
>> if there is no message for certain minutes.is that the reason?
>> if yes,what should i do?
>> 
>> thanks!!
>> 
>> 
>> rajdavies wrote:
>>> 
>>> What are you doing when you encounter this exception ?
>>> On Dec 18, 2007, at 10:52 AM, bill richard wrote:
>>> 
>>>>
>>>> thanks.
>>>> The list is below,
>>>> JAVA:
>>>> java version "1.5.0_06"
>>>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
>>>> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
>>>>
>>>> OS:
>>>> Linux version 2.4.21-4.EL (bhcompile@daffy.perf.redhat.com) (gcc  
>>>> version
>>>> 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #1 Fri Oct 3 18:13:58 EDT  
>>>> 2003
>>>> and
>>>> Linux version 2.4.21-4.ELsmp (bhcompile@daffy.perf.redhat.com) (gcc  
>>>> version
>>>> 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #1 SMP Fri Oct 3 17:31:21  
>>>> EDT 2003
>>>>
>>>> Linux version 2.4.21-4.ELsmp (bhcompile@daffy.perf.redhat.com) (gcc  
>>>> version
>>>> 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #1 SMP Fri Oct 3 17:31:21  
>>>> EDT 2003
>>>>
>>>>
>>>> AMQ:4.1.1 and 5.0.0
>>>>
>>>> Exception is:
>>>> WARN  2007-12-18 18:33:47,907 ActiveMQConnection:onAsyncException -  
>>>> Async
>>>> exception with no exception listener:
>>>> org.apache.activemq.transport.InactivityIOException: Channel was  
>>>> inactive
>>>> for too long: /10.61.0.150:61616
>>>> org.apache.activemq.transport.InactivityIOException: Channel was  
>>>> inactive
>>>> for too long: /10.61.0.150:61616
>>>>        at
>>>> org.apache.activemq.transport.InactivityMonitor 
>>>> $4.run(InactivityMonitor.java:108)
>>>> WARN  2007-12-18 18:33:47,908 ActiveMQConnection:onAsyncException -  
>>>> Async
>>>> exception with no exception listener: java.net.SocketException: Socket
>>>> closed
>>>> java.net.SocketException: Socket closed
>>>>        at java.net.SocketInputStream.socketRead0(Native Method)
>>>>        at java.net.SocketInputStream.read(SocketInputStream.java:129)
>>>>        at
>>>> org 
>>>> .apache 
>>>> .activemq 
>>>> .transport 
>>>> .tcp.TcpBufferedInputStream.fill(TcpBufferedInputStream.java:50)
>>>>        at
>>>> org 
>>>> .apache 
>>>> .activemq 
>>>> .transport 
>>>> .tcp.TcpBufferedInputStream.read(TcpBufferedInputStream.java:58)
>>>>        at java.io.DataInputStream.readInt(DataInputStream.java:353)
>>>>        at
>>>> org 
>>>> .apache 
>>>> .activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:268)
>>>>        at
>>>> org 
>>>> .apache 
>>>> .activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java: 
>>>> 192)
>>>>        at
>>>> org 
>>>> .apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java: 
>>>> 184)
>>>>        at
>>>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java: 
>>>> 172)
>>>>        at java.lang.Thread.run(Thread.java:595)
>>>> WARN  2007-12-18 18:38:48,029 ActiveMQConnection:onAsyncException -  
>>>> Async
>>>> exception with no exception listener: java.io.EOFException
>>>> java.io.EOFException
>>>>        at java.io.DataInputStream.readInt(DataInputStream.java:358)
>>>>        at
>>>> org 
>>>> .apache 
>>>> .activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:268)
>>>>        at
>>>> org 
>>>> .apache 
>>>> .activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java: 
>>>> 192)
>>>>        at
>>>> org 
>>>> .apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java: 
>>>> 184)
>>>>        at
>>>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java: 
>>>> 172)
>>>>        at java.lang.Thread.run(Thread.java:595)
>>>>
>>>>
>>>>
>>>>
>>>> Hiram Chirino wrote:
>>>>>
>>>>> What amq, jvm, os versions were ya using?
>>>>>
>>>>> On Dec 13, 2007 9:13 AM, bill richard <billrichard@126.com> wrote:
>>>>>>
>>>>>> hi,all
>>>>>> i encountered one exception,which is listed below.I canot figure
 
>>>>>> out why.
>>>>>> help me,its urgent.
>>>>>>
>>>>>> WARN  2007-12-13 17:56:39,172 ActiveMQConnection:onAsyncException
 
>>>>>> - Async
>>>>>> exception with no exception listener:
>>>>>> org.apache.activemq.transport.InactivityIOException: Channel was
 
>>>>>> inactive
>>>>>> for too long.
>>>>>> org.apache.activemq.transport.InactivityIOException: Channel was
 
>>>>>> inactive
>>>>>> for too long.
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .activemq 
>>>>>> .transport.InactivityMonitor.readCheck(InactivityMonitor.java:101)
>>>>>>        at
>>>>>> org.apache.activemq.transport.InactivityMonitor.access 
>>>>>> $000(InactivityMonitor.java:35)
>>>>>>        at
>>>>>> org.apache.activemq.transport.InactivityMonitor 
>>>>>> $1.run(InactivityMonitor.java:51)
>>>>>>        at
>>>>>> edu.emory.mathcs.backport.java.util.concurrent.Executors 
>>>>>> $RunnableAdapter.call(Executors.java:418)
>>>>>>        at
>>>>>> edu 
>>>>>> .emory 
>>>>>> .mathcs 
>>>>>> .backport 
>>>>>> .java.util.concurrent.FutureTask.runAndReset(FutureTask.java:187)
>>>>>>        at
>>>>>> edu 
>>>>>> .emory 
>>>>>> .mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor

>>>>>> $ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:

>>>>>> 147)
>>>>>>        at
>>>>>> edu 
>>>>>> .emory 
>>>>>> .mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor

>>>>>> $ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:171)
>>>>>>        at
>>>>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor

>>>>>> $Worker.runTask(ThreadPoolExecutor.java:660)
>>>>>>        at
>>>>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor

>>>>>> $Worker.run(ThreadPoolExecutor.java:685)
>>>>>>        at java.lang.Thread.run(Thread.java:595)
>>>>>>
>>>>>>
>>>>>> many thanks!
>>>>>> regards!
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/ActiveMQConnection%3AonAsyncException-tp14316770s2354p14316770.html
>>>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Regards,
>>>>> Hiram
>>>>>
>>>>> Blog: http://hiramchirino.com
>>>>>
>>>>> Open Source SOA
>>>>> http://open.iona.com
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/ActiveMQConnection%3AonAsyncException-tp14316770s2354p14393059.html
>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>>
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMQConnection%3AonAsyncException-tp14316770s2354p14411171.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message