Oliver Bates created SOLR-9949:
----------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]