[infinispan-issues] [JBoss JIRA] (ISPN-9016) Component metadata serialization format changes depending on compiler
Dan Berindei (JIRA)
issues at jboss.org
Thu Mar 29 05:05:00 EDT 2018
[ https://issues.jboss.org/browse/ISPN-9016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei reopened ISPN-9016:
--------------------------------
Reopening because the serialVersionUID *is* still different.
{noformat}
org.infinispan.commons.CacheException: Unable to load component metadata!
at org.infinispan.factories.components.ComponentMetadataRepo.initialize(ComponentMetadataRepo.java:109) ~[classes/:?]
at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:110) ~[classes/:?]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:250) ~[classes/:?]
at org.infinispan.test.fwk.TestCacheManagerFactory.newDefaultCacheManager(TestCacheManagerFactory.java:402) ~[test-classes/:?]
at org.infinispan.test.fwk.TestCacheManagerFactory.newDefaultCacheManager(TestCacheManagerFactory.java:72) ~[test-classes/:?]
at org.infinispan.test.fwk.TestCacheManagerFactory.createCacheManager(TestCacheManagerFactory.java:240) ~[test-classes/:?]
at org.infinispan.test.fwk.TestCacheManagerFactory.createCacheManager(TestCacheManagerFactory.java:215) ~[test-classes/:?]
at org.infinispan.client.hotrod.SslTest.createCacheManager(SslTest.java:45) ~[test-classes/:?]
at org.infinispan.test.SingleCacheManagerTest.setup(SingleCacheManagerTest.java:31) ~[test-classes/:?]
at org.infinispan.test.SingleCacheManagerTest.createBeforeMethod(SingleCacheManagerTest.java:55) [test-classes/:?]
Caused by: java.io.InvalidClassException: org.infinispan.factories.components.ComponentMetadata; local class incompatible: stream classdesc serialVersionUID = -5383960985588784105, local class serialVersionUID = 865000096028875386
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:687) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1880) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428) ~[?:1.8.0_152]
at java.util.HashMap.readObject(HashMap.java:1409) ~[?:1.8.0_152]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568) ~[?:1.8.0_152]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428) ~[?:1.8.0_152]
at org.infinispan.factories.components.ComponentMetadataRepo.readMetadata(ComponentMetadataRepo.java:39) ~[classes/:?]
at org.infinispan.factories.components.ComponentMetadataRepo.initialize(ComponentMetadataRepo.java:107) ~[classes/:?]
... 34 more
{noformat}
{{865000096028875386}} is the {{serialVersionUID}} from the source, I have no idea where the persister got the {{-5383960985588784105}} version from.
> Component metadata serialization format changes depending on compiler
> ---------------------------------------------------------------------
>
> Key: ISPN-9016
> URL: https://issues.jboss.org/browse/ISPN-9016
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.2.1.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Minor
> Fix For: 9.3.0.Alpha1
>
>
> The field and method metadata classes have a {{serialVersionUUID}}, but {{ComponentMetadata}} itself doesn't have it, so it can change at any time.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list