Uploaded image for project: 'Remoting JMX'
  1. Remoting JMX
  2. REMJMX-91

AddNotificationListener is serializing the handback object to the server -- causing ClassNotFoundExceptions.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.1.CR2
    • 2.0.1.CR1
    • Notifications
    • None

      I have a client using a handback object when events are received from remote JMX servers.

      The handback is a local object instance used in the client, and should be operated on as part of handling specific types of notifications. Rather than scoping this thing in my code all over the place, it was much easier to include it as a handback.

      This works perfectly with the Oracle RMI client. When I try to use this code against JBoss remoting servers, I get (burried) ClassNotFound Exceptions referencing the name of my class.

      It appears that ClientConnection is sending serialized copies of the handback object to the server when a notificationListener is added... but why?

      https://github.com/jbossas/remoting-jmx/blob/master/src/main/java/org/jboss/remotingjmx/protocol/v2/ClientConnection.java#L1147

      Shouldn't the handback be local to the client?

              darran.lofthouse@redhat.com Darran Lofthouse
              bvarner_jira Bryan Varner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: