[rabbitmq-discuss] NullPointerException

PATAR, SAGAR sp345s at att.com
Wed Apr 23 20:18:38 BST 2014


We have a multithread java program running in JBOSS .. where each thread sends a message to the RABBIT MQ Exchange ..
We are using the Spring config file to make the connections / channels etc  ...
Currently we have requestedChannelMax=1  .. Occasionally we see the below exception ...
The exception is mis leading and not sure if its because eof the channel availability ...

2014-04-23 14:28:07,279 ERROR [DeviceOIDUpdateMBusTask] - com.att.dlife.dlcore.mbus.client.common.DLCoreMessageBusException: org.springframework.amqp.UncategorizedAmqpException: java.lang.NullPointerException
       at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:60)
       at org.springframework.amqp.rabbit.connection.RabbitAccessor.convertRabbitAccessException(RabbitAccessor.java:108)
       at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:632)
       at org.springframework.amqp.rabbit.core.RabbitTemplate.send(RabbitTemplate.java:349)
       at org.springframework.amqp.rabbit.core.RabbitTemplate.send(RabbitTemplate.java:343)
       at com.att.dlife.dlcore.mbus.client.publisher.AmqpMessageSenderImpl.send(AmqpMessageSenderImpl.java:71)
       at com.xanboo.core.mbus.DeviceOIDUpdateMBusTask.run(DeviceOIDUpdateMBusTask.java:156)
       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:662)
Caused by: java.lang.NullPointerException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:348)
       at $Proxy207.basicPublish(Unknown Source)
       at org.springframework.amqp.rabbit.core.RabbitTemplate.doSend(RabbitTemplate.java:675)
       at org.springframework.amqp.rabbit.core.RabbitTemplate$1.doInRabbit(RabbitTemplate.java:351)
       at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:627)
       ... 7 more

       at com.att.dlife.dlcore.mbus.client.publisher.AmqpMessageSenderImpl.send(AmqpMessageSenderImpl.java:94)
       at com.xanboo.core.mbus.DeviceOIDUpdateMBusTask.run(DeviceOIDUpdateMBusTask.java:156)
       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:662)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140423/f8120904/attachment.html>


More information about the rabbitmq-discuss mailing list