"Failed to initialize cos runtime asynchronously" on WebCenter Sites | Gadgets (Doc ID 1474284.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle WebCenter Sites - Version 11.1.1.6.0 and later
Information in this document applies to any platform.
***Checked for relevance on 31-12-2013***

Symptoms

Some of the WebCenter Sites | Gadgets logs contain errors:

2012-07-06 12:30:34,285 INFO  [ServerUpListeneringThread.java:36] : Registry client pinging server. Retry count: 1
2012-07-06 12:30:35,813 ERROR [GaSRuntimeListener.java:45] : Failed to discover runtime mode
com.fatwire.cos.CoSException: CoS runtime is not initialized
    at com.fatwire.cos.core.CoS.instance(CoS.java:46)
    at com.fatwire.gas.shindig.listener.GaSRuntimeListener.contextInitialized(GaSRuntimeListener.java:41)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:617)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1622)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:139)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909)
    at java.lang.Thread.run(Thread.java:662)

and

...
2012-07-06 12:43:28,576 INFO  [ServerUpListeneringThread.java:36] : Registry client pinging server. Retry count: 70
2012-07-06 12:43:39,793 INFO  [ServerUpListeneringThread.java:36] : Registry client pinging server. Retry count: 71
2012-07-06 12:43:51,009 INFO  [ServerUpListeneringThread.java:36] : Registry client pinging server. Retry count: 72
2012-07-06 12:44:00,182 FATAL [CoSRuntimeImpl.java:285] : com.fatwire.cos.registry.RegistryConnectionException: Failed to connect to ZooKepper Registry Client
2012-07-06 12:44:00,182 FATAL [AsyncInitializer.java:38] : Failed to initialize cos runtime asynchronously
com.fatwire.cos.CoSException: com.fatwire.cos.registry.RegistryConnectionException: Failed to connect to ZooKepper Registry Client
    at com.fatwire.cos.core.CoSRuntimeImpl.facilityAttemptStarter(CoSRuntimeImpl.java:287)
    at com.fatwire.cos.core.CoSRuntimeImpl.init(CoSRuntimeImpl.java:208)
    at com.fatwire.cos.core.AsyncInitializer.run(AsyncInitializer.java:32)
Caused by: com.fatwire.cos.registry.RegistryConnectionException: Failed to connect to ZooKepper Registry Client
    at com.fatwire.cos.core.registry.RegistryFacilityImpl.init(RegistryFacilityImpl.java:70)
    at com.fatwire.cos.core.CoSRuntimeImpl.facilityAttemptStarter(CoSRuntimeImpl.java:255)
    ... 2 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