This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes NullPointerException while creating JMS connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "NullPointerException while creating JMS connection" Watch "NullPointerException while creating JMS connection" New topic
Author

NullPointerException while creating JMS connection

Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Hi,

I've slimlined jboss-5.1.0.GA's default configuration and removed ejb/jms etc stuff from it and it currently supports web applications only. My web application is trying to send a message to a remote jboss queue but it fails when it tries to create a jms session. I can lookup the initial context and can create the connection but when i try to create session using my connection object, i get NullPointerException. My connection object is definately not null, I print it on console. I've not removed any libraries from client/ and common/lib directories though. Here is the stack trace:



Doesn't give much information

Any idea what am i doing wong?

Thank you.
 
Consider Paul's rocket mass heater.
 
subject: NullPointerException while creating JMS connection
 
Similar Threads
Problem in getting connection from data source
Two-Phase commit using CMT on JBoss and Oracle XE
org.hibernate.exception.GenericJDBCException: Cannot open connection
JMS ununderstable info logs.
Hibernate: Mysql Auto Reconnect is not happening.