axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajika Kumarasiri (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TRANSPORTS-35) JMS transport repetitivly logs exception if the broker is off line
Date Tue, 05 Apr 2011 09:00:07 GMT

     [ https://issues.apache.org/jira/browse/TRANSPORTS-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rajika Kumarasiri updated TRANSPORTS-35:
----------------------------------------

    Attachment: TRANSPORTS-35.patch

This is a patch that'll fix the problem. If the ServiceTaskManager#messageReceive() method
receive any exception the polling task will be suspended for the same amount + some clean
up duration as the MessageListenerTask#onException() waiting for re-attempt because there
is no point  re-trying immediately.  

Rajika

> JMS transport repetitivly logs exception if the broker is off line
> ------------------------------------------------------------------
>
>                 Key: TRANSPORTS-35
>                 URL: https://issues.apache.org/jira/browse/TRANSPORTS-35
>             Project: Axis2 Transports
>          Issue Type: Bug
>            Reporter: Rajika Kumarasiri
>         Attachments: TRANSPORTS-35.patch
>
>
> The following exception is logged if the broker is offline. Once the broker becomes available
the JMS transport listener doesn't re-connect automatically. 
> 2011-04-05 10:08:45,830 [-] [jms-Worker-18] ERROR ServiceTaskManager Error acquiring
a JMS connection to : QueueConnectionFactory using JNDI properties : {java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory,
java.naming.provider.url=tcp://localhost:61616, interface=SimpleStockQuoteServicePortType,
transport.jms.ConnectionFactoryType=queue, serviceType=proxy}
> javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason:
java.net.ConnectException: Connection refused
>     at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
>     at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:280)
>     at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:224)
>     at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:172)
>     at org.apache.axis2.transport.jms.JMSUtils.createConnection(JMSUtils.java:554)
>     at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.createConnection(ServiceTaskManager.java:809)
>     at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.getConnection(ServiceTaskManager.java:691)
>     at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.receiveMessage(ServiceTaskManager.java:489)
>     at org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.run(ServiceTaskManager.java:414)
>     at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: java.net.ConnectException: Connection refused
>     at java.net.PlainSocketImpl.socketConnect(Native Method)
>     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>     at java.net.Socket.connect(Socket.java:525)
>     at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:435)
>     at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:401)
>     at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
>     at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>     at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>     at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
>     at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>     at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>     at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:260)
>     ... 11 more
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message