I am getting an
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Invalid final field com.opensymphony.xwork.ActionSupport.validationAware
exception when invoking
BandanaContext ctx = new ConfluenceBandanaContext();
bandanaManager.setValue(ctx, uid.toString(), myobject);
in an action.
I have also tried to init ctx by ConfluenceBandanaContext("myContext"+this.getClass().getName()) but still same error. BandanaManager is injected at the constructor of the class and is not null in any case.
Community moderators have prevented the ability to post new answers.
Solved by converting object to xml string through xstream and loading/casting the string afterwards.
Looks like updating xstream solves problem
<dependency>
<artifactId>xstream</artifactId>
<groupId>com.thoughtworks.xstream</groupId>
<version>1.4</version>
</dependency>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.