InvocationTargetException On Startup

(Doc ID 577687.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Coherence - Version: 3.3.1 to 3.7.1.1 - Release: to AS10g
Information in this document applies to any platform.

Symptoms

When starting up a Coherence application, the following error occurs:

Failed to find an application descriptor -- loading DefaultApplication
Loaded cache configuration from resource "file:/opt/oracle/product/10.1.3/j2ee/OC4J_SHOP/applications/app/lib/coherence-cache-config.xml"
Beep!
(Wrapped) 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.util.ClassHelper.invoke(ClassHelper.java:746)
    at com.tangosol.util.ClassHelper.invokeStatic(ClassHelper.java:689)
    at com.tangosol.net.CacheFactory.getServiceConfig(CacheFactory.java:1092)
    at com.tangosol.net.CacheFactory.getConfigurableCacheFactoryConfig(CacheFactory.java:1058)
    at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactory.java:538)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:606)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:586)
...
Caused by: java.lang.IllegalStateException: A singleton for \"Coherence\" has already been set to a different type
    at com.tangosol.coherence.component.application.console.Coherence.get_Instance(Coherence.CDB:9)
    at com.tangosol.coherence.component.application.console.Coherence.getCluster(Coherence.CDB:10)
    at com.tangosol.coherence.component.application.console.Coherence.getServiceConfig(Coherence.CDB:8)
    ... 34 more

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