gvSIG bugs #4629
Error when finishing editing mode when we add a new field
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | ||||
Category: | Vector editing | |||
Target version: | 2.4.0-2834 (rev. org.gvsig.desktop-2.0.201) | |||
Severity: | Critical | Add-on version: | ||
gvSIG version: | 2.4.0 | Add-on build: | ||
gvSIG build: | 2833 | Add-on resolve version: | ||
Operative System: | Add-on resolve build: | |||
Keywords: | Proyecto: | |||
Has patch: | Hito: | |||
Add-on name: | Unknown |
Description
If we start editing mode, we add a field to the attribute table and we fill in some registers, if we finish editing it doesn't work, we get an error.
I attach log file.
Associated revisions
refs #4629, corregido para que no falla al intentar meter un null en un campo string en un dbf/shp. Metera una cadena vacia.
refs #4629, añadido a terminar edicion desde tabla que muestre un mensaje al usuario en caso de que se produzcan errores.
refs #4629, añadido a terminar edicion vectorial de la capa informe al usuario si se han producido errores.
History
#1
Updated by Mario Carrera about 7 years ago
I add more information: If we fill in all the registers of that new field it works good.
#2
Updated by Antonio Falciano about 7 years ago
- Target version set to 2.4.0-2850-final (rev. org.gvsig.desktop-2.0.220)
I can confirm the bug in build 2833. It happens when there are null cells:
INFO 929064 AWT-EventQueue-0 org.gvsig.vectorediting.swing.impl.DefaultEditingContext - Changes can not be saved in test_layer org.gvsig.vectorediting.lib.api.exceptions.EndEditingException: An error has been produced ending edition. at org.gvsig.vectorediting.swing.impl.DefaultEditingContext.saveChanges(DefaultEditingContext.java:956) at org.gvsig.vectorediting.swing.impl.DefaultEditingContext.doAction(DefaultEditingContext.java:558) at org.gvsig.vectorediting.swing.impl.DefaultEditingContext.endEdition(DefaultEditingContext.java:645) at org.gvsig.vectorediting.app.mainplugin.EditingExtension.execute(EditingExtension.java:124) at org.gvsig.app.project.documents.view.toc.actions.EndEditingTocMenuEntry.execute(EndEditingTocMenuEntry.java:72) at org.gvsig.app.project.documents.view.toc.AbstractTocContextMenuAction.execute(AbstractTocContextMenuAction.java:63) at org.gvsig.app.project.documents.view.toc.gui.FPopupMenu$MenuItem.actionPerformed(FPopupMenu.java:248) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) [...] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: org.gvsig.fmap.dal.exception.WriteException: Exception writing 'C:\Users\Antonio\AppData\Local\Temp\tmp-gvsig\150306791134212.shp'. at org.gvsig.fmap.dal.feature.impl.DefaultFeatureStore.finishEditing(DefaultFeatureStore.java:1466) at org.gvsig.vectorediting.swing.impl.DefaultEditingContext.saveChanges(DefaultEditingContext.java:954) ... 45 more Caused by: org.gvsig.fmap.dal.feature.exception.PerformEditingException: Can't perform changes in 'Shapes'. at org.gvsig.fmap.dal.store.shp.SHPStoreProvider.performChanges(SHPStoreProvider.java:552) at org.gvsig.fmap.dal.feature.impl.DefaultFeatureStore.finishEditing(DefaultFeatureStore.java:1455) ... 46 more Caused by: Error executing action in resource 'MultiResource C:\Users\Antonio\AppData\Local\Temp\tmp-gvsig\150306791134212.shp'. at org.gvsig.fmap.dal.resource.spi.MultiResource.execute(MultiResource.java:316) at org.gvsig.fmap.dal.store.shp.SHPStoreProvider.performChanges(SHPStoreProvider.java:462) ... 47 more Caused by: org.gvsig.fmap.dal.exception.WriteException: Exception writing 'DbaseFileWriter'. at org.gvsig.fmap.dal.store.dbf.utils.DbaseFileWriter.fillBuffer(DbaseFileWriter.java:183) at org.gvsig.fmap.dal.store.dbf.utils.DbaseFileWriter.append(DbaseFileWriter.java:144) at org.gvsig.fmap.dal.store.dbf.DBFFeatureWriter.append(DBFFeatureWriter.java:101) at org.gvsig.fmap.dal.store.shp.SHPFeatureWriter.append(SHPFeatureWriter.java:154) at org.gvsig.fmap.dal.store.shp.SHPStoreProvider$3.run(SHPStoreProvider.java:486) at org.gvsig.fmap.dal.resource.spi.AbstractResource.performExecution(AbstractResource.java:339) at org.gvsig.fmap.dal.resource.spi.MultiResource.execute(MultiResource.java:314) ... 48 more Caused by: java.lang.NullPointerException at org.gvsig.fmap.dal.store.dbf.utils.DbaseFileWriter.safeEncode(DbaseFileWriter.java:358) at org.gvsig.fmap.dal.store.dbf.utils.DbaseFileWriter.encodeField(DbaseFileWriter.java:337) at org.gvsig.fmap.dal.store.dbf.utils.DbaseFileWriter.fillBuffer(DbaseFileWriter.java:180) ... 54 more
#3
Updated by Joaquín del Cerro Murciano about 7 years ago
- Target version changed from 2.4.0-2850-final (rev. org.gvsig.desktop-2.0.220) to 2.4.0-2834 (rev. org.gvsig.desktop-2.0.201)
- Assignee set to Joaquín del Cerro Murciano
- Status changed from New to In progress
#4
Updated by Joaquín del Cerro Murciano about 7 years ago
- Status changed from In progress to Fixed
#5
Updated by Álvaro Anguix almost 7 years ago
- Status changed from Fixed to Closed