Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1787

Twiddle gives StreamCorruptionException when invoking custom MBeans

    Details

      Description

      It appears that when using twiddle.sh or twiddle.bat to invoke methods on my custom MBeans I get the following exception (see below). When invoking these methods from the JMX-console, everything works fine.
      If I invoke JBoss MBean methods then twiddle works fine. It only seems to fail on my MBeans, for invoke and info command. Other commands appear to work fine.

      22:31:49,484 ERROR [Twiddle] Exec failed
      java.io.StreamCorruptedException: Null descriptor?
      at javax.management.modelmbean.DescriptorSupport.readObject(DescriptorSupport.java:673)
      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:324)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.access$300(ObjectInputStream.java:166)
      at java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2006)
      at java.io.ObjectInputStream.readFields(ObjectInputStream.java:491)
      at javax.management.modelmbean.ModelMBeanAttributeInfo.readObject(ModelMBeanAttributeInfo.java:278)
      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:324)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:119)
      at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:163)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:103)
      at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:51)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
      at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91)
      at $Proxy0.getMBeanInfo(Unknown Source)
      at org.jboss.console.twiddle.command.InvokeCommand.invoke(InvokeCommand.java:166)
      at org.jboss.console.twiddle.command.InvokeCommand.execute(InvokeCommand.java:270)
      at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:288)

        Gliffy Diagrams

          Attachments

          1. backport-util-concurrent.jar
            185 kB
          2. boyscout-src.jar
            18 kB
          3. commons-lang-2.0.jar
            166 kB
          4. event-manager-src.jar
            54 kB
          5. event-mapper-src.jar
            54 kB
          6. JBAS-1787-Example.zip
            464 kB

            Activity

              People

              • Assignee:
                dimitris Dimitris Andreadis
                Reporter:
                odigokid Corey M. Ellis
              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: