I've attached a copy of an exception I received when trying to render a GeoTiff image.
I was wondering if anyone could suggest a solution.
I believe that it is due to the evil effects of using the JAI (which seems to be a recurrent theme in my postings here). Anyway, I am trying to write an Eclipse RCP plug-in that uses GeoTools 2.3.0. I have created a mega bundle of all the 2.3.0 jar
files as well as the Java I/O jar's.

Now, an additional question. So far, I've been resisting using the -Pnojai option
that's been discussed here because I am working on a desktop application and
wanted to get the extra performance provided by the JAI. Well... I'm giving in.
So I've decided to use the trunk build. This brings me to a very problematic
issue. I have been over to the http://www.geotools.org website and I'm afraid that I can't find an instruction on how to download and build from the trunks. Now I hate to ask this, but could somebody point me in the right direction. I KNOW it's got to be there somewhere but I haven't found it and I am rather at my wits end.

Thanks in advance for your help.

Gary

GridCoverageRenderer.java:96  reads:

private final static RenderingHints NOCACHE_HINT = new RenderingHints(JAI.KEY_TILE_CACHE, null);



Mar 30, 2007 12:58:08 PM org.geotools.renderer.lite.StreamingRenderer processStylers
SEVERE: null
java.lang.ExceptionInInitializerError
at org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.<clinit>(GridCoverageRenderer.java:96) at org.geotools.renderer.lite.StreamingRenderer.renderRaster(StreamingRenderer.java:1725) at org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1586) at org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1530) at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1472) at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:687) at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:430)
at com.sonalysts.nimbusTestClient.MapGraphics.renderMap(MapGraphics.java:391)
at com.sonalysts.nimbusTestClient.MapCanvasEventListener.paintControl(MapCanvasEventListener.java:52)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:83)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1285)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3299)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1932)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.sonalysts.nimbusTestClient.Application.run(Application.java:20)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.ClassCastException: com.sun.media.jai.imageioimpl.ImageReadWriteSpi at javax.media.jai.OperationRegistry.registerServices(OperationRegistry.java:2047) at javax.media.jai.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:612) at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:365)
at javax.media.jai.JAI.<clinit>(JAI.java:560)
... 38 more





Gary W. Lucas
Sonalysts, Inc.
215 Parkway North
Waterford CT 06320, USA
(860) 326-3682  
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to