Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException
[CDO] org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException [message #989236] Wed, 05 December 2012 10:22 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
[Using hibernate store] I am getting the following exception when comparing two revisions.
Do I miss some settings?

Stack trace:

org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException: List contains proxy elements
at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl$1.checkNoProxies(CDORevisionDeltaImpl.java:387)
at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl$1.analyzeLists(CDORevisionDeltaImpl.java:337)
at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl.compare(CDORevisionDeltaImpl.java:397)
at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl.<init>(CDORevisionDeltaImpl.java:112)
at org.eclipse.emf.cdo.spi.common.revision.BaseCDORevision.compare(BaseCDORevision.java:433)
Re: [CDO] org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException [message #989412 is a reply to message #989236] Thu, 06 December 2012 07:07 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 05.12.2012 11:22, schrieb Erdal Karaca:
> [Using hibernate store] I am getting the following exception when comparing two revisions.
> Do I miss some settings?
In your client, do you enable partial collection loading explicitely? If yes, the HibernateStore might not support it.
If no it might be a bug in the HibernateStore that makes it return list element proxies which can't resolve later.

>
> Stack trace:
>
> org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException: List contains proxy elements
> at
> org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl$1.checkNoProxies(CDORevisionDeltaImpl.java:387)
> at
> org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl$1.analyzeLists(CDORevisionDeltaImpl.java:337)
> at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl.compare(CDORevisionDeltaImpl.java:397)
> at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl.<init>(CDORevisionDeltaImpl.java:112)
> at org.eclipse.emf.cdo.spi.common.revision.BaseCDORevision.compare(BaseCDORevision.java:433)
May we see the complete stack trace to get a hint on why compare is being called?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException [message #989461 is a reply to message #989412] Thu, 06 December 2012 10:19 Go to previous message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
No, nothing related to "partial collection loading" when session is set up on client side.

I am calling CDORevision.compare() like described in the HibernateStore docs for auditing:

http://wiki.eclipse.org/CDO/Hibernate_Store/Auditing#CDOUtil.getRevisionByVersion_-_Comparing_revisions

This is due to the following bug as the cdo layer does not return the old value in a CDOSetFeatureDelta:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=395685


Eike Stepper wrote on Thu, 06 December 2012 08:07
Am 05.12.2012 11:22, schrieb Erdal Karaca:
> [Using hibernate store] I am getting the following exception when comparing two revisions.
> Do I miss some settings?
In your client, do you enable partial collection loading explicitely? If yes, the HibernateStore might not support it.
If no it might be a bug in the HibernateStore that makes it return list element proxies which can't resolve later.

>
> Stack trace:
>
> org.eclipse.emf.cdo.common.util.PartialCollectionLoadingNotSupportedException: List contains proxy elements
> at
> org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl$1.checkNoProxies(CDORevisionDeltaImpl.java:387)
> at
> org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl$1.analyzeLists(CDORevisionDeltaImpl.java:337)
> at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl.compare(CDORevisionDeltaImpl.java:397)
> at org.eclipse.emf.cdo.internal.common.revision.delta.CDORevisionDeltaImpl.<init>(CDORevisionDeltaImpl.java:112)
> at org.eclipse.emf.cdo.spi.common.revision.BaseCDORevision.compare(BaseCDORevision.java:433)
May we see the complete stack trace to get a hint on why compare is being called?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper

Previous Topic:[CDO/Hibernate] Date Types
Next Topic:[CDO] Transaction commit & Threads
Goto Forum:
  


Current Time: Thu Apr 25 00:22:38 GMT 2024

Powered by FUDForum. Page generated in 0.04253 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top