My Oracle Support Banner

com.tangosol.util.Binary Cannot Be Cast To java.lang.String After cache.get() (Doc ID 800266.1)

Last updated on FEBRUARY 28, 2019

Applies to:

Oracle Coherence - Version 3.4.0 to 3.4.1
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

Coherence runs into following error intermittently:

java.lang.ClassCastException: com.tangosol.util.Binary cannot be cast to java.lang.String
at ApplicationClass.someMethod(Unknown Source)
[...]

In the ApplicationClass.someMethod() method there is a type cast because the application expects
to get a String from the cache.

The exception is thrown in following line of the application code:

String s = (String) cache.get ("something");

 

This can be observed with Coherence 3.4.1.
Coherence 3.3.x and previous versions did not show this problem.

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
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.