Can't get Hermes to work with OpenJMS

Help
2006-11-16
2013-04-24
  • Joachim Schaaf
    Joachim Schaaf
    2006-11-16

    Hi,

    I'm unable to get Hermes (1.10) to work with OpenJMS (0.7.6.1).

    I followed the tuturial from the website and it works with Jboss 4.0.2 (setting up classpath group, creating a context, creating a session with UIL2ConnectionFactory, discovering queues/topics, browsing through them...).

    When I try this with OpenJMS, I'm able to connect, but I get a "getObjectInstance failed" error when I try to discover the queues/topics (stacktrace below).

    Any idea?

    Thanks,
    Joachim

    2006-11-16 11:22:02,824 [Hermes ThreadPool-2] DEBUG hermes.browser.tasks.ThreadPool - task hermes.browser.tasks.DiscoverDestinationsTask@1557525 starting
    2006-11-16 11:22:02,830 [Hermes ThreadPool-2] DEBUG hermes.JNDIContextFactory - properties: {java.naming.provider.url=rmi://localhost:1199, java.naming.factory.initial=org.exolab.jms.jndi.InitialCo
    ntextFactory}
    2006-11-16 11:22:02,923 [Hermes ThreadPool-2] ERROR hermes.browser.tasks.HermesBrowserTaskListener - getObjectInstance failed
    hermes.HermesException: getObjectInstance failed
            at hermes.ext.HermesAdminSupport.discoverDestinationConfigsFromContext(HermesAdminSupport.java:378)
            at hermes.ext.HermesAdminSupport.discoverDestinationConfigs(HermesAdminSupport.java:390)
            at hermes.impl.HermesAdminAdapter.discoverDestinationConfigs(HermesAdminAdapter.java:84)
            at hermes.impl.DefaultHermesImpl.discoverDestinationConfigs(DefaultHermesImpl.java:1268)
            at hermes.browser.tasks.DiscoverDestinationsTask.invoke(DiscoverDestinationsTask.java:76)
            at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:174)
            at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:182)
            at java.lang.Thread.run(Thread.java:595)
    javax.naming.NamingException: getObjectInstance failed [Root exception is java.lang.NullPointerException]
            at org.apache.avalon.excalibur.naming.AbstractNamingEnumeration.resolve(AbstractNamingEnumeration.java:66)
            at org.apache.avalon.excalibur.naming.memory.MemoryNamingEnumeration.next(MemoryNamingEnumeration.java:63)
            at org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl.list(RMINamingProviderImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
            at sun.rmi.transport.Transport$1.run(Transport.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
            at java.lang.Thread.run(Thread.java:534)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
            at org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub.list(Unknown Source)
            at org.apache.avalon.excalibur.naming.RemoteContext.list(RemoteContext.java:174)
            at org.apache.avalon.excalibur.naming.AbstractContext.list(AbstractContext.java:220)
            at javax.naming.InitialContext.list(InitialContext.java:395)
            at hermes.ext.HermesAdminSupport.discoverDestinationConfigsFromContext(HermesAdminSupport.java:303)
            at hermes.ext.HermesAdminSupport.discoverDestinationConfigs(HermesAdminSupport.java:390)
            at hermes.impl.HermesAdminAdapter.discoverDestinationConfigs(HermesAdminAdapter.java:84)
            at hermes.impl.DefaultHermesImpl.discoverDestinationConfigs(DefaultHermesImpl.java:1268)
            at hermes.browser.tasks.DiscoverDestinationsTask.invoke(DiscoverDestinationsTask.java:76)
            at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:174)
            at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:182)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
            at org.apache.avalon.excalibur.naming.AbstractLocalContext.getNameParser(AbstractLocalContext.java:207)
            at org.apache.avalon.excalibur.naming.AbstractContext.getNameParser(AbstractContext.java:180)
            at org.apache.avalon.excalibur.naming.AbstractContext.getNameParser(AbstractContext.java:205)
            at org.apache.avalon.excalibur.naming.AbstractContext.getNameParser(AbstractContext.java:180)
            at org.apache.avalon.excalibur.naming.AbstractNamingEnumeration.resolve(AbstractNamingEnumeration.java:60)
            at org.apache.avalon.excalibur.naming.memory.MemoryNamingEnumeration.next(MemoryNamingEnumeration.java:63)
            at org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl.list(RMINamingProviderImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
            at sun.rmi.transport.Transport$1.run(Transport.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
            at java.lang.Thread.run(Thread.java:534)
    2006-11-16 11:22:02,929 [Hermes ThreadPool-2] DEBUG hermes.browser.tasks.ThreadPool - task hermes.browser.tasks.DiscoverDestinationsTask@1557525  stopped

     
    • Colin Crist
      Colin Crist
      2006-11-16

      Hi,

      These forums are not monitored anymore - can you please post on http://hermesjms.com/forum

      Regards,

      Colin.