[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] Re: ImageReadWriteSpi cannot be cast to javax.media.jai.OperationRegistrySpi
|
Hi Jody,
I have found the cited Gary's email reporting the JAI OperationRegistrySpi issue and I have forwarded it to you.
Anyway, I'm still investigating on that.
Surfing the web, I have found this thread:
http://forums.java.net/jive/message.jspa?messageID=108456I'm not sure about how much it could be helpful.
Regards,
Daniele
On Tue, Jan 27, 2009 at 10:25 AM, Jody Garnett
<jody.garnett@xxxxxxxxx> wrote:
Daniele I have been unable to get this one to work; the problem appears to be at the imageio-ext level - the class cast exception - the class cast exception has previously been mentioned by Gary on the geotools email list (although I could not see the solution since I changed mail systems).
Jody
On Tue, Jan 27, 2009 at 8:02 PM, Jody Garnett
<jody.garnett@xxxxxxxxx> wrote:
Nope that does not fix it; I need to turn the question back to you guys. Do I need a new JRE for imageioext 1.0.1 to work?Jody
On Tue, Jan 27, 2009 at 7:47 PM, Jody Garnett
<jody.garnett@xxxxxxxxx> wrote:
Hi Daniele:
I built the local geotools; and your change went through - it now uses imageioext 1.0.1. However I had to knock back one thing ... the libs plugin cannot have a J2SE-1.5 execution environment set (if so it does not pick up the jai plugin resulting in the following stack trace).
java.lang.ExceptionInInitializerError
at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:147)
at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:371)
at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:108)
at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:213)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassCastException: com.sun.media.jai.imageioimpl.ImageReadWriteSpi cannot be cast to javax.media.jai.OperationRegistrySpi
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)
... 5 more
I have done a complete clean; and reset the list of jars in the runtime tab. I will let you know when I am able to commit.
Jody
Daniele Romagnoli wrote:
Hi Jody,
I have written a patch for MANIFEST.MF (Not sure if this leverages on refresh.xml or if is it hardcoded).
Apply it from:
trunk/plugins/net.refractions.udig.libs/META-INF
--
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer
--
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer
GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267
http://www.geo-solutions.it-------------------------------------------------------