You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by shwetesha <sh...@gmail.com> on 2011/11/02 06:30:08 UTC

Exception in thread "BrokerService[localhost] Task-1"

I am using embedded broker. I get the exceptions when I start JBoss server.

04:36:36,636 INFO  [TransportConnector] Connector vm://localhost Started
04:36:36,777 ERROR [STDERR] Exception in thread "BrokerService[localhost]
Task-1" 
04:36:36,824 ERROR [STDERR] java.lang.NullPointerException
04:36:36,824 ERROR [STDERR] 	at java.util.Hashtable.put(Hashtable.java:394)
04:36:36,824 ERROR [STDERR] 	at org.apache.log4j.MDC.put0(MDC.java:117)
04:36:36,824 ERROR [STDERR] 	at org.apache.log4j.MDC.put(MDC.java:72)
04:36:36,824 ERROR [STDERR] 	at
org.jboss.logging.log4j.Log4jMDCProvider.put(Log4jMDCProvider.java:49)
04:36:36,824 ERROR [STDERR] 	at org.jboss.logging.MDC.put(MDC.java:58)
04:36:36,824 ERROR [STDERR] 	at
org.jboss.slf4j.JBossMDCAdapter.put(JBossMDCAdapter.java:53)
04:36:36,824 ERROR [STDERR] 	at
org.jboss.slf4j.JBossMDCAdapter.setContextMap(JBossMDCAdapter.java:73)
04:36:36,824 ERROR [STDERR] 	at org.slf4j.MDC.setContextMap(MDC.java:192)
04:36:36,824 ERROR [STDERR] 	at
org.apache.activemq.util.MDCHelper.setContextMap(MDCHelper.java:41)
04:36:36,824 ERROR [STDERR] 	at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:45)
04:36:36,824 ERROR [STDERR] 	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
04:36:36,824 ERROR [STDERR] 	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
04:36:36,824 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:619)

Can you help me to resolve it ???

--
View this message in context: http://activemq.2283324.n4.nabble.com/Exception-in-thread-BrokerService-localhost-Task-1-tp3971886p3971886.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Exception in thread "BrokerService[localhost] Task-1"

Posted by shwetesha <sh...@gmail.com>.
Thanks for your replay Dejan. I am using ActiveMQ 5.5

--
View this message in context: http://activemq.2283324.n4.nabble.com/Exception-in-thread-BrokerService-localhost-Task-1-tp3971886p3972470.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Exception in thread "BrokerService[localhost] Task-1"

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

what version of ActiveMQ are you using?

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Nov 2, 2011 at 6:30 AM, shwetesha <sh...@gmail.com> wrote:

> I am using embedded broker. I get the exceptions when I start JBoss server.
>
> 04:36:36,636 INFO  [TransportConnector] Connector vm://localhost Started
> 04:36:36,777 ERROR [STDERR] Exception in thread "BrokerService[localhost]
> Task-1"
> 04:36:36,824 ERROR [STDERR] java.lang.NullPointerException
> 04:36:36,824 ERROR [STDERR]     at
> java.util.Hashtable.put(Hashtable.java:394)
> 04:36:36,824 ERROR [STDERR]     at org.apache.log4j.MDC.put0(MDC.java:117)
> 04:36:36,824 ERROR [STDERR]     at org.apache.log4j.MDC.put(MDC.java:72)
> 04:36:36,824 ERROR [STDERR]     at
> org.jboss.logging.log4j.Log4jMDCProvider.put(Log4jMDCProvider.java:49)
> 04:36:36,824 ERROR [STDERR]     at org.jboss.logging.MDC.put(MDC.java:58)
> 04:36:36,824 ERROR [STDERR]     at
> org.jboss.slf4j.JBossMDCAdapter.put(JBossMDCAdapter.java:53)
> 04:36:36,824 ERROR [STDERR]     at
> org.jboss.slf4j.JBossMDCAdapter.setContextMap(JBossMDCAdapter.java:73)
> 04:36:36,824 ERROR [STDERR]     at
> org.slf4j.MDC.setContextMap(MDC.java:192)
> 04:36:36,824 ERROR [STDERR]     at
> org.apache.activemq.util.MDCHelper.setContextMap(MDCHelper.java:41)
> 04:36:36,824 ERROR [STDERR]     at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:45)
> 04:36:36,824 ERROR [STDERR]     at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 04:36:36,824 ERROR [STDERR]     at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 04:36:36,824 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
>
> Can you help me to resolve it ???
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Exception-in-thread-BrokerService-localhost-Task-1-tp3971886p3971886.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Exception in thread "BrokerService[localhost] Task-1"

Posted by Dejan Bosanac <de...@nighttale.net>.
I agree with Torsten. However, it might be worth trying a 5.6-SNAPSHOT as
there were some changes in that area which might affect this.


Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Nov 2, 2011 at 11:28 AM, Torsten Mielke <to...@fusesource.com>wrote:

