Upgrading from Coherence 3.4.2 to Coherence 3.5 or Later Results in the Cache Server Failing to Start with the IOException "Failed to parse the element override" (Doc ID 975679.1)

Last updated on OCTOBER 26, 2016

Applies to:

Oracle Coherence - Version 3.4.2 to 3.4.2
Information in this document applies to any platform.
***Checked for relevance on 27-Jun-2013***

Symptoms

Since upgrading to Coherence 3.5 or later, the following error occurs when attempting to start the cache server:

D:\jdev\coherence\352\coherence\bin>cache-server-PROVIDE-OVERIDE.cmd
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

2009-12-10 10:17:09.375 Oracle Coherence 3.5.2/463 <Info> (thread=main): Loaded operational configuration from resource "jar:file:/D:/jdev/coherence/352/coherence/lib/coherence.jar!/tangosol-coherence.xml"
Exception in thread "main" (Wrapped) java.lang.reflect.InvocationTargetException
        at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
        at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
        at com.tangosol.net.CacheFactory.getServiceConfig(CacheFactory.java:1355)
        at com.tangosol.net.CacheFactory.getCacheFactoryBuilderConfig(CacheFactory.java:1231)
        at com.tangosol.net.CacheFactory.getCacheFactoryBuilder(CacheFactory.java:593)
        at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactory.java:657)
        at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:49)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.tangosol.net.CacheFactory.getServiceConfig(CacheFactory.java:1350)
        ... 4 more
Caused by: (Wrapped: Failed to parse the element override: myoveride.xml) java.io.IOException: Exception occurred during
 parsing: looking for name token=cluster-config2, found token=(23,4,14) Name cluster-config
        at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:129)
        at com.tangosol.coherence.component.application.console.Coherence.loadConfiguration(Coherence.CDB:65)
        at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:14)
        at com.tangosol.coherence.component.application.console.Coherence.ensureRunningLogger(Coherence.CDB:10)
        at com.tangosol.coherence.component.application.console.Coherence.getSafeCluster(Coherence.CDB:14)
        at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:8)
        ... 9 more
Caused by: java.io.IOException: Exception occurred during parsing: looking for name token=cluster-config2, found token=(
23,4,14) Name cluster-config
        at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:134)
        at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:71)
        at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:84)
        at com.tangosol.coherence.component.application.console.Coherence.loadOverrides(Coherence.CDB:50)
        ... 14 more

D:\jdev\coherence\352\coherence\bin>

 

Note: This did not occur when using Coherence version < 3.5, in versions prior to 3.5 the cache server would start up.

Changes

Changes were introduced in Coherence 3.5 to ensure a valid override file can be parsed and meets the requirements required to use the override file. The change is for the better, as it forces you to either fix your override file, if you need it, or to delete it if you don't.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms