Breaking News
Home / ServerSide / Weblogic / Hermes JMS Setup Common Issues

Hermes JMS Setup Common Issues

Hermes JMS IssuesHermes JMS is a great Open Source JMS Client application to browse and manage JMS messages across topics and queues against a variety of Application Severs including Weblogic App Server. The installation is very straight forward, however below are some of the common issues that one might face while trying to connect to an JMS Queue.<!>

Issue 1- UnsatisfiedLinkError

 java -jar hermes-installer-1.13.jar

Exception in thread “main” java.lang.UnsatisfiedLinkError: /home/weblogic/bea/jdk142_05/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
        at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
        at java.awt.Color.<clinit>(Color.java:250)
        at com.izforge.izpack.installer.InstallData.<init>(InstallData.java:51)
        at com.izforge.izpack.installer.GUIInstaller.<init>(GUIInstaller.java:107)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at com.izforge.izpack.installer.Installer.main(Installer.java:62)

Resolution

Hermes required JDK 1.5+, probably you are running JDK 1.4+ or earlier. Verify your JAVA_HOME env variable and point it to  Java 1.5+ and re-run the installer that should be take care.

Issue 2 – Could not create InitialContext

javax.jms.JMSException: Could not create InitialContext: User: weblogic, failed to be authenticated.
    at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:286)
    at hermes.ext.weblogic.WebLogicJMSAdminFactory.createSession(WebLogicJMSAdminFactory.java:63)
    at hermes.impl.HermesAdminAdapter.getAdmin(HermesAdminAdapter.java:64)
    at hermes.impl.HermesAdminAdapter.discoverDestinationConfigs(HermesAdminAdapter.java:84)
    at hermes.impl.DefaultHermesImpl.discoverDestinationConfigs(DefaultHermesImpl.java:1357)
    at hermes.browser.tasks.DiscoverDestinationsTask.invoke(DiscoverDestinationsTask.java:76)
    at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
    at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
    at java.lang.Thread.run(Thread.java:595)

Resolution

Verify your username and password and try again.

Issue 3 – Weblogic/management/WebLogicObjectName

2009-02-27 14:18:41,413 [Hermes ThreadPool-4] ERROR
hermes.browser.tasks.HermesBrowserTaskListener –
weblogic/management/WebLogicObjectName

java.lang.NoClassDefFoundError: weblogic/management/WebLogicObjectName
at hermes.ext.weblogic.WebLogicJMSAdminFactory.createSession(WebLogicJMSAdminFactory.java:63)
at hermes.impl.HermesAdminAdapter.getAdmin(HermesAdminAdapter.java:64)
at hermes.impl.HermesAdminAdapter.discoverDestinationConfigs(HermesAdminAdapter.java:84)
at hermes.impl.DefaultHermesImpl.discoverDestinationConfigs(DefaultHermesImpl.java:1357)
at hermes.browser.tasks.DiscoverDestinationsTask.invoke(DiscoverDestinationsTask.java:76)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: weblogic.management.WebLogicObjectName
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at hermes.impl.LoaderSupport$DebugClassLoader.findClass(LoaderSupport.java:130)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at hermes.impl.LoaderSupport$DebugClassLoader.loadClass(LoaderSupport.java:99)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

Resolution

Cannot discover or perform any other operations on a WebLogic session using WLS 10 weblogic.jar. WLS 8.0 weblogic.jar works fine. WLS 9.x weblogic.jar does not work either. HermesJMS uses weblogic/management/WebLogicObjectName which is deprecated in WLS 9 and removed in WLS 10:

http://e-docs.bea.com/wls/docs92/javadocs/weblogic/management/WebLogicOb…

Copy the weblogic.jar or weblogicjms

Issue 4 – Binding Property not set.

hermes.HermesException: The binding property to locate the ConnectionFactory in the Context is not set
    at hermes.JNDIConnectionFactory.checkBinding(JNDIConnectionFactory.java:63)
    at hermes.JNDIConnectionFactory.createConnection(JNDIConnectionFactory.java:74)
    at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:122)
    at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:92)
    at hermes.impl.jms.ConnectionSharedManager.reconnect(ConnectionSharedManager.java:81)
    at hermes.impl.jms.ConnectionSharedManager.connect(ConnectionSharedManager.java:91)
    at hermes.impl.jms.ConnectionSharedManager.getConnection(ConnectionSharedManager.java:104)
    at hermes.impl.jms.ConnectionSharedManager.getObject(ConnectionSharedManager.java:142)
    at hermes.impl.jms.ThreadLocalSessionManager.connect(ThreadLocalSessionManager.java:190)
    at hermes.impl.jms.ThreadLocalSessionManager.getSession(ThreadLocalSessionManager.java:570)
    at hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSessionManager.java:465)
    at hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:367)
    at hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationTask.java:141)
    at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
    at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
    at java.lang.Thread.run(Thread.java:595)

Resolution

Check the binding value sepecified in the configuration. For a queue lookup it should be as how below.

Hermes JMS Issues

 

[pb_builder]

Check Also

Error – Remote side declared peer gone on this JVM

Issue When trying to sent a JMS message to a remote Weblogic Application Server the …

Advertisment ad adsense adlogger