----- Original Message -----
Sent: Thursday, January 04, 2001 9:23 PM
Subject: Re: [spyderMQ] Re: Problem accessing Queue/Topic ConnectionFactory in latest jboss cvs

Thanks for confirming the problem.  I just did a clean checkout of the jboss sources to test the problem.  Here is how I was able to recreate it:
- clean check out and build of the current jboss sources.
- copied the bank.jar from the jbosstest module to the dist/deploy
- copied the dist/examples from the spyderMQ module to the jboss dist/ directory
- executing "run SenderToQueue testQueue" failed with a ConfigurationException: Provider URL missing
- I edited the jboss dist/conf/default/jndi.properties file and uncommented the provider.url property
- executing "run SenderToQueue testQueue" and it failed with the same exception as you guys have provided.
 
But, if I restart the jboss process the problem clears out.  I think it could be because the jboss process is now configured with the same provider.url property as the client.  I'm not sure.  But this seems like a jBoss/JNDI issue and not a spyderMQ specific issue.
 
I'm going to cross post this also to jboss-dev to see if someone over there has an idea.
 
Regards,
Hiram
 
 
----- Original Message -----
Sent: Thursday, January 04, 2001 5:19 PM
Subject: [spyderMQ] Re: Problem accessing Queue/Topic ConnectionFactory in latest jboss cvs

I'm actually suffering the same problem with the latest SpyderMQ
builds.  Yesterday I reverted back to SpyderMQ v. 0.5 until I had time
to debug the issue.  Now I see it's not just me, as others are having
it too.

I have a client that runs without problem whenever the jboss/deploy
directory is empty.  But as soon as I deploy something, my client
fails to run with a strack trace just like the one Scott posted.  I
tried copying up various .jar files from the spydermq CVS tree over
their respective jboss jars with no luck.  Nothing enables it to work.

By the way, I'm running linux here.

Dave

