johann Sorel ha scritto:
> hello again,
> 
> 
> I'm beginning a map2d on wich we should be able to edit geometries. I started 
> with adding point geometry on a shape and it stuck at the second add.
> 
> A .fix file is created and blocks the new add, it keeps saying "transaction 
> not close"... but i'm sure it is close.

> the error :
> java.io.IOException: Unable to delete original file: 
> file:/H:/DEV/GEOTOOLS/modules/unsupported/widgets-swing-pending/target/classes/org/geotools/gui/swing/demo/shape/test_point.fix
>         at 
> org.geotools.data.shapefile.ShapefileDataStore.copyAndDelete(ShapefileDataStore.java:1178)
>         at 
> org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.access$2000(IndexedShapefileDataStore.java:112)
>         at 
> org.geotools.data.shapefile.indexed.IndexedShapefileDataStore$Writer.clean(IndexedShapefileDataStore.java:1538)
>         at 
> org.geotools.data.shapefile.indexed.IndexedShapefileDataStore$Writer.close(IndexedShapefileDataStore.java:1606)
>         at 
> org.geotools.data.TransactionStateDiff.applyDiff(TransactionStateDiff.java:264)
>         at 
> org.geotools.data.TransactionStateDiff.commit(TransactionStateDiff.java:149)
>         at 
> org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:181)
>         at 
> org.geotools.gui.swing.map.map2d.DefaultEditableMap2D.createPoint(DefaultEditableMap2D.java:254)
> 
> second error :
> GRAVE: There's code leaving transaction unclosed. Call Transaction.close() 
> after using them to ensure they do not hold state such as JDCB connections or 
> file handles

Ha, this is http://jira.codehaus.org/browse/GEOT-1574. Unfortunately 
no-one has had the time to redo the locking in shapefile, and I think
this problem occurs only on windows...

Long story short, shapefile locking mechanism is severely broken, and 
it's no small job to fix it...

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to