users@glassfish.java.net

Re: NullPointerException in DirectConnectionFactory GFv2.1.1

From: <glassfish_at_javadesktop.org>
Date: Tue, 09 Feb 2010 02:20:01 PST

Looks like you've hit a bug (a NullPointerException is almost always a bug, in my opinion). I would be grateful if you could help me track down the cause.

From the stack trace, you're in the process of deploying a MDB. This MDB is configured to connect to an in-process (embedded) MQ broker (which is the default for a non-clustered Glassfish instance). The MDB is trying to make a connection to the in-process broker but the global variable which holds a reference to the in-process broker is null for some reason.

Can you please check your server log and let me know whether the embedded broker started correctly? Look for the following messages:

[#|2010-02-09T10:15:02.610+0000|INFO|sun-appserver2.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting: DIRECT|#]
[#|2010-02-09T10:15:05.412+0000|INFO|sun-appserver2.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMSRA Started:DIRECT|#]

Also, can you please look at the MQ broker log and let me know whether there were any errors in this? The broker log is in the directory imq/instances/imqbroker/log under your domain.

Thanks,

Nigel
Glassfish Message Queue team
[Message sent by forum member 'nigeldeakin' (nigel.deakin_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=385605