[ openjms-Bugs-984090 ] NPE thrown from openJms connectionFactory class

"SourceForge.net" <[email protected]> Fri, 02 Dec 2005 04:50:11 -0800
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
Bugs item #984090, was opened at 2004-07-03 00:16
Message generated for change (Comment added) made by tanderson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=984090&group_id=54559

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: server
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: sampath (sampath12)
Assigned to: Nobody/Anonymous (nobody)
Summary: NPE thrown from openJms connectionFactory class

Initial Comment:
Hi All,

I am trying to subscribe to a topic from a web app 
running on Websphere App server (WAS) 4.0 server. The 
connectionFactory and Topic setup in WAS 4.0 jndi 
namespace point correctly to corresponding objects 
created in openJms. The lookup of factory and topic 
works fine, but when I try to get the connection from 
the factory I get a NPE thrown from opneJms classes.

When I directly access openJms jndi namespace, lookup 
the connectionFactory and call the 
createTopicConnection() method, I still get the NPE.

Can someone help please. This is very urgent.

Here is the code:

public TopicConnection connection = null;
  try {
         connection = 
connectionFactory.createTopicConnection();
…..
        }

Here is part of stack trace:
(JmsMultiTopicReceiverServlet is the servlet I am using 
to make the connection)

[7/1/04 22:15:39:593 EDT] 6b586b58 WebGroup      X 
Servlet Error-[DBSyncReceiverServlet]: Failed to load 
servlet: java.lang.NullPointerException
	at java.lang.Throwable.<init>(Throwable.java)
	at java.lang.Throwable.<init>(Throwable.java)
	at java.lang.NullPointerException.<init>
(NullPointerException.java:63)
	at 
org.exolab.jms.client.JmsConnectionFactory.addConnectio
n(JmsConnectionFactory.java:171)
	at 
org.exolab.jms.client.JmsTopicConnectionFactory.createT
opicConnection(JmsTopicConnectionFactory.java:115)
	at 
cs595.project.receiver.servlet.JmsMultiTopicReceiverServl
et.init(JmsMultiTopicReceiverServlet.java:76)


Thanks.
Any help is greatly appreciated.


----------------------------------------------------------------------

>Comment By: Tim Anderson (tanderson)
Date: 2005-12-02 23:50

Message:
Logged In: YES 
user_id=557161

Closing this. If the problem persists, reopen and provide
more details as to your environment.

----------------------------------------------------------------------

Comment By: Tim Anderson (tanderson)
Date: 2004-07-03 13:33

Message:
Logged In: YES 
user_id=557161

What version of OpenJMS are you using? 
Looking at the source for 0.7.6.1 (see 
http://openjms.sourceforge.net/xref/org/exolab/jms/client/J
msConnectionFactory.html), its not clear how an NPE could 
be raised.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=984090&group_id=54559


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click