You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Abe White (JIRA)" <ji...@apache.org> on 2007/04/06 21:21:32 UTC

[jira] Resolved: (OPENJPA-202) after invoking LRS processing in a client by calling an @LRS annotated relationship, the next em.clear()/em.close() gets org.apache.openjpa.persistence.InvalidStateException: You cannot transfer large result set fields from one object or field to another

     [ https://issues.apache.org/jira/browse/OPENJPA-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abe White resolved OPENJPA-202.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.7

Changed detach process to never detach LRS fields.  In the future we might consider enhancements like detaching write-only proxies for LRS fields.  The only way to fully detach an LRS field, though, would be to read it all into memory, which would defeat the purpose.  Fixed in revision 526253.

> after invoking LRS processing in a client by calling an @LRS annotated relationship, the next em.clear()/em.close() gets org.apache.openjpa.persistence.InvalidStateException: You cannot transfer large result set fields from one object or field to another
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-202
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-202
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 0.9.7
>         Environment: 0.9.7-incubating-SNAPSHOT
>            Reporter: George Hongell
>             Fix For: 0.9.7
>
>         Attachments: lrsBugWineryTest.zip
>
>
> after invoking LRS processing in a client by calling an @LRS annotated relationship, the next em.clear()/em.close() gets org.apache.openjpa.persistence.InvalidStateException: You cannot transfer large result set fields from one object or field to another
> <4|false|0.9.7-incubating-SNAPSHOT> org.apache.openjpa.persistence.InvalidStateException: You cannot transfer large result set fields from one object or field to another.
> 	at org.apache.openjpa.util.AbstractLRSProxyCollection.setOwner(AbstractLRSProxyCollection.java:77)
> 	at org.apache.openjpa.kernel.DetachManager$DetachFieldManager.reproxy(DetachManager.java:523)
> 	at org.apache.openjpa.kernel.DetachManager.detachInternal(DetachManager.java:431)
> 	at org.apache.openjpa.kernel.DetachManager.detachAll(DetachManager.java:299)
> 	at org.apache.openjpa.kernel.BrokerImpl.detachAllInternal(BrokerImpl.java:3150)
> 	at org.apache.openjpa.kernel.BrokerImpl.detachAll(BrokerImpl.java:3123)
> 	at org.apache.openjpa.kernel.DelegatingBroker.detachAll(DelegatingBroker.java:1136)
> 	at org.apache.openjpa.persistence.EntityManagerImpl.clear(EntityManagerImpl.java:868)
> 	at com.ibm.websphere.ejb3sample.winetour.bug.BugWineryTest.testLargeResultSetAnnotation(BugWineryTest.java:902)
> 	at com.ibm.websphere.ejb3sample.winetour.bug.BugWineryTest.main(BugWineryTest.java:146)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.