Serialization exception when using PersistentStateComponent Follow
Hello,
I have a project component that I've set up as a PersistentStateComponent, but I'm getting a serialization exception[2] after getState() is called and XmlSerializerImpl class is trying to write out my persistent data. It doesn't seem to matter what kind of object that my component returns from getData(), I always get this exception. Perhaps my configuration[1] for using PersistentStateComponent is not complete? Has anyone else seen this issue?
[1] Here the annotation for my component:
@State(
name = "FooPlugin",
storages = {
@Storage(
id ="other",
file = "$WORKSPACE_FILE$"
)}
)
[2] see attached
Attachment(s):
exception.txt
Please sign in to leave a comment.
Hello Kevin,
The annotations are defined correctly. What are the public fields and methods
on the class you return from getState()?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry,
Thank you for your response.
I first tried returning a simple bean object with three string fields and getters and setters for each field. I also tried returning a Map<String, String> and even just a String. Nothing worked.
Cheers,
Kevin