Encountered Error - Timed out waiting for credit to send Message
dreamoka
Member Posts: 56 ✭✭✭
I using Camel AMQP client to receive messages from other EMS and publish to Solace EMS. However i encountered this error - "Timed out waiting for credit to send Message" if i set jms.sendTimeout=2000.
1) May i know how does broker issue credit to publisher?
2) Can I increase the credit at the EMS broker?
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: org.apache.qpid.jms.JmsSendTimedOutException: Timed out waiting for credit to send Message
at org.apache.qpid.jms.provider.exceptions.ProviderSendTimedOutException.toJMSException(ProviderSendTimedOutException.java:46) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.provider.exceptions.ProviderSendTimedOutException.toJMSException(ProviderSendTimedOutException.java:25) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:80) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:112) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.JmsConnection.send(JmsConnection.java:778) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.JmsNoTxTransactionContext.send(JmsNoTxTransactionContext.java:37) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.JmsSession.send(JmsSession.java:976) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.JmsSession.send(JmsSession.java:855) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.JmsMessageProducer.sendMessage(JmsMessageProducer.java:252) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.apache.qpid.jms.JmsMessageProducer.send(JmsMessageProducer.java:200) ~[qpid-jms-client-2.5.0.jar!/:?]
at org.messaginghub.pooled.jms.JmsPoolMessageProducer.sendMessage(JmsPoolMessageProducer.java:194) ~[pooled-jms-3.1.6.jar!/:?]
at org.messaginghub.pooled.jms.JmsPoolMessageProducer.send(JmsPoolMessageProducer.java:88) ~[pooled-jms-3.1.6.jar!/:?]
at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.doSend(JmsConfiguration.java:680) ~[camel-jms-4.6.0.jar!/:4.6.0]
at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.doSendToDestination(JmsConfiguration.java:620) ~[camel-jms-4.6.0.jar!/:4.6.0]
at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.lambda$send$0(JmsConfiguration.java:577) ~[camel-jms-4.6.0.jar!/:4.6.0]
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:530) ~[spring-jms-6.1.6.jar!/:6.1.6]
Tagged:
0