RE: NameNotFoundException

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <000001c5142c$cdcb3390$0100000a@xerces>
Looks like a bug in the avalon (now spice.codehaus.org)
implementation. I'll raise a bug report when I can
get to the spice website.

-Tim

> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Charles Hudak
> Sent: Saturday, 12 February 2005 6:09 AM
> To: [email protected]
> Subject: [openjms-user] NameNotFoundException
> 
> 
> 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.doLoca
> lLookup(Me
> moryContext.java:89)
> 	at 
> org.apache.avalon.excalibur.naming.AbstractLocalContext.localL
> ookup(Abst
> ractLocalContext.java:297)
> 	at 
> org.apache.avalon.excalibur.naming.AbstractLocalContext.lookup
> (AbstractL
> ocalContext.java:278)
> 	at 
> org.apache.avalon.excalibur.naming.rmi.server.RMINamingProvide
> rImpl.look
> up(RMINamingProviderImpl.java:157)
> 	at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
> 	at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> 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(TCPTr
> ansport.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(StreamRemoteCal
> l.java:223
> )
> 	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
> 	at 
> org.apache.avalon.excalibur.naming.rmi.server.RMINamingProvide
> rImpl_Stub
> .lookup(Unknown Source)
> 	at 
> org.apache.avalon.excalibur.naming.RemoteContext.lookup(Remote
> Context.ja
> va:233)
> 	at 
> org.apache.avalon.excalibur.naming.AbstractContext.lookup(Abst
> ractContex
> 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(QueueCl
> ientTest.j
> ava:89)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:39)
> 	at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> 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.runTest
> s(RemoteTe
> stRunner.java:421)
> 	at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(Rem
> oteTestRun
> ner.java:305)
> 	at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(Re
> moteTestRu
> 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=ick
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
> 



-------------------------------------------------------
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.