I have downloaded the 1.0.1.CR2 release. I have the jboss-messaging-client.jar from this release in my classpath. However on running this code I get the following error.

ERROR [main] (JBossConnectionFactory.java:251) - Failed to config client side AOP
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:367)
at org.jboss.remoting.Client.connect(Client.java:377)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:184)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:234)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:197)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:109)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:104)
at polygraph.PolygraphMessageProducer.main(PolygraphMessageProducer.java:31)
Caused by: java.lang.NoSuchMethodError: org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(Ljava/lang/Object;Ljava/util/Properties;Z)V
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:135)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:118)
at org.jboss.remoting.transport.socket.SocketClientInvoker.<init>(SocketClientInvoker.java:108)
... 14 more
java.lang.RuntimeException: Failed to config client side AOP
at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:252)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:197)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:109)
at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:104)
at polygraph.PolygraphMessageProducer.main(PolygraphMessageProducer.java:31)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:367)
at org.jboss.remoting.Client.connect(Client.java:377)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:184)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:234)
... 4 more
Caused by: java.lang.NoSuchMethodError: org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(Ljava/lang/Object;Ljava/util/Properties;Z)V
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:135)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:118)
at org.jboss.remoting.transport.socket.SocketClientInvoker.<init>(SocketClientInvoker.java:108)
... 14 more

If I replace this jar file with a jboss-messaging-client.jar from the CR1 download directory then I get

Exception in thread "main" java.lang.NoSuchMethodError: org.jboss.aop.ClassAdvisor.access$300(Lorg/jboss/aop/ClassAdvisor;)V
at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:299)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:209)
at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:459)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.<clinit>(ClientConnectionFactoryDelegate.java)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
at java.lang.reflect.Field.getLong(Unknown Source)
at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
at java.io.ObjectStreamClass.access$600(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(Unknown Source)
at polygraph.PolygraphMessageProducer.main(PolygraphMessageProducer.java:26)

I also have the jbossall-client.jar file in my classpath. I am running a messaging configuration with the JBOSS server.

Yes it is a stand alone client. It seems changing the order of jbossall-client.jar and jboss-messaging-client.jar helped upto some extent. Now there's no exception nothing however my client simply hangs. It gets through "Looking up queue::" step and that's about it.

Sorry hit submit too fast. On the server I can see errors of this sort.

java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at java.io.FilterInputStream.read(FilterInputStream.java:66) at org.jboss.serial.io.JBossObjectInputStream.read(JBossObjectInputStream.java:126) at org.jboss.remoting.transport.socket.ServerThread.readVersion(ServerThread.java:464) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:381) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:484) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:240)10:12:46,350 ERROR [ServerThread] failed to process invocation.

I am able to resolve the exception i posted in the previous message reading another post which suggested placing jboss-messaging-client.jar in server/server-name/lib folder.

However, I have another problem looking up an XA Connection factory from a jms client.

Heres my configuration.Iam using jboss-4.0.3SP1 with jboss-messaging-1.0.1CR2. There is a requirement in my project that I configure a JMS XAConnectionFactory. I have configured the xa connection factory using JMSRA as instructed in wiki pages. These are the entries wmxjms-ds.xml which i have placed in deploy folder.

At server startup I can see the prints 14:30:43,296 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=WMXQueueConnectionFactory,servic e=ConnectionFactoryBinding' to JNDI name 'WMXQueueConnectionFactory'

So I believe, the connection factory is correctly configurred. Now, when I am trying to lookup WMXQueueConnectionFactory from a stand alone jms client, lookup returns a "null". I have only jboss-messaging-client.jar in my classpath. Is there any configuration that I have done wrong ? I read in jboss wiki that by setting <use-java-context>false</use-java-context>, a jms client program running outside the jms context can lookup using the jndi name. However I am unable to do so. Any help in resolving this issue will be greatly appreciated