java.lang.ClassCastException: cannot assign instance of com.google.common.collect.ImmutableBiMap$SerializedForm to field ImmutableMapSerialization.map of type com.google.common.collect.ImmutableMap in instance of ImmutableMapSerialization

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by gissuebot
, 2 years ago
cannot assign instance of com.google.common.collect.ImmutableBiMap$SerializedForm to field ImmutableMapSerialization.map of type com.google.common.collect.ImmutableMap in instance of ImmutableMapSerialization
via Stack Overflow by Sagi Sidi
, 1 year ago
cannot assign instance of Department to field Worker.name of type java.lang.String in instance of Worker
via atlassian.com by Unknown author, 1 year ago
cannot assign instance of java.lang.String to field com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider.LOG of type org.apache.log4j.Logger in instance of com.atlassian.jira.user.osuser.JiraOFBizAccessProvider
via Stack Overflow by jp579
, 2 years ago
cannot assign instance of tetris.network.MessageObject to field tetris.network.MessageObject.msg of type java.lang.String in instance of tetris.network.MessageObject
via Stack Overflow by TiagoM
, 1 year ago
cannot assign instance of java.lang.String to field Element.posElement of type java.awt.Point in instance of Personagem
via Oracle Community by 679296, 1 year ago
cannot assign instance of java.util.HashSet to field fuego.view.FilterImpl.attributes of type java.util.List in instance of fuego.view.FilterImpl
java.lang.ClassCastException: cannot assign instance of com.google.common.collect.ImmutableBiMap$SerializedForm to field ImmutableMapSerialization.map of type com.google.common.collect.ImmutableMap in instance of ImmutableMapSerialization
at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2063)
at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1241)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at undefined.ImmutableMapSerialization.main(ImmutableMapSerialization.java:31)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.