Failed to download and/or install client side AOP stack
monk2005 Oct 22, 2007 9:03 AMHello All,
Some one must've hit this problem - seems like configuration issue. Here it goes.
OS: WinXP
Java: 1.6
JBoss AS: 4.2.1 GA
JBM: 1.4.0.GA
When JMS over HTTPS is used locally (Clent and the server reside on the same machine) it works. When client is on another machine it fails and get the following error:
java.lang.RuntimeException: Failed to download and/or install client side AOP stack at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:199) at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87) at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82) at com.lmco.spv.jms.testers.JBossMessagingTester.main(JBossMessagingTester.java:49) Caused by: org.jboss.jms.exception.MessagingNetworkFailureException: Failed to connect client at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:304) at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:228) at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java) at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75) at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192) ... 3 more Caused by: java.lang.reflect.InvocationTargetException 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:597) at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:419) at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:320) at org.jboss.remoting.Client.connect(Client.java:441) at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:300) ... 7 more Caused by: java.lang.NullPointerException at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.createSocketFactory(HTTPSClientInvoker.java:144) at org.jboss.remoting.RemoteClientInvoker.<init>(RemoteClientInvoker.java:46) at org.jboss.remoting.transport.http.HTTPClientInvoker.<init>(HTTPClientInvoker.java:105) at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.<init>(HTTPSClientInvoker.java:63) at org.jboss.remoting.transport.https.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39) ... 15 more Failed to download and/or install client side AOP stack org.jboss.jms.exception.MessagingNetworkFailureException: Failed to connect client at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:304) at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:228) at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java) at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75) at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192) at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87) at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82) at com.lmco.spv.jms.testers.JBossMessagingTester.main(JBossMessagingTester.java:49) Caused by: java.lang.reflect.InvocationTargetException 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:597) at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:419) at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:320) at org.jboss.remoting.Client.connect(Client.java:441) at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:300) ... 7 more Caused by: java.lang.NullPointerException at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.createSocketFactory(HTTPSClientInvoker.java:144) at org.jboss.remoting.RemoteClientInvoker.<init>(RemoteClientInvoker.java:46) at org.jboss.remoting.transport.http.HTTPClientInvoker.<init>(HTTPClientInvoker.java:105) at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.<init>(HTTPSClientInvoker.java:63) at org.jboss.remoting.transport.https.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39) ... 15 more
The test code is as follows:
package com.spv.jms.testers; import java.util.Properties; import javax.naming.Context; import javax.naming.InitialContext; import javax.jms.*; public class JBossMessagingTester { public static void main(String args[]) throws Exception { Properties env = new Properties(); env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory"); env.setProperty(Context.PROVIDER_URL, "https://mtngt4fv1:443/invoker/JNDIFactorySSL"); Connection conn = null; try { Context ctx = new InitialContext(env); System.out.println("Created InitialContext, env= " + env); //looking up JMS connection factory over HTTPs ConnectionFactory connectionFactory = (ConnectionFactory)ctx.lookup("HTTPSConnectionFactory"); System.out.println("connectionFactory= " + connectionFactory.toString()); Destination queue = (Destination)ctx.lookup("queue/A"); conn = connectionFactory.createConnection(); Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = session.createProducer(queue); Message m = session.createTextMessage(new String("wazzaaa??!")); producer.send(m); }catch(Exception e){ e.printStackTrace(); }finally{ if(conn != null) conn.close(); } } }
This thread talks about it but didn't quite work for moi.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116748
Any help in this matter immensely appreciated.
Thanks