Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO/Hibernate] UnsupportedOperationException at ...GrowingRandomAccessList.add(...)
[CDO/Hibernate] UnsupportedOperationException at ...GrowingRandomAccessList.add(...) [message #989941] Mon, 10 December 2012 07:43 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 746
Registered: July 2009
Senior Member
I am getting the following exception when accessing the CommitHistory the first time.
I use the code from Teneo Auditing examples:

http://wiki.eclipse.org/CDO/Hibernate_Store/Auditing


java.lang.UnsupportedOperationException
at org.eclipse.net4j.util.collection.GrowingRandomAccessList.add(GrowingRandomAccessList.java:132)
at java.util.AbstractList$ListItr.add(Unknown Source)
at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl.handleCommitInfo(CDOCommitHistoryImpl.java:336)
at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl$2.handleCommitInfo(CDOCommitHistoryImpl.java:404)
at org.eclipse.emf.cdo.internal.common.commit.CDOCommitInfoManagerImpl$3.handleCommitInfo(CDOCommitInfoManagerImpl.java:180)
at org.eclipse.emf.cdo.internal.net4j.protocol.LoadCommitInfosRequest.confirming(LoadCommitInfosRequest.java:79)
at org.eclipse.emf.cdo.internal.net4j.protocol.LoadCommitInfosRequest.confirming(LoadCommitInfosRequest.java:1)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequest.confirming(CDOClientRequest.java:90)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedInput(RequestWithConfirmation.java:125)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(RequestWithConfirmation.java:105)
at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.java:53)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:431)
at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:89)
at org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:75)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:502)
at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.loadCommitInfos(CDOClientProtocol.java:155)
at org.eclipse.emf.cdo.internal.common.commit.CDOCommitInfoManagerImpl.getCommitInfos(CDOCommitInfoManagerImpl.java:185)
at org.eclipse.emf.cdo.internal.common.commit.CDOCommitInfoManagerImpl.getCommitInfos(CDOCommitInfoManagerImpl.java:197)
at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl.doLoadCommitInfos(CDOCommitHistoryImpl.java:390)
at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl$1.run(CDOCommitHistoryImpl.java:281)


Using the code titles "CDOUtil.getRevisionByVersion - Comparing revisions"

[Updated on: Mon, 10 December 2012 07:44]

Report message to a moderator

Re: [CDO/Hibernate] UnsupportedOperationException at ...GrowingRandomAccessList.add(...) [message #989958 is a reply to message #989941] Mon, 10 December 2012 09:23 Go to previous messageGo to next message
Eike Stepper is currently offline Eike Stepper
Messages: 5525
Registered: July 2009
Senior Member
I think I know what's going on: I added history caching later to the commit info manager and that seems to break the
former assumption that histories only expand beyond both ends. Can you please submit a bugzilla?

Cheers
/Eike

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


Am 10.12.2012 08:43, schrieb Erdal Karaca:
> I am getting the following exception when accessing the CommitHistory the first time.
> I use the code from Teneo Auditing examples:
>
> http://wiki.eclipse.org/CDO/Hibernate_Store/Auditing
>
>
> java.lang.UnsupportedOperationException
> at org.eclipse.net4j.util.collection.GrowingRandomAccessList.add(GrowingRandomAccessList.java:132)
> at java.util.AbstractList$ListItr.add(Unknown Source)
> at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl.handleCommitInfo(CDOCommitHistoryImpl.java:336)
> at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl$2.handleCommitInfo(CDOCommitHistoryImpl.java:404)
> at
> org.eclipse.emf.cdo.internal.common.commit.CDOCommitInfoManagerImpl$3.handleCommitInfo(CDOCommitInfoManagerImpl.java:180)
> at org.eclipse.emf.cdo.internal.net4j.protocol.LoadCommitInfosRequest.confirming(LoadCommitInfosRequest.java:79)
> at org.eclipse.emf.cdo.internal.net4j.protocol.LoadCommitInfosRequest.confirming(LoadCommitInfosRequest.java:1)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientRequest.confirming(CDOClientRequest.java:90)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedInput(RequestWithConfirmation.java:125)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(RequestWithConfirmation.java:105)
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.java:53)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
> at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:431)
> at org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:89)
> at org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:75)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:502)
> at org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocol.loadCommitInfos(CDOClientProtocol.java:155)
> at
> org.eclipse.emf.cdo.internal.common.commit.CDOCommitInfoManagerImpl.getCommitInfos(CDOCommitInfoManagerImpl.java:185)
> at
> org.eclipse.emf.cdo.internal.common.commit.CDOCommitInfoManagerImpl.getCommitInfos(CDOCommitInfoManagerImpl.java:197)
> at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl.doLoadCommitInfos(CDOCommitHistoryImpl.java:390)
> at org.eclipse.emf.cdo.internal.common.commit.CDOCommitHistoryImpl$1.run(CDOCommitHistoryImpl.java:281)
>
Re: [CDO/Hibernate] UnsupportedOperationException at ...GrowingRandomAccessList.add(...) [message #989973 is a reply to message #989958] Mon, 10 December 2012 10:18 Go to previous message
Erdal Karaca is currently offline Erdal Karaca
Messages: 746
Registered: July 2009
Senior Member
Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=396173
Previous Topic:[CDO] CDOStaleReferencePolicy.PROXY vs bind method
Next Topic:[Teneo] Using @Embedded
Goto Forum:
  


Current Time: Tue Sep 23 22:31:13 GMT 2014

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

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