cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Topic error

Former Member
0 Kudos

Everyone:

I am getting the following java error while trying to create a Topic Connection facotry:

<b>Caught Exception java.lang.ClassCastException:

com.sap.engine.services.jndi.persistent.Unsatisfie

dReferenceImpl</b>

at

jmsbenchmark.JMSConnection.makeTopicConnectionJNDI(JMSConnection.java

:953

This is on a remote client machine (remote to the server).

I strongly suspect that the error message is trying to tell me that I need a seperate JAR file for topics (as opposed to queues), and it can not resolve the reference to the object in the Jar.

There are the jars I am using on th remote client:

<b> exception.jar

logging.jar

sapj2eeclient.jar</b>

Does anyone know what jar I should have, or know of any other info?

Thanks, John

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello John,

Normally when you launch JMS programs you need to add jms.jar in your classpath. However I am not sure if that will help you. If you could post some of your code (jmsbenchmark.JMSConnection line 953) perhaps it will give us idea what could be the problem.

Please note that creation of TopicConnection factory should normally be performed via VisualAdministrator or other administrative tools. Please check

http://help.sap.com/saphelp_nw04/helpdata/en/26/9b569f525445b0b3d66474b7569d39/content.htm

for more info.

Best Regards

Peter Peshev

Former Member
0 Kudos

I have the same problem with the QueueConnectionFactory. (I'm using the jms.jar.).

The Code is the simpleClient ( http://help.sap.com/saphelp_nw04s/helpdata/en/44/efec3341ad67d8e10000000a155369/content.htm )

Exception in thread "main" java.lang.ClassCastException: com.sap.engine.services.jndi.persistent.UnsatisfiedReferenceImpl

at SimpleClient.main(SimpleClient.java:149)

Former Member
0 Kudos

Putting the sapjms.jar in the classpath solved the problem.

Answers (0)