What version of OpenJPA are you using?  This problem sounds very similar to
OPENJPA-733 (https://issues.apache.org/jira/browse/OPENJPA-733).  This has
been resolved in trunk (1.3.0 SNAPSHOT) and our 1.2.x service branch.

Thanks,
Kevin

On Tue, Oct 14, 2008 at 12:55 PM, David Minor <[EMAIL PROTECTED]> wrote:

> I'm getting this exception when trying to access an entity's ID field
> (the entity is being retrieved from a cache and has possibly existed
> for some time). Shouldn't this field still be available after the
> persistence context has been closed?
>
> "<openjpa-1.0.1-rexported fatal user error>
> org.apache.renamed.openjpa.persistence.InvalidStateException: The
> context has been closed.  The stack trace at which the context was
> closed is available if Runtime=TRACE logging is enabled."
>
> I get the error only very occasionally in production and can't
> reproduce it locally.
>
> --
> _____________
> David Minor
>

Reply via email to