Hi everyone and a happy new year!

 
This question is related to my previous one from 2015-12-15 („Auditing changes 
to lists“):

 
The original reason why we tried to upgrade our auditing mechanism was a 
ClassCastException. The exception occurred because we used the property 
„RestoreState“ to get the old state of a modified object for auditing:

 
Caused by: java.lang.ClassCastException: java.util.Date cannot be cast to 
…security.User

                at 
….model.AbstractDynamicTermEntity.pcReplaceField(AbstractDynamicTermEntity.java)
 ~[classes/:na]

                at ….model.Term.pcReplaceField(Term.java) ~[classes/:na]

                at 
org.apache.openjpa.kernel.StateManagerImpl.replaceField(StateManagerImpl.java:3253)
 ~[openjpa-2.4.0.jar:2.4.0]

                at 
org.apache.openjpa.kernel.StateManagerImpl.restoreFields(StateManagerImpl.java:2961)
 ~[openjpa-2.4.0.jar:2.4.0]

                at 
org.apache.openjpa.kernel.PDirtyState.rollbackRestore(PDirtyState.java:55) 
~[openjpa-2.4.0.jar:2.4.0]

                at 
org.apache.openjpa.kernel.StateManagerImpl.rollback(StateManagerImpl.java:1180) 
~[openjpa-2.4.0.jar:2.4.0]

                at 
org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2443) 
~[openjpa-2.4.0.jar:2.4.0]

                at 
org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:2041) 
~[openjpa-2.4.0.jar:2.4.0]

 
To me it looks like the feature „restore on rollback“ seems to be broken.

 
Does anyone else have an opinion on that?

 
Mit freundlichem Gruß / Kind regards / 此 致 敬 礼

 
Christopher Cudennec

 

24technology GmbH
Falkenried Piazza

Straßenbahnring 15
20251 Hamburg | Deutschland

Tel.:        +49   (0)40   226 3370-0
Fax:        +49   (0)40   226 3370-80
 
www.24technology.de <http://www.24technology.de/> 

 
24technology GmbH, Sitz Hamburg, Amtsgericht HH HRB 117074 
Hinweis: Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten 
Adressaten bestimmt. Wenn Sie nicht der richtige Adressat bzw. sein Vertreter 
sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort 
den Absender und vernichten Sie diese Mail. Vielen Dank.

Notice: This e-mail may contain confidential and/or privileged information. 
Access to this e-mail by anyone else is unauthorized. If you are not the 
intended recipient or have received this e-mail in error, please inform the 
sender immediately

 

Reply via email to