Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Problem with 2 editable Layers and the Commit

Hello,

i hope this messages recieves the mailing list. I have the following
problem.
I habe a map with two layers, representing simple 2 temporary georesources.
Using the "create point tool" a add some features on the first layer, all
works fine. when i switch on the second layer and add some other features, i
get the following exception:

!ENTRY net.refractions.udig.tools.edit 1 0 2008-03-01 23:07:06.408
!MESSAGE 
!STACK 0
java.util.NoSuchElementException: No such Feature exsists
	at
org.geotools.data.FilteringFeatureReader.next(FilteringFeatureReader.java:79)
	at
org.geotools.data.store.FeatureReaderIterator.next(FeatureReaderIterator.java:65)
	at
org.geotools.feature.collection.DelegateFeatureIterator.next(DelegateFeatureIterator.java:39)
	at
net.refractions.udig.project.command.provider.FIDFeatureProvider.get(FIDFeatureProvider.java:37)
	at
net.refractions.udig.project.command.provider.FIDFeatureProvider.get(FIDFeatureProvider.java:1)
	at
net.refractions.udig.project.internal.commands.edit.SetAttributeCommand.run(SetAttributeCommand.java:98)
	at
net.refractions.udig.project.internal.commands.edit.SetGeometryCommand.run(SetGeometryCommand.java:72)
	at
net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81)
	at
net.refractions.udig.tools.edit.BehaviourCommand.execute(BehaviourCommand.java:65)
	at
net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:78)
	at
net.refractions.udig.project.command.UndoableComposite.run(UndoableComposite.java:50)
	at
net.refractions.udig.tools.edit.behaviour.AcceptBehaviour.getCommand(AcceptBehaviour.java:76)
	at
net.refractions.udig.tools.edit.EditToolHandler.runEventBehaviours(EditToolHandler.java:269)
	at
net.refractions.udig.tools.edit.EditToolHandler.handleEvent(EditToolHandler.java:229)
	at
net.refractions.udig.tools.edit.AbstractEditTool.onMouseReleased(AbstractEditTool.java:250)
	at
net.refractions.udig.project.ui.tool.SimpleTool.mouseReleased(SimpleTool.java:153)
	at
net.refractions.udig.project.ui.internal.render.displayAdapter.impl.EventJob.sendMouseReleased(EventJob.java:296)
	at
net.refractions.udig.project.ui.internal.render.displayAdapter.impl.EventJob.runEvent(EventJob.java:87)
	at
net.refractions.udig.project.ui.internal.render.displayAdapter.impl.EventJob.access$2(EventJob.java:72)
	at
net.refractions.udig.project.ui.internal.render.displayAdapter.impl.EventJob$1.run(EventJob.java:135)
	at org.eclipse.swt.widgets.Display.runTimer(Display.java:3745)
	at org.eclipse.swt.widgets.Display.messageProc(Display.java:2967)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2265)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at
net.refractions.udig.internal.ui.UDIGApplication.start(UDIGApplication.java:93)
	at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

!ENTRY net.refractions.udig.tools.edit 1 0 2008-03-01 23:07:09.021
!MESSAGE 
!STACK 0
java.util.NoSuchElementException: No such Feature exsists
	at
org.geotools.data.FilteringFeatureReader.next(FilteringFeatureReader.java:79)
	at
org.geotools.data.store.FeatureReaderIterator.next(FeatureReaderIterator.java:65)
	at
org.geotools.feature.collection.DelegateFeatureIterator.next(DelegateFeatureIterator.java:39)
	at
net.refractions.udig.project.command.provider.FIDFeatureProvider.get(FIDFeatureProvider.java:37)
	at
net.refractions.udig.project.command.provider.FIDFeatureProvider.get(FIDFeatureProvider.java:1)
	at
net.refractions.udig.project.internal.commands.edit.SetAttributeCommand.run(SetAttributeCommand.java:98)
	at
net.refractions.udig.project.internal.commands.edit.SetGeometryCommand.run(SetGeometryCommand.java:72)
	at
net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81)
	at
net.refractions.udig.tools.edit.BehaviourCommand.execute(BehaviourCommand.java:65)
	at
net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:394)
	at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:325)
	at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:311)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

This does not happen, if i push the commit button before switching to the
second layer. but this should not happen. how can i prevent this exception?
a auto-commit mechanism?

Thanks for your help.

Ingmar Eveslage
-- 
View this message in context: http://www.nabble.com/Problem-with-2-editable-Layers-and-the-Commit-tp15781509p15781509.html
Sent from the udig-devel mailing list archive at Nabble.com.



Back to the top