[ openjms-Bugs-984090 ] NPE thrown from openJms connectionFactory class
"SourceForge.net" <[email protected]> Fri, 02 Jul 2004 20:33:08 -0700
| 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
Category: server
Group: None
Status: Open
Resolution: None
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: 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 sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com