> I am a bit surprised to see org.jboss.slf4j showing up in the stack trace.
> It should rather the load org.slf4j package instead.
>
> It seems the use of JBoss slf4j at runtime is causing problems.
>
>
>
> Torsten Mielke
> torsten@fusesource.com
> tmielke@blogspot.com
>
>
>
>
> On Nov 2, 2011, at 6:30 AM, shwetesha wrote:
>
> > I am using embedded broker. I get the exceptions when I start JBoss
> server.
> >
> > 04:36:36,636 INFO  [TransportConnector] Connector vm://localhost Started
> > 04:36:36,777 ERROR [STDERR] Exception in thread "BrokerService[localhost]
> > Task-1"
> > 04:36:36,824 ERROR [STDERR] java.lang.NullPointerException
> > 04:36:36,824 ERROR [STDERR]   at
> java.util.Hashtable.put(Hashtable.java:394)
> > 04:36:36,824 ERROR [STDERR]   at org.apache.log4j.MDC.put0(MDC.java:117)
> > 04:36:36,824 ERROR [STDERR]   at org.apache.log4j.MDC.put(MDC.java:72)
> > 04:36:36,824 ERROR [STDERR]   at
> > org.jboss.logging.log4j.Log4jMDCProvider.put(Log4jMDCProvider.java:49)
> > 04:36:36,824 ERROR [STDERR]   at org.jboss.logging.MDC.put(MDC.java:58)
> > 04:36:36,824 ERROR [STDERR]   at
> > org.jboss.slf4j.JBossMDCAdapter.put(JBossMDCAdapter.java:53)
> > 04:36:36,824 ERROR [STDERR]   at
> > org.jboss.slf4j.JBossMDCAdapter.setContextMap(JBossMDCAdapter.java:73)
> > 04:36:36,824 ERROR [STDERR]   at
> org.slf4j.MDC.setContextMap(MDC.java:192)
> > 04:36:36,824 ERROR [STDERR]   at
> > org.apache.activemq.util.MDCHelper.setContextMap(MDCHelper.java:41)
> > 04:36:36,824 ERROR [STDERR]   at
> >
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:45)
> > 04:36:36,824 ERROR [STDERR]   at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > 04:36:36,824 ERROR [STDERR]   at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > 04:36:36,824 ERROR [STDERR]   at java.lang.Thread.run(Thread.java:619)
> >
> > Can you help me to resolve it ???
> >
> > --
> > View this message in context:
> http://activemq.2283324.n4.nabble.com/Exception-in-thread-BrokerService-localhost-Task-1-tp3971886p3971886.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Re: Exception in thread "BrokerService[localhost] Task-1"

Posted by Torsten Mielke <to...@fusesource.com>.
I am a bit surprised to see org.jboss.slf4j showing up in the stack trace. 
It should rather the load org.slf4j package instead.

It seems the use of JBoss slf4j at runtime is causing problems.



Torsten Mielke
torsten@fusesource.com
tmielke@blogspot.com




On Nov 2, 2011, at 6:30 AM, shwetesha wrote:

> I am using embedded broker. I get the exceptions when I start JBoss server.
> 
> 04:36:36,636 INFO  [TransportConnector] Connector vm://localhost Started
> 04:36:36,777 ERROR [STDERR] Exception in thread "BrokerService[localhost]
> Task-1" 
> 04:36:36,824 ERROR [STDERR] java.lang.NullPointerException
> 04:36:36,824 ERROR [STDERR] 	at java.util.Hashtable.put(Hashtable.java:394)
> 04:36:36,824 ERROR [STDERR] 	at org.apache.log4j.MDC.put0(MDC.java:117)
> 04:36:36,824 ERROR [STDERR] 	at org.apache.log4j.MDC.put(MDC.java:72)
> 04:36:36,824 ERROR [STDERR] 	at
> org.jboss.logging.log4j.Log4jMDCProvider.put(Log4jMDCProvider.java:49)
> 04:36:36,824 ERROR [STDERR] 	at org.jboss.logging.MDC.put(MDC.java:58)
> 04:36:36,824 ERROR [STDERR] 	at
> org.jboss.slf4j.JBossMDCAdapter.put(JBossMDCAdapter.java:53)
> 04:36:36,824 ERROR [STDERR] 	at
> org.jboss.slf4j.JBossMDCAdapter.setContextMap(JBossMDCAdapter.java:73)
> 04:36:36,824 ERROR [STDERR] 	at org.slf4j.MDC.setContextMap(MDC.java:192)
> 04:36:36,824 ERROR [STDERR] 	at
> org.apache.activemq.util.MDCHelper.setContextMap(MDCHelper.java:41)
> 04:36:36,824 ERROR [STDERR] 	at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:45)
> 04:36:36,824 ERROR [STDERR] 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 04:36:36,824 ERROR [STDERR] 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 04:36:36,824 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:619)
> 
> Can you help me to resolve it ???
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Exception-in-thread-BrokerService-localhost-Task-1-tp3971886p3971886.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.