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

Darran Lofthouse (JIRA) issues at jboss.org
Wed Apr 1 12:42:19 EDT 2015


     [ https://issues.jboss.org/browse/REMJMX-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse resolved REMJMX-91.
------------------------------------
    Resolution: Done


> 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
>          Components: Notifications
>    Affects Versions: 2.0.1.CR1
>            Reporter: Bryan Varner
>            Assignee: Darran Lofthouse
>             Fix For: 2.0.1.CR2
>
>
> 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.11#6341)


More information about the jboss-jira mailing list