You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Oliver Bates (JIRA)" <ji...@apache.org> on 2017/01/09 19:27:58 UTC

[jira] [Updated] (SOLR-9949) Non-serializable AlreadyClosedException returned by MBeanServer

     [ https://issues.apache.org/jira/browse/SOLR-9949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Bates updated SOLR-9949:
-------------------------------
    Attachment: SOLR-9949.diff

> Non-serializable AlreadyClosedException returned by MBeanServer
> ---------------------------------------------------------------
>
>                 Key: SOLR-9949
>                 URL: https://issues.apache.org/jira/browse/SOLR-9949
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: JMX
>    Affects Versions: 4.8
>            Reporter: Oliver Bates
>            Priority: Minor
>             Fix For: 5.3.1
>
>         Attachments: SOLR-9949.diff
>
>
> Solr JMX monitoring agent is throwing InvalidClassException when trying to deserialize AlreadyClosedException thrown by Solr during JMX stat fetching.
> Stack trace:
> org.apache.lucene.store.AlreadyClosedException; local class incompatible: stream classdesc serialVersionUID = 5608155941692732578, local class serialVersionUID = -1978883495828278874"
> java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: 
>     java.io.InvalidClassException: org.apache.lucene.store.AlreadyClosedException; local class incompatible: stream classdesc serialVersionUID = 5608155941692732578, local class serialVersionUID = -1978883495828278874"
> The serialVersionUID value computed by java at runtime changed when a new constructor was added with a 'cause' field.
> AlreadyClosedExceptions can be thrown by the MBean server if a remote instance is trying to access stats on a recently deleted core for instance. In this case, the exception is serialized/deserialized by the MBean handler which can cause InvalidClassExceptions if the monitoring service is using a different version of lucene. Since Lucene doesn't want to implement Serializable, these exceptions should be propagated up to the MBeanServer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org