[Gvsig_english] java.lang.NullPointerException

Vicente Caballero Navarro vicente.caballero at iver.es
Wed Jun 13 12:00:46 CEST 2007


Hi.

The problem is localized when you have a table opened when editing and 
you try to save the changes. This problem has been solved in the next 
version of gvSIG, which is about to appear, but we don't know the exact 
date.

Un saludo.

-- 
Vicente Caballero Navarro
Grupo desarrollo gvSIG.
IVER TI S.A.
C/ Lérida, 20
46005-Valencia
Tlf.+34963354983
www.iver.es
www.gvsig.com


Michael Fecht escribió:
> Hi List,
>
> I'm tried to create new shapefile with gvSIG. Everything wored fine 
> (creating, digitizing, entering attributes) until I tried to finish 
> editition and wanted to save the changes.
>
> The information console prints the following message:
>
> java.lang.NullPointerException
>
> Whats wrong?
>
> Michael
>
> Here ist the logging from the shell:
>
> DEBUG [AWT-EventQueue-1] (NotificationManager.java:99) - 
> java.lang.NullPointerException
> java.lang.NullPointerException
>         at 
> com.iver.cit.gvsig.fmap.drivers.shp.IndexedShpDriver.getPositionForRecord(IndexedShpDriver. 
>
> java:870)
>         at 
> com.iver.cit.gvsig.fmap.drivers.shp.IndexedShpDriver.getShape(IndexedShpDriver.java:352) 
>
>         at 
> com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter.getShape(VectorialFileAdapter.java:165) 
>
>         at 
> com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter.getFeature(VectorialFileAdapter.java:23 
>
> 7)
>         at 
> com.iver.cit.gvsig.fmap.edition.VectorialEditableAdapter.getRow(VectorialEditableAdapter.ja 
>
> va:485)
>         at 
> com.iver.cit.gvsig.project.documents.table.gui.Table$DataSourceDataModel.getValueAt(Table.j 
>
> ava:1251)
>         at javax.swing.JTable.getValueAt(JTable.java:1771)
>         at javax.swing.JTable.prepareRenderer(JTable.java:3724)
>         at 
> javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)
>         at 
> javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
>         at 
> javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
>         at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
>         at javax.swing.JComponent.paintComponent(JComponent.java:541)
>         at javax.swing.JComponent.paint(JComponent.java:808)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JViewport.paint(JViewport.java:722)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at javax.swing.JComponent.paint(JComponent.java:817)
>         at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
>         at javax.swing.JComponent.paintChildren(JComponent.java:647)
>         at 
> javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4794)
>         at 
> javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
>         at javax.swing.JComponent.paint(JComponent.java:798)
>         at 
> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
>         at 
> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
>         at 
> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
>         at java.awt.Container.paint(Container.java:1312)
>         at sun.awt.RepaintArea.paint(RepaintArea.java:177)
>         at 
> sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:405)
>         at java.awt.Component.dispatchEventImpl(Component.java:3678)
>         at java.awt.Container.dispatchEventImpl(Container.java:1627)
>         at java.awt.Window.dispatchEventImpl(Window.java:1606)
>         at java.awt.Component.dispatchEvent(Component.java:3477)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
>         at 
> com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58) 
>
>         at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) 
>
>         at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) 
>
>         at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>         at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> DEBUG [AWT-EventQueue-1] (NewSkin.java:480) - Activando 
> Informationskonsole
>  INFO [Thread-41] (?:?) - datasource closed
>




More information about the Gvsig_internacional mailing list