From: Michael B. <mic...@gm...> - 2011-08-16 08:14:21
|
Hi Mason, I still can't reproduce the NullPointerException you are getting. >From the error trace it looks like the MapViewport class, which holds the screen and map bounds for the map pane, has not created its AffineTransform object which it uses to convert between screen and map coordinates. But this part of the code is pretty well covered by unit tests so I'm puzzled as to why it's breaking. Until I can get it to break for me too, it's hard to know what to suggest. I'll ask one of the other developers to try the tutorial applications on their system and see what happens. Meanwhile, if you are able to delve into the debugger and look for clues as to what is going wrong, and when, that would be helpful. Michael On 16 August 2011 17:49, mason <gro...@ho...> wrote: > Hi Michael, > > The data I used is in 50m-cultural.zip. I think these errors are not related > to data however, because I almost got similar error messages regardless > data. I even tried Feature Tutorial, and I can create shapefiels from csv, > but still I got warning messages. > > Cheers > Mason > > 50m_admin_0_countries.shp > > Aug 16, 2011 10:41:44 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in10 and > FilterFunction_in9 > Aug 16, 2011 10:41:44 AM org.geotools.filter.function.DefaultFunctionFactory > getFunctionName > WARNING: class > org.geotools.filter.function.FilterFunction_bufferWithSegments has name > conflict betwee 'bufferWithSegments' and 'buffer' > Aug 16, 2011 10:41:44 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in9 and > FilterFunction_in8 > Aug 16, 2011 10:41:44 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function area clash between FilterFunction_area and AreaFunction > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException > at java.awt.geom.AffineTransform.<init>(Unknown Source) > at org.geotools.map.MapViewport.getScreenToWorld(MapViewport.java:351) > at org.geotools.swing.JMapPane.getScreenToWorldTransform(JMapPane.java:783) > at > org.geotools.swing.tool.MapToolManager.convertEvent(MapToolManager.java:198) > at > org.geotools.swing.tool.MapToolManager.mouseEntered(MapToolManager.java:152) > at java.awt.AWTEventMulticaster.mouseEntered(Unknown Source) > at java.awt.AWTEventMulticaster.mouseEntered(Unknown Source) > at java.awt.Component.processMouseEvent(Unknown Source) > at javax.swing.JComponent.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.trackMouseEnterExit(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 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(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) > > 50m_populated_places.shp > > Aug 16, 2011 10:48:00 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in9 and > FilterFunction_in10 > Aug 16, 2011 10:48:00 AM org.geotools.filter.function.DefaultFunctionFactory > getFunctionName > WARNING: class > org.geotools.filter.function.FilterFunction_bufferWithSegments has name > conflict betwee 'bufferWithSegments' and 'buffer' > Aug 16, 2011 10:48:00 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in10 and > FilterFunction_in8 > Aug 16, 2011 10:48:00 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function area clash between AreaFunction and FilterFunction_area > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException > at java.awt.geom.AffineTransform.<init>(Unknown Source) > at org.geotools.map.MapViewport.getScreenToWorld(MapViewport.java:351) > at org.geotools.swing.JMapPane.getScreenToWorldTransform(JMapPane.java:783) > at > org.geotools.swing.tool.MapToolManager.convertEvent(MapToolManager.java:198) > at > org.geotools.swing.tool.MapToolManager.mouseEntered(MapToolManager.java:152) > at java.awt.AWTEventMulticaster.mouseEntered(Unknown Source) > at java.awt.AWTEventMulticaster.mouseEntered(Unknown Source) > at java.awt.Component.processMouseEvent(Unknown Source) > at javax.swing.JComponent.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.trackMouseEnterExit(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 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(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) > 50m_admin_1_states_provinces_shp.shp > Aug 16, 2011 10:50:46 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function area clash between FilterFunction_area and AreaFunction > Aug 16, 2011 10:50:46 AM org.geotools.filter.function.DefaultFunctionFactory > getFunctionName > WARNING: class > org.geotools.filter.function.FilterFunction_bufferWithSegments has name > conflict betwee 'bufferWithSegments' and 'buffer' > Aug 16, 2011 10:50:46 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in8 and > FilterFunction_in9 > Aug 16, 2011 10:50:46 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in9 and > FilterFunction_in10 > > > Feature Tutorial Csv2Shape > > Header: LAT, LON, CITY, NUMBER > Aug 16, 2011 10:56:00 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in8 and > FilterFunction_in10 > Aug 16, 2011 10:56:00 AM org.geotools.filter.function.DefaultFunctionFactory > getFunctionName > WARNING: class > org.geotools.filter.function.FilterFunction_bufferWithSegments has name > conflict betwee 'bufferWithSegments' and 'buffer' > Aug 16, 2011 10:56:00 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function in10 clash between FilterFunction_in10 and > FilterFunction_in9 > Aug 16, 2011 10:56:00 AM org.geotools.filter.function.DefaultFunctionFactory > loadFunctions > WARNING: Function area clash between FilterFunction_area and AreaFunction > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-method-JMapFrame-showMap-tp6578002p6690376.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |