I am new to Geotools and starting to go through all of the samples and  
tutorials that I find in the user guide.  I have run into a bit of an issue  
when I 
try to look at various shape files using ShapeLab.  Fairly often  when I 
select a shape file to view I get numerous failures as the module is  
attempting 
to paint the screen.  The failures are all the same.  Just  one after the 
other.  Here is an example:
 
Mar 29, 2008 9:55:39 AM org.geotools.renderer.lite.StreamingRenderer  
processStylers
SEVERE: java.awt.Color
java.lang.ClassCastException:  java.awt.Color
at  
org.geotools.renderer.style.SLDStyleFactory.evalToColor(SLDStyleFactory.java:1447)
at  
org.geotools.renderer.style.SLDStyleFactory.getStrokePaint(SLDStyleFactory.java:986)
at  
org.geotools.renderer.style.SLDStyleFactory.createLineStyle(SLDStyleFactory.java:398)
at  
org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:332)
at  
org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:295)
at  
org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1736)
at  
org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1663)
at  
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1607)
at  
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:649)
at  
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:508)
at  
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:457)
at  org.geotools.gui.swing.JMapPane.paintComponent(JMapPane.java:501)
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)
 
I am still new enough to Geotools to struggle with knowing which direction  
to take when attempting to debug a problem.  What should I look for  here?  
What can cause this problem.  It occurs when I set the frame to  visible and it 
starts painting.  
 
Glenn Puckett
Lexington, Kentucky
 
 



**************Create a Home Theater Like the Pros. Watch the video on AOL 
Home.      
(http://home.aol.com/diy/home-improvement-eric-stromer?video=15&ncid=aolhom00030000000001)
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to