uDIG

Cant edit PostGIS line feature in 1.2-rc2

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: UDIG 1.2.RC2
  • Fix Version/s: UDIG 1.2.RC3
  • Component/s: tools and editing
  • Labels:
    None
  • Environment:
    Win32 - JRE 1.6.0_20-b02, PostGIS 1.5, PostgreSQL 8.4

Description

When editing a line feature from a postgis database, the following error is thrown:

java.lang.IllegalStateException: Must call hasNext before calling next
at org.geotools.jdbc.JDBCFeatureReader.ensureNext(JDBCFeatureReader.java:239)
at org.geotools.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:253)
at org.geotools.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:83)
at org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:197)
at org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:177)
at net.refractions.udig.project.command.provider.FIDFeatureProvider.get(FIDFeatureProvider.java:42)
at net.refractions.udig.project.command.provider.FIDFeatureProvider.get(FIDFeatureProvider.java:1)
at net.refractions.udig.project.internal.commands.edit.SetAttributeCommand.run(SetAttributeCommand.java:102)
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)

Activity

Hide
Jody Garnett added a comment -
I think we managed to fix this one previously; it is just another release candidate has not been made. There is a SNAPSHOT release you can try however.
Show
Jody Garnett added a comment - I think we managed to fix this one previously; it is just another release candidate has not been made. There is a SNAPSHOT release you can try however.
Hide
Jody Garnett added a comment -
Fixed as of -r31752 on trunk; thanks for the bug report.
Show
Jody Garnett added a comment - Fixed as of -r31752 on trunk; thanks for the bug report.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: