EdouardA ha scritto: > Hi, > I got a problem with a software using geotools 2.5.4. Here's the error: > > org.geotools.renderer.lite.StreamingRenderer paint > GRAVE: null > java.lang.NullPointerException > at > org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1580) > at > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:668) > at > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:527) > at > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:476) > at org.geotools.gui.swing.JMapPane.paintComponent(JMapPane.java:504) > at javax.swing.JComponent.paint(JComponent.java:1006) > at javax.swing.JComponent.paintChildren(JComponent.java:843) > at javax.swing.JComponent.paint(JComponent.java:1015) > at javax.swing.JComponent.paintChildren(JComponent.java:843) > at javax.swing.JComponent.paint(JComponent.java:1015) > at javax.swing.JLayeredPane.paint(JLayeredPane.java:559) > at javax.swing.JComponent.paintChildren(JComponent.java:843) > at javax.swing.JComponent.paint(JComponent.java:1015) > at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:34) > at > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60) > at > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97) > at java.awt.Container.paint(Container.java:1722) > at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276) > at sun.awt.RepaintArea.paint(RepaintArea.java:241) > at apple.awt.ComponentModel.handleEvent(ComponentModel.java:268) > at apple.awt.CWindow.handleEvent(CWindow.java:265) > at java.awt.Component.dispatchEventImpl(Component.java:4144) > at java.awt.Container.dispatchEventImpl(Container.java:2068) > at java.awt.Window.dispatchEventImpl(Window.java:1801) > at java.awt.Component.dispatchEvent(Component.java:3903) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) > at > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > > As i didn't write the code i got no idea about it. Actually, the coder > itself neither because it's working on his computer with windows while mine, > a mac, has this error. I also have a load of warning before that but > according to the coder it's not the source (though i can include it). Any > clue or thing i should look into?
Judging from the source: http://svn.osgeo.org/geotools/tags/2.5.4/modules/library/render/src/main/java/org/geotools/renderer/lite/StreamingRenderer.java a NPE at line 1580 can only occur if the data you're trying to renderer does not have any geometry column. How this can happen, I'm not sure, but I invite you to look into whatever is providing the data. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
