Dan Smith created GEODE-4672:
--------------------------------
Summary: Geode fails to start with JDK 9 if
validate-serializable-objects is set
Key: GEODE-4672
URL: https://issues.apache.org/jira/browse/GEODE-4672
Project: Geode
Issue Type: Sub-task
Components: serialization
Reporter: Dan Smith
If the validate-serializable-objects property is set, Geode fails to start with
the below exception. This is problematic for running the geode tests with JDK 9
because our tests set this property
{noformat}
java.lang.RuntimeException: Unable to launch dunit VMs
at
org.apache.geode.test.dunit.standalone.DUnitLauncher.launchIfNeeded(DUnitLauncher.java:162)
at
org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase.initializeDistributedTestCase(JUnit4DistributedTestCase.java:128)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.RuntimeException: Failed to start locator
at
org.apache.geode.test.dunit.standalone.DUnitLauncher.startLocator(DUnitLauncher.java:331)
at
org.apache.geode.test.dunit.standalone.DUnitLauncher.launch(DUnitLauncher.java:241)
at
org.apache.geode.test.dunit.standalone.DUnitLauncher.launchIfNeeded(DUnitLauncher.java:160)
... 15 more
Caused by: org.apache.geode.GemFireConfigException: A serialization filter has
been specified but this version of Java does not support serialization filters
- sun.misc.ObjectInputFilter is not available
at
org.apache.geode.internal.InternalDataSerializer.initialize(InternalDataSerializer.java:235)
at
org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:691)
at
org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340)
at
org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:326)
at
org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:320)
at
org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211)
at
org.apache.geode.distributed.internal.InternalLocator.startDistributedSystem(InternalLocator.java:634)
at
org.apache.geode.distributed.internal.InternalLocator.startLocator(InternalLocator.java:309)
at org.apache.geode.distributed.Locator.startLocator(Locator.java:253)
at
org.apache.geode.distributed.Locator.startLocatorAndDS(Locator.java:140)
at
org.apache.geode.test.dunit.standalone.DUnitLauncher$2.call(DUnitLauncher.java:320)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)