NameNotFoundException

"Charles Hudak" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <EE4019120C23E6479B60A01593C787A90303E9@sd-eng-srv3.sd.cardionet.com>
Hi,

I'm having a problem with openjms 0.7.6.1 and heirarchical naming of
queue connection factories and queues that I'm migrating over from some
existing weblogic JMS code.

For instance, I have:

<Connectors>
    <Connector scheme="rmi">
      <ConnectionFactories>
        <QueueConnectionFactory name="cardionet.QueueConnectionFactory"
/>
      </ConnectionFactories>
    </Connector>
  </Connectors>


<AdministeredDestinations>
    <AdministeredTopic name="cardionet.CallStatus">
      <Subscriber name="sub2" />
    </AdministeredTopic>
    <AdministeredQueue name="cardionet.ReportTaskQueue" />   
    <AdministeredQueue name="IncomingP2SendMessageQ" />
  </AdministeredDestinations>

The problem is that the lookup of the queue connection factory with the
heirarchical name works fine but when I try to lookup the queue with the
heirarchical name, I get a NameNotFoundException. This doesn't happen if
I lookup a non-heirarchical queue name.

Is this a bug in the avalon Context implementation? Has anyone seen this
before?

Here is a sample stack trace that I am getting when lookup up the queue
after successfully getting a handle to the queueconnectionfactory:


javax.naming.NameNotFoundException: cardionet.ReportTaskQueue
	at
org.apache.avalon.excalibur.naming.memory.MemoryContext.doLocalLookup(Me
moryContext.java:89)
	at
org.apache.avalon.excalibur.naming.AbstractLocalContext.localLookup(Abst
ractLocalContext.java:297)
	at
org.apache.avalon.excalibur.naming.AbstractLocalContext.lookup(AbstractL
ocalContext.java:278)
	at
org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl.look
up(RMINamingProviderImpl.java:157)
	at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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.ja
va:701)
	at java.lang.Thread.run(Thread.java:534)
	at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRem
oteCall.java:247)
	at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223
)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
	at
org.apache.avalon.excalibur.naming.rmi.server.RMINamingProviderImpl_Stub
.lookup(Unknown Source)
	at
org.apache.avalon.excalibur.naming.RemoteContext.lookup(RemoteContext.ja
va:233)
	at
org.apache.avalon.excalibur.naming.AbstractContext.lookup(AbstractContex
t.java:246)
	at javax.naming.InitialContext.lookup(InitialContext.java:347)
	at com.cardionet.util.JMSClient.<init>(JMSClient.java:50)
	at
com.cardionet.jms.QueueClientTest.test_reportTaskQueue(QueueClientTest.j
ava:89)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:421)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:305)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:186)

Thanks in advance.

Charles



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.