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

XMBean Interceptor for InvokerAdaptorService to deal with NonSerializableExceptions

    XMLWordPrintable

Details

    Description

      This patch add a Interceptor to org.jboss.jmx.connector.invoker.InvokerAdaptorService besides AuthenticationInterceptor that is responsable for prevent remote clients to launch NonSerializable exception.

      The interception have 3 types of action: Invisible, Null and Wrapper.

      In the Invisible mode all NonSerializable fields are ignored so if you call getMBeanInfo all NonSerializable will be remove and returned to your remote client(twiddle, MC4J, etc). This mode is more tested so it is recommended.

      In the null mode NonSerializable fields are visible but always return Null.

      The wraper mode is not implemented, but the idea is replace the NonSerializable Class for another

      The interceptor is only a class. The tests are in the patch too. Only test for invisible mode. I´m still doing tests for the other modes.

      Any idea is very appreciated. I dont have sufficient time to work more in this code. But I hope to do soon.

      Attachments

        Issue Links

          Activity

            People

              dandread1@redhat.com Dimitrios Andreadis
              fabcipriano_jira Fabiano C. de Oliveira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 3 hours
                  3d 3h