C++ Client Connecting to Coherence - IllegalArgumentException: No Scheme for Cache

(Doc ID 1127284.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Coherence - Version 3.5.0 and later
Information in this document applies to any platform.
***Checked for relevance on 08-Aug-2012***

Symptoms

A C++ program that was developed to connect to Coherence, fails with:

[root@host examples]# ./run coherenceTest1
redirecting Coherence logging to coherenceTest1.log...
error: coherence::lang::IllegalArgumentException: No scheme for cache: "dist-hello"
at virtual coherence::lang::TypedHandle<const coherence::net::DefaultConfigurableCacheFactory::CacheInfo> coherence::net::DefaultConfigurableCacheFactory::findSchemeMapping(coherence::lang::String::StringHandle<const coherence::lang::String>)(DefaultConfigurableCacheFactory.cpp:137)
at coherence::net::DefaultConfigurableCacheFactory::findSchemeMapping(coherence::lang::String::StringHandle<coherence::lang::String const>)
at coherence::net::DefaultConfigurableCacheFactory::ensureCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
at coherence::net::CacheFactory::getCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
at coherence::lang::Object::onEscape(bool) const
at __libc_start_main
on thread "main"

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