[Gvsig_usuarios] Fallo al "Calcular intervalos"
Fernando González Cortés
fernando.gonzalez en iver.es
Mar Jun 7 18:57:11 CEST 2005
Hola David:
El fallo que comentas se debe casi seguro a que el dbf tiene algún
valor vacío o nulo. El error está corregido pero habrá que esperar a la
versión 0.4...
un saludo
Fernando
David Bolufer wrote:
> Sobre un fichero SHP del INE con lo municipios de Valencia, hemos
> agregado al fichero DBF algunos datos estadísticos también
> proporcionados por el INE. La cuestión es que al intentar calcular los
> intervalos sobre cualquier campo añadido, me devuelve los siguientes
> errores.
>
>
>
> La aplicación:
>
>
>
> !PluginServices.Bug en el código! java.lang.NullPointerException: null
> com.iver.cit.gvsig.fmap.rendering.VectorialIntervalLegend.getInterval(VectorialIntervalLegend.java:413)
> com.iver.cit.gvsig.gui.legendmanager.panels.FPanelLegendBreaks.fillTableValues(FPanelLegendBreaks.java:373)
> com.iver.cit.gvsig.gui.legendmanager.panels.FPanelLegendBreaks.access$2(FPanelLegendBreaks.java:294)
> com.iver.cit.gvsig.gui.legendmanager.panels.FPanelLegendBreaks$MyListener.actionPerformed(FPanelLegendBreaks.java:643)
> javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
> Source) javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
> Source) javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
> Source) java.awt.Component.processMouseEvent(Unknown Source)
> java.awt.Component.processEvent(Unknown Source)
> java.awt.Container.processEvent(Unknown Source)
> java.awt.Component.dispatchEventImpl(Unknown Source)
> java.awt.Container.dispatchEventImpl(Unknown Source)
> java.awt.Component.dispatchEvent(Unknown Source)
> java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> java.awt.Container.dispatchEventImpl(Unknown Source)
> java.awt.Window.dispatchEventImpl(Unknown Source)
> java.awt.Component.dispatchEvent(Unknown Source)
> java.awt.EventQueue.dispatchEvent(Unknown Source)
> com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:62)
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
> Source) java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> java.awt.EventDispatchThread.run(Unknown Source)
>
>
>
> La consola JAVA:
>
>
>
> ActionEvent con FIELD_SELECTED
>
> Nombre del campo: POBLACION
>
> WARN [AWT-EventQueue-1] (PluginServices.java:108) - No se encontr≤ la
> traducci≤n para browse
>
> DEBUG [AWT-EventQueue-1] (MapControl.java:255) - Dibujando la imagen
> obtenida Pinto ACTUALIZADO
>
> DEBUG [AWT-EventQueue-1] (MapControl.java:255) - Dibujando la imagen
> obtenida Pinto ACTUALIZADO
>
> ActionEvent con ADD_ALL_VALUES
>
> WARN [AWT-EventQueue-1] (PluginServices.java:108) - No se encontr≤ la
> traducci≤n para browse
>
> DEBUG [AWT-EventQueue-1] (FPanelLegendBreaks.java:301) - elRs.start()
>
> DEBUG [AWT-EventQueue-1] (SelectableDataSource.java:184) -
> dataSource.start()
>
> Nombre del campo de clasificaci≤n: POBLACION
>
> DEBUG [AWT-EventQueue-1] (NotificationManager.java:100) -
> !PluginServices.Bug en el c≤digo!
>
> java.lang.NullPointerException
>
> at
> com.iver.cit.gvsig.fmap.rendering.VectorialIntervalLegend.getInterval(VectorialIntervalLegend.java:413)
>
> at
> com.iver.cit.gvsig.gui.legendmanager.panels.FPanelLegendBreaks.fillTableValues(FPanelLegendBreaks.java:373)
>
> at
> com.iver.cit.gvsig.gui.legendmanager.panels.FPanelLegendBreaks.access$2(FPanelLegendBreaks.java:294)
>
> at
> com.iver.cit.gvsig.gui.legendmanager.panels.FPanelLegendBreaks$MyListener.actionPerformed(FPanelLegendBreaks.java:643)
>
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>
> at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
> Source)
>
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
> Source)
>
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>
> at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
>
> at java.awt.Component.processMouseEvent(Unknown Source)
>
> at java.awt.Component.processEvent(Unknown Source)
>
> at java.awt.Container.processEvent(Unknown Source)
>
> at java.awt.Component.dispatchEventImpl(Unknown Source)
>
> at java.awt.Container.dispatchEventImpl(Unknown Source)
>
> at java.awt.Component.dispatchEvent(Unknown Source)
>
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
> Source)
>
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown
> Source)
>
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>
> at java.awt.Container.dispatchEventImpl(Unknown Source)
>
> at java.awt.Window.dispatchEventImpl(Unknown Source)
>
> at java.awt.Component.dispatchEvent(Unknown Source)
>
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>
> at
> com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:62)
>
> 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)
>
> DEBUG [AWT-EventQueue-1] (MDIFrame.java:927) - Memoria total: 25723192
>
> WARN [AWT-EventQueue-1] (PluginServices.java:108) - No se encontr≤ la
> traducci≤n para Consola de informacion
>
> WARN [AWT-EventQueue-1] (PluginServices.java:108) - No se encontr≤ la
> traducci≤n para Consola de informacion
>
> WARN [AWT-EventQueue-1] (PluginServices.java:108) - No se encontr≤ la
> traducci≤n para activa la ventana
>
> Se pone el timer
>
>
>
>
>
> No entendemos el motivo pues en apariencia el fichero DBF es correcto
> y los campos son numéricos, sin puntos ni caracteres raros
>
>
>
> ¿Alguna idea? Adjunto el fichero DBF...
>
>
>
> Saludos.
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> David Bolufer García
> Área Desarrollo y Sistemas
> dbolufer en netmediaworld.com <blocked::mailto:dbolufer en netmediaworld.com>
>
>
>
> ------------------------------------------------------------------------
>
> **netMedia World™**
> Dirección: Conde Altea, 22-1º-4, 46005 Valencia-España
> Teléfono: +34 96·334·52·22
> FAX: +34 96·334·52·42
>
> ------------------------------------------------------------------------
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>gvSIG_usuarios mailing list
>gvSIG_usuarios en runas.cap.gva.es
>http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios
>
>
Más información sobre la lista de distribución gvSIG_usuarios