[ https://issues.apache.org/jira/browse/GEODE-4969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16419421#comment-16419421 ]
ASF subversion and git services commented on GEODE-4969: -------------------------------------------------------- Commit 3baccb4d1c453feb5d58784e2d7a157db2bf5af2 in geode's branch refs/heads/develop from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=3baccb4 ] GEODE-4969 PDX Type registry throws CacheClosedException causing random test failures bullet proofing yet another test against this TypeRegistry problem > PDX Type registry throws CacheClosedException causing random test failures > -------------------------------------------------------------------------- > > Key: GEODE-4969 > URL: https://issues.apache.org/jira/browse/GEODE-4969 > Project: Geode > Issue Type: Bug > Components: serialization > Reporter: Bruce Schuchardt > Priority: Major > > The type registry throws a CacheClosedException if a cache ever existed in a > JVM and has been closed. This is causing unit tests that do not create a > cache to fail: > org.apache.geode.internal.HeapDataOutputStreamJUnitTest > > testWriteJavaSerializeNoCopy FAILED > org.apache.geode.cache.CacheClosedException: Could not PDX serialize because > the cache was closed at > org.apache.geode.pdx.internal.TypeRegistry.getPdxSerializer(TypeRegistry.java:366) > at > org.apache.geode.internal.InternalDataSerializer.writeUserObject(InternalDataSerializer.java:1661) > at > org.apache.geode.internal.InternalDataSerializer.writeWellKnownObject(InternalDataSerializer.java:1562) > at > org.apache.geode.internal.InternalDataSerializer.basicWriteObject(InternalDataSerializer.java:2226) > at org.apache.geode.DataSerializer.writeObject(DataSerializer.java:2936) at > org.apache.geode.internal.HeapDataOutputStreamJUnitTest.testWriteJavaSerializeNoCopy(HeapDataOutputStreamJUnitTest.java:148) > > Tests have to be modified to invoke TypeRegistry.init() to get around this > problem but they shouldn't have to. -- This message was sent by Atlassian JIRA (v7.6.3#76005)