aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JMS Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JMS Error" Watch "JMS Error" New topic
Author

JMS Error

Madhu Juneja
Ranch Hand

Joined: Mar 10, 2001
Posts: 176
When executing JMS Application I am getting the following exception :
SEVERE unable to locate resource bundle: com.sun.jms.LocalStrings
This exception is thrown at the point where the createQueueConnection() method is invoked to create a QueueConnection.
How do I solve this problem ?
Thanks
Madhu Juneja
Ranch Hand

Joined: Mar 10, 2001
Posts: 176
The same exception is thrown in both the createQueueConnection() methods.
Can anybody help ...
Majid Khan
Ranch Hand

Joined: Oct 02, 2000
Posts: 92
Hi Madhu
Can u specify what provider are u using?
Mac
Madhu Juneja
Ranch Hand

Joined: Mar 10, 2001
Posts: 176
I am using the sun's very own jsdkee1.3 version. Can you provide any clues to the problem I am facing. Thanks in advance.
Majid Khan
Ranch Hand

Joined: Oct 02, 2000
Posts: 92
Add this to your classpath %J2EE_HOME%\lib\locale.
Your code should work fine.
Rgds
Mac
Madhu Juneja
Ranch Hand

Joined: Mar 10, 2001
Posts: 176
Thanks. Will do that on Monday.
Thanks Again.
Amit Goyal
Greenhorn

Joined: Feb 21, 2002
Posts: 1
Originally posted by Majid Khan:
Add this to your classpath %J2EE_HOME%\lib\locale.
Your code should work fine.
Rgds
Mac

Hi, I also ran into the same problem. I tried the suggested fix, only to come across another error. I am trying to send messages over a network to another computer via JMS.
Here is the error:
SEVERE ConnectionFactoryImpl: Failed to lookup or connect to JMS service because
: javax.naming.CommunicationException: Cannot connect to ORB [Root exception is
org.omg.CORBA.COMM_FAILURE: minor code: 1398079689 completed: No]
Any help would be greatly appreciated.
Ragu Sivaraman
Ranch Hand

Joined: Jul 20, 2001
Posts: 464
Originally posted by Amit Goyal:

Hi, I also ran into the same problem. I tried the suggested fix, only to come across another error. I am trying to send messages over a network to another computer via JMS.
Here is the error:
SEVERE ConnectionFactoryImpl: Failed to lookup or connect to JMS service because
: javax.naming.CommunicationException: Cannot connect to ORB [Root exception is
org.omg.CORBA.COMM_FAILURE: minor code: 1398079689 completed: No]
Any help would be greatly appreciated.

Please check your client's run time jars
They have to in correct order
If its another computer, make sure the lookup jndi or any propreitary mechanism is functional

Ragu
kite
Greenhorn

Joined: Aug 12, 2002
Posts: 1
add the following into your %j2ee_home%\config\jms_service.properties , jms_client.properties
com.sun.jms.internal.java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory
all of the problems will be solved
[ August 12, 2002: Message edited by: kite ]
Frank Truong
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
Hi Kite,
I added what you recommended to those 2 files but it still keeps saying ... can't not find SerialContextProvider ... Do you still have any ideas?
I don't know why it does work on some machines I try remotely but not all of them .
Thanks,
Frank
Jeroen de Vries
Greenhorn

Joined: Apr 09, 2003
Posts: 1
This error message occurs when your piece of code is generating an exception. For some reason it will not be caught unless you catch a Throwable.
I implemented the onMessage method of the jms MessageListener and had the same problem. What i did was put a try-catch around all code in the onMessage method and had a Throwable caught which i stacktraced.
try {
<all your code inside the onMessage method>
} catch(Throwable e) {
e.printStackTrace();
}
Voila an exception originating from my own code appeared although i had a correct try-catch around the faulty code.
It does not solve the problem with the resource bundle message but it does reveal a problem causing it.
Hope this tip will help you.
grtz, j
Dwayne Perkins
Greenhorn

Joined: Nov 19, 2004
Posts: 1
I had the same Exception when attempting to publish a message. It ended up being caused by using a property name with a dash in it when setting a property in the jms message. Apparently dashes aren't allowed. I lost a lot of time on this stupid problem, so I can only hope this helps someone else out there getting the same exception.

I find the wording of the exception to be completely innacurate. Even the stack trace wasn't all that helpful.
 
 
subject: JMS Error