Ian Turton ha scritto:
> Well son of StyledMapLayer - as a result of the demise of SML with the
> arrival of 2.2.x I've put together a new class for drawing interactive
> maps. Its called JMapPane to show its swing roots and (at the moment)
> takes a GTRenderer and a MapContext and draws them. There is a mouse
> listener provided that gives basic one click zooming and panning and
> I've thrown in some simple actions for use in toolbars and menus to
> control the mode the viewer is in.
>
> If people would look it over and kick the tyres etc then I'd be
> grateful. its at http://svn.geotools.org/geotools/trunk/spike/ian/ and
> includes a mapviewer app that will render a styled map of the US.
>   
Well, in my case it just throws tons of exceptions :-)
Maybe you could add your classpath as well? I suspect the second error 
is classpath related,
but I cannot spot it exactly.

In my classpath I've added the following:
jts-1.6
geoapi-pending-snapthot (also tried with 2.0, same result)
gt2-api
gt2-main
gt2-referencing
gt2-render
gt2-shapefile
gt2-epsg-access

Cheers
Andrea

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at edu.psu.geovista.swing.JMapPane.paintComponent(JMapPane.java:117)
    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.paintWithOffscreenBuffer(Unknown Source)
    at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
    at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
    at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
    at java.awt.Container.paint(Unknown Source)
    at sun.awt.RepaintArea.paintComponent(Unknown Source)
    at sun.awt.RepaintArea.paint(Unknown Source)
    at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(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 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)
Env[-124.73142200000001 : -66.969849, 24.955967 : 49.371735]
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 
org.opengis.filter.expression.Expression.evaluate(Ljava/lang/Object;)Ljava/lang/Object;
    at 
org.geotools.filter.BetweenFilterImpl.evaluate(BetweenFilterImpl.java:152)
    at org.geotools.filter.AbstractFilter.contains(AbstractFilter.java:65)
    at 
org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1259)
    at 
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1212)
    at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:507)
    at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:413)
    at edu.psu.geovista.swing.JMapPane.paintComponent(JMapPane.java:137)
    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.paintWithOffscreenBuffer(Unknown Source)
    at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
    at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
    at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
    at java.awt.Container.paint(Unknown Source)
    at javax.swing.JFrame.update(Unknown Source)
    at sun.awt.RepaintArea.updateComponent(Unknown Source)
    at sun.awt.RepaintArea.paint(Unknown Source)
    at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(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 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)




_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to