activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pedrotcm <pedr_t...@hotmail.com>
Subject StateException: org.apache.activemq.ConnectionFailedException: The JMS connection has failed: java.io.EOFException; nested exception is javax.jms.IllegalStateException: org.apache.activemq.ConnectionFailedException: The JMS connection has failed: java.io.EOFException
Date Tue, 04 Oct 2016 17:44:31 GMT
Hello,

I'm having this error in production, the message can not is consumed and
lose the message. If there comes a next message it is normally consumed. I
can not simulate the error.


My activemq config:

<bean id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
		<property name="brokerURL"
value="tcp://${brokerHost}:${brokerPort}?wireFormat.maxInactivityDurationInitalDelay=30000"
/>
		<property name="userName" value="snoa" />
		<property name="password" value="K9n2YJzUYy" />
		<property name="redeliveryPolicy" ref="redeliveryPolicy" />
	</bean>
	
	<bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
		<property name="maximumRedeliveries" value="3"/>
		<property name="redeliveryDelay" value="5000"/>
	</bean>

	<bean id="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
		init-method="start" destroy-method="stop">
		<property name="maxConnections" value="8" />
		<property name="connectionFactory" ref="jmsConnectionFactory" />
		<property name="idleTimeout" value="0"/>
	</bean>

	<bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
		<property name="connectionFactory" ref="pooledConnectionFactory" />
		<property name="concurrentConsumers" value="10" />
	</bean>

	<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
		<property name="configuration" ref="jmsConfig" />
	</bean>


Error message:
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                      
                                
Elapsed (ms)
[route1            ] [route1            ] [direct://snoaHandlerNotification              
                              
] [     50985]
[route1            ] [aggregate1        ] [aggregate[header(thread_id)]                  
                              
] [         1]
[route1            ] [delay1            ] [delay[{10000}]                                
                              
] [     10002]
[route1            ] [choice1           ] [when[{body contains
_completed_}]choice[when[{body contains _error_}]choice[] ] [         1]
[route1            ] [process2          ]
[br.com.ctech.pgmc.consumer.NotificationTimeOutProcessor@789781e2             
] [         0]
[route1            ] [to2               ]
[jms:queue:snoaHandlerNotificationQueue                                       
] [         1]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
        Id                  ID-brbdcclpgmch004-39711-1475203973274-0-302
        ExchangePattern     InOnly
        Headers            
{breadcrumbId=ID-brbdcclpgmch004-39711-1475203973274-0-300,
CamelRedelivered=false, CamelRedeliveryCounter=0, thread_id=270}
        BodyType            java.util.ArrayList
        Body                [EventoPrestadora
[gui=redesmoveis.pedido_compra_venda.notificacao_aprovisionamento_pedido,
taskName=NotificacaodeConclusaodoAprovisionament
oPelaSolicitante, serviceResponse=null]]
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------:
org.springframework.jms.Illegal
StateException: org.apache.activemq.ConnectionFailedException: The JMS
connection has failed: java.io.EOFException; nested exception is
javax.jms.IllegalStateException:
 org.apache.activemq.ConnectionFailedException: The JMS connection has
failed: java.io.EOFException
        at
org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:279)
[spring-jms-3.2.9.RELEASE.jar:3.2.9.RELEASE]
        at
org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)
[spring-jms-3.2.9.RELEASE.jar:3.2.9.RELEASE]
        at
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469)
[spring-jms-3.2.9.RELEASE.jar:3.2.9.RELEASE]
        at
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:228)
[camel-jms-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:431)
[camel-jms-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:385)
[camel-jms-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:153)
[camel-jms-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
  at
org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.DelayProcessorSupport.processDelay(DelayProcessorSupport.java:100)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.DelayProcessorSupport.process(DelayProcessorSupport.java:168)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.aggregate.AggregateProcessor$1.run(AggregateProcessor.java:517)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
[rt.jar:1.6.0_45]
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[rt.jar:1.6.0_45]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[rt.jar:1.6.0_45]
        at
org.apache.camel.util.concurrent.SynchronousExecutorService.execute(SynchronousExecutorService.java:62)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:78)
[rt.jar:1.6.0_45]
        at
org.apache.camel.processor.aggregate.AggregateProcessor.onSubmitCompletion(AggregateProcessor.java:509)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.aggregate.AggregateProcessor.onCompletion(AggregateProcessor.java:493)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.aggregate.AggregateProcessor$AggregationTimeoutMap.onEviction(AggregateProcessor.java:822)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.aggregate.AggregateProcessor$AggregationTimeoutMap.onEviction(AggregateProcessor.java:785)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.support.DefaultTimeoutMap.purge(DefaultTimeoutMap.java:212)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.processor.aggregate.AggregateProcessor$AggregationTimeoutMap.purge(AggregateProcessor.java:797)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
org.apache.camel.support.DefaultTimeoutMap.run(DefaultTimeoutMap.java:162)
[camel-core-2.12.0.redhat-610394.jar:2.12.0.redhat-610394]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
[rt.jar:1.6.0_45]
        at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
[rt.jar:1.6.0_45]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
[rt.jar:1.6.0_45]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
[rt.jar:1.6.0_45]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
[rt.jar:1.6.0_45]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
[rt.jar:1.6.0_45]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[rt.jar:1.6.0_45]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[rt.jar:1.6.0_45]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: javax.jms.IllegalStateException:
org.apache.activemq.ConnectionFailedException: The JMS connection has
failed: java.io.EOFException
        at
org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:135)
[activemq-jms-pool-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.jms.pool.PooledConnection.createSession(PooledConnection.java:167)
[activemq-jms-pool-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196)
[spring-jms-3.2.9.RELEASE.jar:3.2.9.RELEASE]
        at
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:457)
[spring-jms-3.2.9.RELEASE.jar:3.2.9.RELEASE]
        ... 44 more
Caused by: org.apache.activemq.ConnectionFailedException: The JMS connection
has failed: java.io.EOFException
        at
org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1492)
[activemq-client-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:327)
[activemq-client-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.jms.pool.ConnectionPool.makeSession(ConnectionPool.java:104)
[activemq-jms-pool-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.jms.pool.ConnectionPool$1.makeObject(ConnectionPool.java:81)
[activemq-jms-pool-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.jms.pool.ConnectionPool$1.makeObject(ConnectionPool.java:66)
[activemq-jms-pool-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
[commons-pool-1.6.jar:1.6]
        at
org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:133)
[activemq-jms-pool-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        ... 47 more
Caused by: java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:375)
[rt.jar:1.6.0_45]
        at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:258)
[activemq-client-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:221)
[activemq-client-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:213)
[activemq-client-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
[activemq-client-5.9.0.redhat-610394.jar:5.9.0.redhat-610394]
        ... 1 more





--
View this message in context: http://activemq.2283324.n4.nabble.com/StateException-org-apache-activemq-ConnectionFailedException-The-JMS-connection-has-failed-java-io-En-tp4717492.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message