Oracle Weblogic Server (MOSC)

MOSC Banner

java.lang.ClassCastException: java.lang.String cannot be cast to com.tangosol.util.Binary

edited Feb 26, 2021 3:24PM in Oracle Weblogic Server (MOSC) 2 commentsAnswered

Hi Team,

I was trying implement a small poc using replicated cache, but while running the application getting below exception, could you please help on what I am doing wrong here.

Oracle Coherence version : 12.2.1-4-4

Exception is :

(Wrapped: Failed to load key="sarath") java.lang.ClassCastException: java.lang.String cannot be cast to com.tangosol.util.Binary

at com.tangosol.util.Base.ensureRuntimeException(Base.java:324)

at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.onLoadFailure(ReadWriteBackingMap.java:5364)

at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.loadInternal(ReadWriteBackingMap.java:5958)

at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.load(ReadWriteBackingMap.java:5021)

at com.tangosol.net.cache.ReadWriteBackingMap.get(ReadWriteBackingMap.java:734)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center