[
http://jira.jboss.com/jira/browse/JBAS-4323?page=comments#action_12359044 ]
Magesh Kumar B commented on JBAS-4323:
--------------------------------------
The attached policy file works around the issue of getMBeanInfo as well as getAttributes
of RMIAdaptor throwing NotSerializableException.
<!-- Interceptor that deals with non-serializable results -->
<interceptor
code="org.jboss.jmx.connector.invoker.SerializableInterceptor"
policyClass="StripNonSerializableInfoPolicy"/>
XMBean Interceptor for InvokerAdaptorService to deal with
NonSerializableExceptions - twiddle getAttributes
-----------------------------------------------------------------------------------------------------------
Key: JBAS-4323
URL:
http://jira.jboss.com/jira/browse/JBAS-4323
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Management services
Environment: jmx, twiddle
Reporter: Magesh Kumar B
Assigned To: Dimitris Andreadis
Attachments: StripNonSerializableInfoPolicy.java
When you run twiddle after applying the JBAS-1955 patch we still get the following
error:
./twiddle.sh get
"jboss.web:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/"
logger
11:10:52,929 ERROR [Twiddle] Exec failed
java.io.NotSerializableException: org.apache.log4j.Level
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
......
--
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