users@glassfish.java.net

Re: ANTLR serialization error when running a query?

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Jul 2007 13:54:30 PDT

Hi Laird,

the TopLink JPA implementation uses ANTLR to implement the query compiler. It is possible that one of the serialized instances holds a reference to a javax.persistence.Query instance? It looks like the Query instance is compiled already and the internal syntax tree refers a CommonToken which is not serializable. If yes, please add the Java transient modifier to the Query field.

Hope this helps!

Regards Michael
[Message sent by forum member 'mb124283' (mb124283)]

http://forums.java.net/jive/thread.jspa?messageID=226460