[jboss-jira] [JBoss JIRA] Reopened: (JBAS-1787) Twiddle gives StreamCorruptionException when invoking custom MBeans
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Wed Jun 11 10:39:16 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-1787?page=all ]
Dimitris Andreadis reopened JBAS-1787:
--------------------------------------
> Twiddle gives StreamCorruptionException when invoking custom MBeans
> -------------------------------------------------------------------
>
> Key: JBAS-1787
> URL: http://jira.jboss.com/jira/browse/JBAS-1787
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: JBossAS-4.0.2 Final, JBossAS-4.0.1 SP1
> Environment: Problem seen on Windows XP and AIX 5.3
> Reporter: Corey Ellis
> Assigned To: Dimitris Andreadis
> Fix For: JBossAS-3.2.8RC1, JBossAS-4.0.3RC1, JBossAS-4.0.3RC2, JBossAS-5.0.0.CR1
>
> Attachments: backport-util-concurrent.jar, boyscout-src.jar, commons-lang-2.0.jar, event-manager-src.jar, event-mapper-src.jar, JBAS-1787-Example.zip
>
>
> 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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list