geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Oglesby (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GEODE-3040) A GatewaySender fails to deserialize during rolling upgrade with a ClassCastException
Date Tue, 06 Jun 2017 17:21:18 GMT
Barry Oglesby created GEODE-3040:
------------------------------------

             Summary: A GatewaySender fails to deserialize during rolling upgrade with a ClassCastException
                 Key: GEODE-3040
                 URL: https://issues.apache.org/jira/browse/GEODE-3040
             Project: Geode
          Issue Type: Bug
          Components: wan
            Reporter: Barry Oglesby


Rolling a member containing a GatewaySender from a previous version to 1.2 causes this ClassCastException:
{noformat}
Caused by: java.lang.ClassCastException: org.apache.geode.cache.util.Gateway$OrderPolicy cannot
be cast to org.apache.geode.cache.wan.GatewaySender$OrderPolicy
{noformat}
Full stack:
{noformat}
Exception in thread "main" org.apache.geode.SerializationException: Could not create an instance
of  org.apache.geode.internal.cache.UpdateAttributesProcessor$UpdateAttributesMessage .
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.InternalDataSerializer.invokeFromData(InternalDataSerializer.java:2492)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.DSFIDFactory.create(DSFIDFactory.java:979)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.InternalDataSerializer.readDSFID(InternalDataSerializer.java:2718)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.tcp.Connection.processNIOBuffer(Connection.java:3606)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.tcp.Connection.runNioReader(Connection.java:1865)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.tcp.Connection.run(Connection.java:1726)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in java.lang.Thread.run(Thread.java:745)
	at org.apache.geode.distributed.internal.ReplyException.handleAsUnexpected(ReplyException.java:85)
	at org.apache.geode.internal.cache.UpdateAttributesProcessor.waitForProfileResponse(UpdateAttributesProcessor.java:112)
	at org.apache.geode.internal.cache.UpdateAttributesProcessor.distribute(UpdateAttributesProcessor.java:98)
	at org.apache.geode.internal.cache.GemFireCacheImpl.addGatewaySender(GemFireCacheImpl.java:3810)
	at org.apache.geode.internal.cache.wan.GatewaySenderFactoryImpl.create(GatewaySenderFactoryImpl.java:252)
	at org.apache.geode.internal.cache.xmlcache.CacheCreation.create(CacheCreation.java:478)
	at org.apache.geode.internal.cache.xmlcache.CacheXmlParser.create(CacheXmlParser.java:338)
	at org.apache.geode.internal.cache.GemFireCacheImpl.loadCacheXml(GemFireCacheImpl.java:4291)
	at org.apache.geode.internal.cache.GemFireCacheImpl.initializeDeclarativeCache(GemFireCacheImpl.java:1390)
	at org.apache.geode.internal.cache.GemFireCacheImpl.initialize(GemFireCacheImpl.java:1195)
	at org.apache.geode.internal.cache.GemFireCacheImpl.basicCreate(GemFireCacheImpl.java:758)
	at org.apache.geode.internal.cache.GemFireCacheImpl.create(GemFireCacheImpl.java:745)
	at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:173)
	at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:212)
	at TestBase.initializeServerCache(TestBase.java:22)
	at TestServer.main(TestServer.java:11)
Caused by: org.apache.geode.SerializationException: Could not create an instance of  org.apache.geode.internal.cache.wan.GatewaySenderAdvisor$GatewaySenderProfile
.
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.InternalDataSerializer.invokeFromData(InternalDataSerializer.java:2492)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.DSFIDFactory.create(DSFIDFactory.java:979)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2838)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.DataSerializer.readObject(DataSerializer.java:2897)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.cache.UpdateAttributesProcessor$UpdateAttributesMessage.fromData(UpdateAttributesProcessor.java:362)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.InternalDataSerializer.invokeFromData(InternalDataSerializer.java:2477)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.DSFIDFactory.create(DSFIDFactory.java:979)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.InternalDataSerializer.readDSFID(InternalDataSerializer.java:2718)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.tcp.Connection.processNIOBuffer(Connection.java:3606)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.tcp.Connection.runNioReader(Connection.java:1865)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.tcp.Connection.run(Connection.java:1726)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassCastException: org.apache.geode.cache.util.Gateway$OrderPolicy cannot
be cast to org.apache.geode.cache.wan.GatewaySender$OrderPolicy
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.cache.wan.GatewaySenderAdvisor$GatewaySenderProfile.fromData(GatewaySenderAdvisor.java:563)
	at Remote Member 'server1(41040)<v1>:1025(version:GFE 9.0)' in org.apache.geode.internal.InternalDataSerializer.invokeFromData(InternalDataSerializer.java:2477)
	... 13 more
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message