[jboss-jira] [JBoss JIRA] (REMJMX-91) AddNotificationListener is serializing the handback object to the server -- causing ClassNotFoundExceptions.

Bryan Varner (JIRA) issues at jboss.org
Thu Nov 13 15:07:29 EST 2014


Bryan Varner created REMJMX-91:
----------------------------------

             Summary: AddNotificationListener is serializing the handback object to the server -- causing ClassNotFoundExceptions.
                 Key: REMJMX-91
                 URL: https://issues.jboss.org/browse/REMJMX-91
             Project: Remoting JMX
          Issue Type: Bug
            Reporter: Bryan Varner
            Assignee: Darran Lofthouse


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?



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list