h.util.RobustReflectionConverter#doUnmarshal: Cannot convert type java.util.LinkedHashMap to type com.google.gson.internal.LinkedTreeMap?

1,114 views
Skip to first unread message

Michael Carter

unread,
May 13, 2021, 11:51:18 AM5/13/21
to Jenkins Developers
When I access a job view I get spammed with:

2021-05-13 15:40:25.448+0000 [id=500] WARNING h.util.RobustReflectionConverter#doUnmarshal: Cannot convert type java.util.LinkedHashMap to type com.google.gson.internal.LinkedTreeMap
2021-05-13 15:40:25.456+0000 [id=500] WARNING h.util.RobustReflectionConverter#doUnmarshal: Cannot convert type java.util.LinkedHashMap to type com.google.gson.internal.LinkedTreeMap

I'm know this has to do with the fact I have code using gson libraries for json manipulation which I haven't fully converted.  But I'm having trouble locating what I need to change for this specific thing.   What's called when you click the job view tabs here?

Jesse Glick

unread,
May 13, 2021, 12:07:58 PM5/13/21
to Jenkins Dev
On Thu, May 13, 2021 at 11:51 AM Michael Carter <mikeyca...@gmail.com> wrote:
I'm know this has to do with the fact I have code using gson libraries for json manipulation which I haven't fully converted.

Somewhere you have a class which is serialized via XStream (an `Action` attached to a build, a `JobProperty`, etc. etc.) which has a persistent field whose actual type is from the GSON library, which is forbidden as of JEP-200 and was never a good idea. I am not familiar with the cause of this specific error. Search XML files in your `$JENKINS_HOME` for `gson` and it should become clear what needs to be fixed. 

Michael Carter

unread,
May 13, 2021, 12:15:08 PM5/13/21
to Jenkins Developers
Action/JobProperty is what I needed to point me in the right direction.   Most of my code was originally ported over from a SpringBoot application which is still underactive development.   Slowly removing the code... but at least I know where to look.  Thanks.
Reply all
Reply to author
Forward
0 new messages