C++ Client Connecting to Coherence - IllegalArgumentException: No Scheme for Cache
(Doc ID 1127284.1)
Last updated on NOVEMBER 19, 2020
Applies to:
Oracle Coherence - Version 3.5.0 and laterInformation 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"
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
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |