8 Replies Latest reply on Jun 26, 2008 2:31 PM by Tim Fox

    Client Connect Fails with

    John Deviney Newbie

      My JMS client fails to connect with the following stack trace:

      [ERROR]@[01 Apr 2008 08:53:33,802] [org.twia.jms.JMSProxy] : connectToJMS() - Exception occured:
      org.jboss.jms.exception.MessagingJMSException: Failed to invoke
      at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:187)
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
      at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
      at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
      at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
      at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
      at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
      at org.twia.jms.JMSProxy.connectToJMS(JMSProxy.java:453)
      at org.twia.jms.JMSProxy.(JMSProxy.java:70)
      at org.twia.jms.JMSProxy.getInstance(JMSProxy.java:64)
      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:585)
      at com.jnbridge.jnbcore.JNBDispatcher.objectStaticCall(Unknown Source)
      at com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)
      at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.a(Unknown Source)
      at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)
      Caused by: java.lang.RuntimeException: Error setting up client lease upon performing connect.
      at org.jboss.remoting.Client.connect(Client.java:1529)
      at org.jboss.remoting.Client.connect(Client.java:462)
      at org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMSRemotingConnection.java:319)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:315)
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:154)
      ... 19 more
      Caused by: java.lang.Exception: Error setting up client lease
      at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:405)
      at org.jboss.remoting.Client.setupClientLease(Client.java:1625)
      at org.jboss.remoting.Client.connect(Client.java:1525)
      ... 24 more
      Caused by: org.jboss.remoting.marshal.InvalidMarshallingResource: Can not find a valid marshaller for data type: jms
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:79)
      at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:373)
      ... 26 more

      My environment includes the following:

      JBoss 4.2.2 with patched JBM 1.4.0 SP3
      Single node, no clustering/failover
      Standalone JMS client
      Java 1.5.0_06 (client and server)

      Client and Server classpaths include the following:

      jboss-messaging-client.jar (1.4.0 SP3)
      jboss-remoting.jar (2.2.2 SP4)
      jboss-aop-jdk50.jar (1.5.6 GA from Jboss 4.2.2)
      trove.jar (? from Jboss 4.2.2)
      javassist.jar (3.6.0 GA from Jboss 4.2.2)


      Client code that fails:

      private void connectToJMS()
      {
      // Check to see if already connected
      if (JMSProxy.connected == true)
      return;

      try
      {
      // Use jndi.properties for configuration
      jndi = new InitialContext();

      // Log the JNDI properties
      if (log.isDebugEnabled())
      {
      Hashtable props = jndi.getEnvironment();
      Enumeration keys = props.keys();
      log.debug("JNDI properties:");
      log.debug("----------------");
      while (keys.hasMoreElements())
      {
      Object key = keys.nextElement();
      log.debug(key.toString() + "=" + props.get(key));
      }
      log.debug("----------------");
      }

      // Get a JMS Connection
      ConnectionFactory cf = getConnectionFactory();
      connection = cf.createConnection(); // <-------------FAILS HERE!!
      connection.start();
      connected = true;

      if (log.isDebugEnabled())
      log.debug("connectToJMS() - connected");
      }
      catch (Exception e)
      {
      JMSProxy.connected = false;
      log.error("connectToJMS() - Exception occured:", e);
      }
      }

      I have successfully run the JBM 1.4.0 queue example against another config so I'm wondering if this is a server-side configuration issue.

      Anyone have any ideas?

      Thanks.

        • 1. Re: Client Connect Fails with
          Jeff Mesnil Master

           

          "jhd" wrote:
          My JMS client fails to connect with the following stack trace:

          ...
          Caused by: java.lang.Exception: Error setting up client lease
          at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:405)
          at org.jboss.remoting.Client.setupClientLease(Client.java:1625)
          at org.jboss.remoting.Client.connect(Client.java:1525)
          ... 24 more
          Caused by: org.jboss.remoting.marshal.InvalidMarshallingResource: Can not find a valid marshaller for data type: jms
          at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:79)
          at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:373)
          ... 26 more

          ...

          Anyone have any ideas?


          It seems that our configuration for jboss-remoting is broken.
          You should double-check it (remoting-bisocket-service.xml) and be sure that you use the correct configuration for JBoss Messaging[1]

          hope it helps,
          jeff

          [1] the warning just above http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.0.SP3/html/installation.html#install.extra-steps

          • 2. Re: Client Connect Fails with
            Jeff Mesnil Master

             

            "jmesnil" wrote:

            It seems that our configuration for jboss-remoting is broken.


            I meant *your* configuration.


            • 3. Re: Client Connect Fails with
              John Deviney Newbie

              Jeff,

              I've been through the JBM 1.4.0 SP3 installation instructions. My jboss-remoting.jar is the patched version, 2.2.2 SP4. Also, on the client jboss-remoting is before jbossall-client.jar in the classpath. I might also add that I have a strictly server-side JMS use case that executes without errors using the same JBM deployment.

              Thanks.

              John

              • 4. Re: Client Connect Fails with
                John Deviney Newbie

                Here is my remoting-bisocket-service.xml file. I'm using the file "as is" from JBM 1.4.0 SP3.

                <server>
                
                 <!-- Standard bisocket connector - the bisocket transport only opens connection from client->server
                 so can be used with firewalls where only outgoing connections are allowed.
                 For examples of HTTP and SSL transports see docs/examples -->
                 <mbean code="org.jboss.remoting.transport.Connector"
                 name="jboss.messaging:service=Connector,transport=bisocket"
                 display-name="Bisocket Transport Connector">
                 <attribute name="Configuration">
                 <config>
                 <invoker transport="bisocket">
                
                 <!-- There should be no reason to change these parameters - warning!
                 Changing them may stop JBoss Messaging working correctly -->
                 <attribute name="marshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
                 <attribute name="unmarshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
                 <attribute name="dataType" isParam="true">jms</attribute>
                 <attribute name="socket.check_connection" isParam="true">false</attribute>
                 <attribute name="timeout" isParam="true">0</attribute>
                 <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
                 <attribute name="serverBindPort">4457</attribute>
                 <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
                 <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
                 <attribute name="numberOfCallRetries" isParam="true">1</attribute>
                 <attribute name="pingFrequency" isParam="true">214748364</attribute>
                 <attribute name="pingWindowFactor" isParam="true">10</attribute>
                 <attribute name="onewayThreadPool">org.jboss.jms.server.remoting.DirectThreadPool</attribute>
                 <!-- End immutable parameters -->
                
                 <!-- Periodicity of client pings. Server window by default is twice this figure -->
                 <attribute name="clientLeasePeriod" isParam="true">10000</attribute>
                
                 <!-- Number of seconds to wait for a connection in the client pool to become free -->
                 <attribute name="numberOfRetries" isParam="true">10</attribute>
                
                 <!-- Max Number of connections in client pool. This should be significantly higher than
                 the max number of sessions/consumers you expect -->
                 <attribute name="JBM_clientMaxPoolSize" isParam="true">200</attribute>
                
                 <!-- Use these parameters to specify values for binding and connecting control connections to
                 work with your firewall/NAT configuration
                 <attribute name="secondaryBindPort">xyz</attribute>
                 <attribute name="secondaryConnectPort">abc</attribute>
                 -->
                
                 </invoker>
                 <handlers>
                 <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
                 </handlers>
                 </config>
                 </attribute>
                 </mbean>
                
                </server>
                



                I'm not sure what should change here if anything.



                • 5. Re: Client Connect Fails with
                  John Deviney Newbie

                  I finally have this narrowed to a classpath problem. I know what's causing it but I'm clueless as to how to solve it.

                  I can successfully run a pure Java queue test example with the following classpath:

                   <path id="execution.classpath">
                  
                   <fileset file="./lib/jboss-messaging-client.jar"/>
                   <fileset file="./lib/jboss-remoting.jar"/>
                   <fileset file="./lib/jbossall-client.jar"/>
                   <fileset file="./lib/thirdPartyTools.jar"/>
                   <fileset file="./lib/log4j-1.2.14.jar"/>
                   <fileset file="./lib/javassist.jar"/>
                   <fileset file="./lib/jboss-aop-jdk50.jar"/>
                   <fileset file="./lib/trove.jar"/>
                   <fileset file="./lib/client.jar"/>
                  
                   <pathelement path="./lib"/>
                   <pathelement path="../common/output/classes"/>
                   <pathelement path="./output/classes"/>
                  
                   </path>
                  


                  This tells me my server-side config is ok.

                  Where I am running into trouble is my java client runs as a jvm inside of a .Net application using Jnbridge in a shared memory configuration. Using the shared memory configuration forces me to load at least some jboss classes prepended to the bootclasspath (jbossall-client.jar). Having jbossall-client.jar in the bootclasspath is causing class loading issues with the JMS related libs. Given my client-side deployment constraints with Jnbridge I have no choice but to load at least some Jboss classes (jbossall-client.jar) in the bootclasspath. I've tried many combinations of placing JMS, AOP, remoting, etc. jars ahead of jbossall-client. I've also tried slimming jbossall-client.jar down. Fixing one classpath issue seems to always cause another.

                  Here is my latest client-side config:

                   <jnbridge>
                   <dotNetToJavaConfig
                   scheme="sharedmem"
                   jvm="E:/jdk1.5.0_06/jre/bin/client/jvm.dll"
                   jnbcore="../../depends/java/jnbcore.jar"
                   bcel="../../depends/java/bcel-5.1-jnbridge.jar"
                   classpath="../../depends/java;../../depends/java/jboss-messaging-client.jar;../../depends/java/jboss-remoting.jar;../../depends/java/jbossall-client.jar;../../depends/java/javassist.jar;../../depends/java/jboss-aop-jdk50.jar;../../depends/java/trove.jar;../../depends/java/thirdPartyTools.jar;../../depends/java/hibernate3-twia.jar;../../depends/java/commons-logging.jar;../../depends/java/commons-collections.jar;../../depends/java/common.jar;../../depends/java/tbot-system.jar;../../depends/java/tbot-ejb.jar;../../depends/java/client.jar;../../depends/java/tbot-test.jar;../../depends/java/thirdPartyToolsExt.jar;../../depends/java/commons-validator-1.1.4.jar;../../depends/java/commons-beanutils.jar;../../depends/java/cglib.jar;../../depends/java/log4j-1.2.14.jar"
                   jvmOptions.0="-Xbootclasspath/p:../../depends/java/jboss-remoting.jar;../../depends/java/thirdPartyTools.jar;../../depends/java/jboss-aop-jdk50.jar;../../depends/java/trove.jar;../../depends/java/jboss-messaging-client.jar;../../depends/java/javassist.jar;../../depends/java/jbossall-client.jar"
                   jvmOptions.1="-Xms128m"
                   jvmOptions.2="-Xmx256m"
                   jvmOptions.3="-Djava.security.auth.login.config=file:../../depends/java/auth.conf"
                   jvmOptions.4="-Dapp.home=../../depends/java"
                   jvmOptions.5="-DUMMY"
                   jvmOptions.6="-DUMMY"
                   jvmOptions.7="-DUMMY"
                   jvmOptions.8="-DUMMY"
                   jvmOptions.9="-DUMMY"
                   />
                   </jnbridge>
                  


                  This causes the following stack trace when attempting to create a JMS connection:

                  [WARN]@[02 Apr 2008 10:45:50,709] [org.jboss.messaging.util.Version] : Unable to read version info: null
                  [ERROR]@[02 Apr 2008 10:45:50,881] [org.jboss.jms.client.JBossConnectionFactory] : Failed to download and/or install client side AOP stack
                  java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                   at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:892)
                   at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:877)
                   at org.jboss.jms.client.container.JmsClientAspectXMLLoader.deployXML(JmsClientAspectXMLLoader.java:93)
                   at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:77)
                   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 org.twia.jms.JMSProxy.connectToJMS(JMSProxy.java:453)
                   at org.twia.jms.JMSProxy.<init>(JMSProxy.java:70)
                   at org.twia.jms.JMSProxy.getInstance(JMSProxy.java:64)
                   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:585)
                   at com.jnbridge.jnbcore.JNBDispatcher.objectStaticCall(Unknown Source)
                   at com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)
                   at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.a(Unknown Source)
                   at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)
                  Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                   at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:979)
                   at org.jboss.aop.Advisor.newBindingAdded(Advisor.java:485)
                   at org.jboss.aop.AspectManager.updateAdvisorsForAddedBinding(AspectManager.java:1413)
                   at org.jboss.aop.AspectManager.addBinding(AspectManager.java:1382)
                   at org.jboss.aop.AspectXmlLoader.deployBinding(AspectXmlLoader.java:286)
                   at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1038)
                   at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:886)
                   ... 17 more
                  Caused by: java.lang.RuntimeException: java.lang.NullPointerException
                   at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:72)
                   at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:618)
                   at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:888)
                   at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:650)
                   at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
                   at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:974)
                   ... 23 more
                  Caused by: java.lang.NullPointerException
                   at org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport.loadClass(AspectFactoryWithClassLoaderSupport.java:85)
                   at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:137)
                   at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFactory.java:152)
                   at org.jboss.aop.AspectManager.createPerVmAspect(AspectManager.java:1746)
                   at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1728)
                   at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1718)
                   at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:55)
                   at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:68)
                   ... 28 more
                  [ERROR]@[02 Apr 2008 10:45:50,897] [org.twia.jms.JMSProxy] : connectToJMS() - Exception occured:
                  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 org.twia.jms.JMSProxy.connectToJMS(JMSProxy.java:453)
                   at org.twia.jms.JMSProxy.<init>(JMSProxy.java:70)
                   at org.twia.jms.JMSProxy.getInstance(JMSProxy.java:64)
                   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:585)
                   at com.jnbridge.jnbcore.JNBDispatcher.objectStaticCall(Unknown Source)
                   at com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)
                   at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.a(Unknown Source)
                   at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)
                  Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                   at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:892)
                   at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:877)
                   at org.jboss.jms.client.container.JmsClientAspectXMLLoader.deployXML(JmsClientAspectXMLLoader.java:93)
                   at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:77)
                   at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)
                   ... 13 more
                  Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                   at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:979)
                   at org.jboss.aop.Advisor.newBindingAdded(Advisor.java:485)
                   at org.jboss.aop.AspectManager.updateAdvisorsForAddedBinding(AspectManager.java:1413)
                   at org.jboss.aop.AspectManager.addBinding(AspectManager.java:1382)
                   at org.jboss.aop.AspectXmlLoader.deployBinding(AspectXmlLoader.java:286)
                   at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1038)
                   at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:886)
                   ... 17 more
                  Caused by: java.lang.RuntimeException: java.lang.NullPointerException
                   at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:72)
                   at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:618)
                   at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:888)
                   at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:650)
                   at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
                   at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:974)
                   ... 23 more
                  Caused by: java.lang.NullPointerException
                   at org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport.loadClass(AspectFactoryWithClassLoaderSupport.java:85)
                   at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:137)
                   at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFactory.java:152)
                   at org.jboss.aop.AspectManager.createPerVmAspect(AspectManager.java:1746)
                   at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1728)
                   at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1718)
                   at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:55)
                   at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:68)
                   ... 28 more
                  


                  Given that I have to have at least a subset of jbossall-client.jar in the bootclasspath to be able to perform JNDI lookups and get a remote EJB stub ... what can I do to get JMS working?

                  Any help is appreciated.

                  John

                  • 6. Re: Client Connect Fails with
                    John Deviney Newbie

                    I tried replacing jbossall-client.jar with individual client jars. Ultimately I end up at the same place.

                    Updated client jvm config:

                     <jnbridge>
                     <dotNetToJavaConfig
                     scheme="sharedmem"
                     jvm="E:/jdk1.5.0_06/jre/bin/client/jvm.dll"
                     jnbcore="../../depends/java/jnbcore.jar"
                     bcel="../../depends/java/bcel-5.1-jnbridge.jar"
                     classpath="../../depends/java;../../depends/java/hibernate3-twia.jar;../../depends/java/commons-logging.jar;../../depends/java/commons-collections.jar;../../depends/java/common.jar;../../depends/java/tbot-system.jar;../../depends/java/tbot-ejb.jar;../../depends/java/client.jar;../../depends/java/tbot-test.jar;../../depends/java/thirdPartyToolsExt.jar;../../depends/java/commons-validator-1.1.4.jar;../../depends/java/commons-beanutils.jar;../../depends/java/cglib.jar"
                     jvmOptions.0="-Xbootclasspath/p:../../depends/java/jboss-remoting.jar;../../depends/java/jboss-messaging-client.jar;../../depends/java/javassist.jar;../../depends/java/jboss-aop-jdk50.jar;../../depends/java/jboss-aspect-library-jdk50.jar;../../depends/java/trove.jar;../../depends/java/thirdPartyTools.jar;../../depends/java/jboss-client.jar;../../depends/java/jboss-j2ee.jar;../../depends/java/jbosssx-client.jar;../../depends/java/jboss-common-client.jar;../../depends/java/jnp-client.jar;../../depends/java/jboss-serialization.jar;../../depends/java/concurrent.jar;../../depends/java/jboss-transaction-client.jar;../../depends/java/log4j-1.2.14.jar"
                     jvmOptions.1="-Xms128m"
                     jvmOptions.2="-Xmx256m"
                     jvmOptions.3="-Djava.security.auth.login.config=file:../../depends/java/auth.conf"
                     jvmOptions.4="-Dapp.home=../../depends/java"
                     jvmOptions.5="-DUMMY"
                     jvmOptions.6="-DUMMY"
                     jvmOptions.7="-DUMMY"
                     jvmOptions.8="-DUMMY"
                     jvmOptions.9="-DUMMY"
                     />
                     </jnbridge>
                    


                    The remoting, messaging and aop related jars are first in the bootclasspath before all other jboss client jars and I still end up with the same error.

                    Corresponding stack trace:

                    [WARN]@[02 Apr 2008 15:06:44,400] [org.jboss.messaging.util.Version] : Unable to read version info: null
                    [ERROR]@[02 Apr 2008 15:06:44,603] [org.jboss.jms.client.JBossConnectionFactory] : Failed to download and/or install client side AOP stack
                    java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:892)
                     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:877)
                     at org.jboss.jms.client.container.JmsClientAspectXMLLoader.deployXML(JmsClientAspectXMLLoader.java:93)
                     at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:77)
                     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 org.twia.jms.JMSProxy.connectToJMS(JMSProxy.java:453)
                     at org.twia.jms.JMSProxy.<init>(JMSProxy.java:70)
                     at org.twia.jms.JMSProxy.getInstance(JMSProxy.java:64)
                     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:585)
                     at com.jnbridge.jnbcore.JNBDispatcher.objectStaticCall(Unknown Source)
                     at com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)
                     at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.a(Unknown Source)
                     at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)
                    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                     at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:979)
                     at org.jboss.aop.Advisor.newBindingAdded(Advisor.java:485)
                     at org.jboss.aop.AspectManager.updateAdvisorsForAddedBinding(AspectManager.java:1413)
                     at org.jboss.aop.AspectManager.addBinding(AspectManager.java:1382)
                     at org.jboss.aop.AspectXmlLoader.deployBinding(AspectXmlLoader.java:286)
                     at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1038)
                     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:886)
                     ... 17 more
                    Caused by: java.lang.RuntimeException: java.lang.NullPointerException
                     at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:72)
                     at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:618)
                     at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:888)
                     at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:650)
                     at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
                     at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:974)
                     ... 23 more
                    Caused by: java.lang.NullPointerException
                     at org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport.loadClass(AspectFactoryWithClassLoaderSupport.java:85)
                     at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:137)
                     at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFactory.java:152)
                     at org.jboss.aop.AspectManager.createPerVmAspect(AspectManager.java:1746)
                     at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1728)
                     at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1718)
                     at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:55)
                     at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:68)
                     ... 28 more
                    [ERROR]@[02 Apr 2008 15:06:44,603] [org.twia.jms.JMSProxy] : connectToJMS() - Exception occured:
                    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 org.twia.jms.JMSProxy.connectToJMS(JMSProxy.java:453)
                     at org.twia.jms.JMSProxy.<init>(JMSProxy.java:70)
                     at org.twia.jms.JMSProxy.getInstance(JMSProxy.java:64)
                     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:585)
                     at com.jnbridge.jnbcore.JNBDispatcher.objectStaticCall(Unknown Source)
                     at com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)
                     at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.a(Unknown Source)
                     at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)
                    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:892)
                     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:877)
                     at org.jboss.jms.client.container.JmsClientAspectXMLLoader.deployXML(JmsClientAspectXMLLoader.java:93)
                     at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:77)
                     at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)
                     ... 13 more
                    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
                     at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:979)
                     at org.jboss.aop.Advisor.newBindingAdded(Advisor.java:485)
                     at org.jboss.aop.AspectManager.updateAdvisorsForAddedBinding(AspectManager.java:1413)
                     at org.jboss.aop.AspectManager.addBinding(AspectManager.java:1382)
                     at org.jboss.aop.AspectXmlLoader.deployBinding(AspectXmlLoader.java:286)
                     at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1038)
                     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:886)
                     ... 17 more
                    Caused by: java.lang.RuntimeException: java.lang.NullPointerException
                     at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:72)
                     at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:618)
                     at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:888)
                     at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:650)
                     at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
                     at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:974)
                     ... 23 more
                    Caused by: java.lang.NullPointerException
                     at org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport.loadClass(AspectFactoryWithClassLoaderSupport.java:85)
                     at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:137)
                     at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFactory.java:152)
                     at org.jboss.aop.AspectManager.createPerVmAspect(AspectManager.java:1746)
                     at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1728)
                     at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1718)
                     at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:55)
                     at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:68)
                     ... 28 more
                    


                    Why does use of bootclasspath cause this problem?

                    • 7. Re: Client Connect Fails with
                      Malert Jones Newbie

                      Try adding jboss-aop-jdk50-client.jar in JBOSS_HOME/client directory and restart the server

                      • 8. Re: Client Connect Fails with
                        Tim Fox Master

                        The user guide install section explains exactly what jars you need, where to get them from, and which order they should appear on the classpath.