[Gvsig_desarrolladores] error con capa vectorial

Francisco José Peñarrubia fpenarru en gmail.com
Jue Nov 29 18:40:09 CET 2007


Seguramente tiene que ver con la forma el AUTOMATIC_DATASOURCE,    que 
debería estar jubilado hace tiempo.
No es buena idea (ya lo he dicho muchas veces) que cada 5 segundos se 
abra y cierre el datasource. Ha salido algún fallo más relacionado con 
eso. Incluso en la demo del JRC.
Para mí es una cosa con prioridad MUY alta.

Victor Olaya escribió:
> Hola a todos,
>
> a ver si alguien puede echarme un cable con esto.
>
> Tengo una capa vectorial de lineas. Se ve bien, y si abro la tabla tambien
> tiene todos sus valores en su sitio. Pero si selecciono algún valor en la
> tabla, a veces (no siempre) me tira lo siguiente:
>
> DEBUG [AWT-EventQueue-1] (NotificationManager.java:99) -
> java.lang.NullPointerException
> java.lang.NullPointerException
> at
> com.iver.cit.gvsig.fmap.drivers.dbf.DbaseFile.getStringFieldValue(DbaseFile.
> java:233)
> at
> com.iver.cit.gvsig.fmap.drivers.dbf.DBFDriver.getFieldValue(DBFDriver.java:1
> 40)
> at
> com.hardcode.gdbms.engine.data.file.FileDataSourceAdapter.getFieldValue(File
> DataSourceAdapter.java:153)
> at
> com.hardcode.gdbms.engine.data.DataSourceCommonImpl.getRow(DataSourceCommonI
> mpl.java:18)
> at
> com.hardcode.gdbms.engine.data.AutomaticDataSource.getRow(AutomaticDataSourc
> e.java:290)
> at
> com.iver.cit.gvsig.fmap.layers.SelectableDataSource.getRow(SelectableDataSou
> rce.java:495)
> at
> com.iver.cit.gvsig.fmap.edition.EditableAdapter.getRow(EditableAdapter.java:
> 446)
> at
> com.iver.cit.gvsig.project.documents.table.gui.Table$DataSourceDataModel.get
> ValueAt(Table.java:1264)
> at javax.swing.JTable.getValueAt(Unknown Source)
> at javax.swing.JTable.prepareRenderer(Unknown Source)
> at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
> at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
> at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
> at javax.swing.plaf.ComponentUI.update(Unknown Source)
> at javax.swing.JComponent.paintComponent(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JViewport.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
> at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
> at javax.swing.JComponent._paintImmediately(Unknown Source)
> at javax.swing.JComponent.paintImmediately(Unknown Source)
> at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
> at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
> Source)
> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at
> com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
> Al seleccionar ese mismo registro otra vez puede ser que no falle, y al
> seleccionar uno que no fallaba puede ser que dé fallo, con lo cual supongo
> que no es problema de la tabla.
>
> Por si sirve de algo, el error a veces(pocas) es otro :
>
> DEBUG [AWT-EventQueue-1] (NotificationManager.java:99) -
> java.lang.RuntimeException: DataSource closed too many times
> java.lang.RuntimeException: DataSource closed too many times
> at
> com.hardcode.gdbms.engine.data.file.FileDataSourceAdapter.stop(FileDataSourc
> eAdapter.java:62)
> at
> com.hardcode.gdbms.engine.data.AutomaticDataSource.close(AutomaticDataSource
> .java:115)
> at
> com.hardcode.gdbms.engine.data.AutomaticDataSource.stop(AutomaticDataSource.
> java:58)
> at
> com.iver.cit.gvsig.fmap.layers.SelectableDataSource.stop(SelectableDataSourc
> e.java:286)
> at
> com.iver.cit.gvsig.project.documents.table.gui.Table$DataSourceDataModel.get
> ValueAt(Table.java:1280)
> at javax.swing.JTable.getValueAt(Unknown Source)
> at javax.swing.JTable.prepareRenderer(Unknown Source)
> at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
> at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
> at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
> at javax.swing.plaf.ComponentUI.update(Unknown Source)
> at javax.swing.JComponent.paintComponent(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JViewport.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JLayeredPane.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JComponent.paintChildren(Unknown Source)
> at javax.swing.JComponent.paint(Unknown Source)
> at javax.swing.JLayeredPane.paint(Unknown Source)
> at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
> at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
> at javax.swing.JComponent._paintImmediately(Unknown Source)
> at javax.swing.JComponent.paintImmediately(Unknown Source)
> at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
> at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
> Source)
> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at
> com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
> y las siguientes líneas:
>
> INFO [AWT-EventQueue-1] (AutomaticDataSource.java:117) - datasource closed
> INFO [AWT-EventQueue-1] (AutomaticDataSource.java:84) - timer start
>
> aparecen como 50 veces seguidas.
>
> Alguna idea?
>
> Gracias.
>
> Saludos
>
> ***************************************************
> Victor Olaya Ferrero
> UNEX
> E-mail : volaya en ya.com
>             volaya en unex.es
> My blog: http://volaya.blogspot.com
> ***************************************************
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> gvSIG_desarrolladores mailing list
> gvSIG_desarrolladores en runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores
>   


Más información sobre la lista de distribución gvSIG_desarrolladores