|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Using a source list in more than one viewerHello,
I keep getting this error: java.util.ConcurrentModificationException: Cannot begin a new event while another event is in progress by thread, main at ca.odell.glazedlists.event.ListEventAssembler$AssemblerHelper.beginEvent(ListEventAssembler.java:347) at ca.odell.glazedlists.event.ListEventAssembler.beginEvent(ListEventAssembler.java:94) at ca.odell.glazedlists.FilterList.listChanged(FilterList.java:167) at ca.odell.glazedlists.event.ListEventAssembler$ListSequencePublisherAdapter$ListEventFormat.fire(ListEventAssembler.java:781) at ca.odell.glazedlists.event.ListEventAssembler$ListSequencePublisherAdapter$ListEventFormat.fire(ListEventAssembler.java:773) at ca.odell.glazedlists.event.SequenceDependenciesEventPublisher$SubjectAndListener.firePendingEvent(SequenceDependenciesEventPublisher.java:445) at ca.odell.glazedlists.event.SequenceDependenciesEventPublisher.fireEvent(SequenceDependenciesEventPublisher.java:344) at ca.odell.glazedlists.event.ListEventAssembler$ListSequencePublisherAdapter.fireEvent(ListEventAssembler.java:767) at ca.odell.glazedlists.event.ListEventAssembler$AssemblerHelper.commitEvent(ListEventAssembler.java:416) at ca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:249) at ca.odell.glazedlists.BasicEventList.set(BasicEventList.java:210) at ca.odell.glazedlists.impl.GlazedListsImpl.replaceAll(GlazedListsImpl.java:104) at ca.odell.glazedlists.GlazedLists.replaceAllSorted(GlazedLists.java:124) at de.topsystem.common.ui.glazedlists.viewers.AbstractEventListProvider.getList(AbstractEventListProvider.java:70) at de.topsystem.common.ui.part.DynamicTableViewPart$3.run(DynamicTableViewPart.java:493) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) since I am using a source list in 2 different viewers. Is that a problem? I should be able to use the sourcelist in different viewers and update the sourcelist from a different thread (using replaceAllSorted) Thanks, Phil |
|
|
re: Using a source list in more than one viewerAre you locking and unlocking the list while making ANY change? And performing ANY read?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
Are the lists in your views wrapped at some point in a swing event thread proxy list? see GlazedListsSwing#swingThreadProxyList(EventList) - K ----------------------- Original Message ----------------------- From: philk phil.kursawe@... To: users@... Cc: Date: Mon, 13 Jul 2009 08:41:23 -0700 (PDT) Subject: Using a source list in more than one viewer Hello, I keep getting this error: java.util.ConcurrentModificationException: Cannot begin a new event while another event is in progress by thread, main at ca.odell.glazedlists.event.ListEventAssembler$AssemblerHelper.beginEvent(ListEventAssembler.java:347) at ca.odell.glazedlists.event.ListEventAssembler.beginEvent(ListEventAssembler.java:94) at ca.odell.glazedlists.FilterList.listChanged(FilterList.java:167) at ca.odell.glazedlists.event.ListEventAssembler$ListSequencePublisherAdapter$ListEventFormat.fire(ListEventAssembler.java:781) at ca.odell.glazedlists.event.ListEventAssembler$ListSequencePublisherAdapter$ListEventFormat.fire(ListEventAssembler.java:773) at ca.odell.glazedlists.event.SequenceDependenciesEventPublisher$SubjectAndListener.firePendingEvent(SequenceDependenciesEventPublisher.java:445) at ca.odell.glazedlists.event.SequenceDependenciesEventPublisher.fireEvent(SequenceDependenciesEventPublisher.java:344) at ca.odell.glazedlists.event.ListEventAssembler$ListSequencePublisherAdapter.fireEvent(ListEventAssembler.java:767) at ca.odell.glazedlists.event.ListEventAssembler$AssemblerHelper.commitEvent(ListEventAssembler.java:416) at ca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:249) at ca.odell.glazedlists.BasicEventList.set(BasicEventList.java:210) at ca.odell.glazedlists.impl.GlazedListsImpl.replaceAll(GlazedListsImpl.java:104) at ca.odell.glazedlists.GlazedLists.replaceAllSorted(GlazedLists.java:124) at de.topsystem.common.ui.glazedlists.viewers.AbstractEventListProvider.getList(AbstractEventListProvider.java:70) at de.topsystem.common.ui.part.DynamicTableViewPart$3.run(DynamicTableViewPart.java:493) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) since I am using a source list in 2 different viewers. Is that a problem? I should be able to use the sourcelist in different viewers and update the sourcelist from a different thread (using replaceAllSorted) Thanks, Phil -- View this message in context: http://www.nabble.com/Using-a-source-list-in-more-than-one-viewer-tp24464158p24464158.html Sent from the GlazedLists - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: re: Using a source list in more than one viewerYes, my de.topsystem.common.ui.glazedlists.viewers.AbstractEventListProvider.getList does a writeLock and the viewers use the SWT proxy list transparently, I guess?
|
|
|
re[3]: Using a source list in more than one viewerahhh - SWT - sorry, I missed that. I'm not nearly as familiar with SWT usage, so I'll leave that part of the discussion to others :-) I know that there has been some recent work to remove the transparent proxy list generation from the Swing side of things...
One thing that you might want to try is to use a DebugList with lock checking enabled:
That may help find the lock problem...
- K
----------------------- Original Message -----------------------
From: philk phil.kursawe@...
To: users@...
Cc:
Date: Mon, 13 Jul 2009 11:14:12 -0700 (PDT)
Subject: Re: re: Using a source list in more than one viewer
Yes, my de.topsystem.common.ui.glazedlists.viewers.AbstractEventListProvider.getList does a writeLock and the viewers use the SWT proxy list transparently, I guess? -- View this message in context: http://www.nabble.com/Using-a-source-list-in-more-than-one-viewer-tp24464158p24466661.html Sent from the GlazedLists - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |