Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

BandanaManager exception

Panos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

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.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Panos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

Solved by converting object to xml string through xstream and loading/casting the string afterwards.

0 votes
Panos
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

Looks like updating xstream solves problem

<dependency>

<artifactId>xstream</artifactId>

<groupId>com.thoughtworks.xstream</groupId>

<version>1.4</version>

</dependency>

TAGS
AUG Leaders

Atlassian Community Events