6 Replies Latest reply on Jul 21, 2009 12:34 AM by Ron Sigal

    Problem with remote JBM access from applet running on conflu

    Peter Ang Newbie

      Hi,
      I encountered problem in making remote JBM connection to jboss-5.0.0.GA from an applet client that is residing inside atlassian confluence 2.7.3. Somehow, the problem is related to MarshallerEditor.class.
      Below is the Java Console's Log:

      [aop-trace] org.jboss.util.propertyeditor.PropertyEditors Mapping properties for bean: SocketClientInvoker[9d8ab8, bisocket://192.168.2.118:4457]
      [aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: pingFrequency, editor: java.beans.PropertyDescriptor@7ca65360, setter: public void org.jboss.remoting.transport.bisocket.BisocketClientInvoker.setPingFrequency(int)
      [aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: numberOfCallRetries, editor: java.beans.PropertyDescriptor@60366bd6, setter: public void org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setNumberOfCallRetries(int)
      [aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: marshaller, editor: java.beans.PropertyDescriptor@78a439ee, setter: public void org.jboss.remoting.MicroRemoteClientInvoker.setMarshaller(org.jboss.remoting.marshal.Marshaller)
      network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/remoting/marshal/MarshallerEditor.class, version: null]
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/remoting/marshal/MarshallerEditor.class with proxy=DIRECT
      network: Connecting http://localhost:8090/ with proxy=DIRECT
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/remoting/marshal/MarshallerEditor.class with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
      network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/remoting/marshal/MarshallerEditor.class, version: null]
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/remoting/marshal/MarshallerEditor.class with proxy=DIRECT
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/remoting/marshal/MarshallerEditor.class with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
      network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/util/propertyeditor/MarshallerEditor.class, version: null]
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/util/propertyeditor/MarshallerEditor.class with proxy=DIRECT
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/util/propertyeditor/MarshallerEditor.class with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
      network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/util/propertyeditor/MarshallerEditor.class, version: null]
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/util/propertyeditor/MarshallerEditor.class with proxy=DIRECT
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/util/propertyeditor/MarshallerEditor.class with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
      network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/mx/util/propertyeditor/MarshallerEditor.class, version: null]
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/mx/util/propertyeditor/MarshallerEditor.class with proxy=DIRECT
      network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMTestAppletMacro/JBMAppletResources/org/jboss/mx/util/propertyeditor/MarshallerEditor.class with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
      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 mytest.JBMTestApplet.invokeJMS(JBMTestApplet.java:77)
      at mytest.JBMTestApplet$1.actionPerformed(JBMTestApplet.java:39)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      Caused by: org.jboss.jms.exception.MessagingNetworkFailureException: Failed to connect client
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:313)
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:232)
      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)
      ... 28 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:450)
      at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:349)
      at org.jboss.remoting.Client.connect(Client.java:495)
      at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:309)
      ... 32 more
      Caused by: java.lang.ClassFormatError: Truncated class file
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.beans.Introspector.instantiate(Unknown Source)
      at java.beans.PropertyEditorManager.findEditor(Unknown Source)
      at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:369)
      at org.jboss.remoting.util.SecurityUtility$29.run(SecurityUtility.java:819)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.remoting.util.SecurityUtility.mapJavaBeanProperties(SecurityUtility.java:815)
      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:491)
      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvoker.java:270)
      at org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:75)
      at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.(BisocketClientInvoker.java:161)
      at org.jboss.remoting.transport.bisocket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:44)
      ... 40 more