--- In [EMAIL PROTECTED], "Scott M Stark" <[EMAIL PROTECTED]> wrote:
> Using the latest jboss cvs snapshot I am not able to lookup the
QueueConnectionFactory from
> jndi due to the following exception that results in running this
trival client:
>
> import java.util.Properties;
> import javax.jms.Queue;
> import javax.jms.QueueConnection;
> import javax.jms.QueueConnectionFactory;
> import javax.naming.Context;
> import javax.naming.InitialContext;
>
> public class LookupQueFactory
> {
>
>     public static void main(String args[]) throws Exception
>  {
>   Properties env = new Properties();
>   env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
>   env.setProperty(Context.PROVIDER_URL, "localhost");
>   env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming");
>   InitialContext inictx = new InitialContext(env);
>   QueueConnectionFactory queFactory = (QueueConnectionFactory)
inictx.lookup("QueueConnectionFactory");
>   Queue timeQue = (Queue) inictx.lookup("queue/testQueue");
>     }
>
> }
>
> test-spydermq:
>      [java] javax.naming.CommunicationException.  Root exception is
java.rmi.UnmarshalException: error unmarshalling return; nested
exception is:
>      [java]     java.io.WriteAbortedException: Writing aborted by
exception; java.io.NotSerializableException: java.net.Socket
>      [java] java.io.WriteAbortedException: Writing aborted by
exception; java.io.NotSerializableException: java.net.Socket
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:445)
>      [java]     at
java.io.ObjectInputStream.inputClassFields(ObjectI
nputStream.java:2262)
>      [java]     at
java.io.ObjectInputStream.defaultReadObject(Object
InputStream.java:519)
>      [java]     at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>      [java]     at
java.io.ObjectInputStream.inputClassFields(ObjectI
nputStream.java:2262)
>      [java]     at
java.io.ObjectInputStream.defaultReadObject(Object
InputStream.java:519)
>      [java]     at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>      [java]     at
java.io.ObjectInputStream.inputClassFields(ObjectI
nputStream.java:2262)
>      [java]     at
java.io.ObjectInputStream.defaultReadObject(Object
InputStream.java:519)
>      [java]     at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>      [java]     at
java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
>      [java]     at
java.io.ObjectInputStream.inputClassFields(ObjectI
nputStream.java:2262)
>      [java]     at
java.io.ObjectInputStream.defaultReadObject(Object
InputStream.java:519)
>      [java]     at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>      [java]     at
java.io.ObjectInputStream.inputClassFields(ObjectI
nputStream.java:2262)
>      [java]     at
java.io.ObjectInputStream.defaultReadObject(Object
InputStream.java:519)
>      [java]     at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>      [java]     at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>      [java]     at
sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:300)
>      [java]     at sun.rmi.server.UnicastRef.inv
oke(UnicastRef.java:134)
>      [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown
Source)
>      [java]     at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
>      [java]     at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
>      [java]     at
javax.naming.InitialContext.lookup(InitialContext.java:350)
>      [java]     at
com.dscape.test.standards.jms.LookupQueFactory.mai
n(LookupQueFactory.java:25)
>
> bash-2.04$ java -jar jndiView.jar -v
> InitialContext
>   +- TopicConnectionFactory (class:
org.spydermq.SpyTopicConnectionFactory)
>   +- XAQueueConnectionFactory (class:
org.spydermq.SpyXAQueueConnectionFactory)
>   +- jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
>   +- UILXAQueueConnectionFactory (class:
org.spydermq.SpyXAQueueConnectionFactory)
>   +- RMIXAQueueConnectionFactory (class:
org.spydermq.SpyXAQueueConnectionFactory)
>   +- RMIQueueConnectionFactory (class:
org.spydermq.SpyQueueConnectionFactory)
>   +- XATopicConnectionFactory (class:
org.spydermq.SpyXATopicConnectionFactory)
>   +- UILXATopicConnectionFactory (class:
org.spydermq.SpyXATopicConnectionFactory)
>   +- RMIXATopicConnectionFactory (class:
org.spydermq.SpyXATopicConnectionFactory)
>   +- RMITopicConnectionFactory (class:
org.spydermq.SpyTopicConnectionFactory)
>   +- TimeBeanViaJMS (class: $Proxy0)
>   +- jmx:succubus-si:rmi (class: org.jboss.jmx.s
erver.RMIConnectorImpl)
>   +- invokers (class: org.jnp.interfaces.NamingContext)
>   |   +- TimeBeanViaJMS (class:
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
>   +- queue (class: org.jnp.interfaces.NamingContext)
>   |   +- A (class: org.spydermq.SpyQueue)
>   |   +- testQueue (class: org.spydermq.SpyQueue)
>   |   +- controlQueue (class: org.spydermq.SpyQueue)
>   |   +- ex (class: org.spydermq.SpyQueue)
>   |   +- E (class: org.spydermq.SpyQueue)
>   |   +- D (class: org.spydermq.SpyQueue)
>   |   +- C (class: org.spydermq.SpyQueue)
>   |   +- B (class: org.spydermq.SpyQueue)
>   +- topic (class: org.jnp.interfaces.NamingContext)
>   |   +- testDurableTopic (class: org.spydermq.SpyTopic)
>   |   +- example (class: org.spydermq.SpyTopic)
>   |   +- testTopic (class: org.spydermq.SpyTopic)
>   |   +- metrics (class: org.spydermq.SpyTopic)
>   |   +- bob (class: org.spydermq.SpyTopic)
>   |   +- beancache (class: org.spydermq.SpyTopic)
>   +- UILQueueConnectionFactory (class:
org.spydermq.SpyQueueConnectionFactory)
>   +- QueueConnectionFactory (class:
org.spydermq.SpyQueueConnectionFactory)
>   +- UILTopicConnectionFactory (class:
org.spydermq.SpyTopicConnectionFactory)


eGroups Sponsor

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]


Reply via email to