Based on your google investigation and expcetion...Yes. It appears you have multiple copies loaded by different class loaders, hence different objects, as object is defined by its fully qualified name and its class loader, and class cast exception arises.
Hm, how does eclipse handle class loading? Does every plugin has its own child class loader or... ? Maybe this is the root of your problem... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Antonello Sent: Wednesday, April 04, 2007 1:22 PM To: User-friendly Desktop Internet GIS Subject: [udig-devel] jai is driving me cray Hi folks, I have (once again) a problem with jai: java.lang.ClassCastException: com.sun.media.jai.imageioimpl.ImageReadWriteSpi at javax.media.jai.OperationRegistry.registerServices(OperationRegistry.java:20 47) at javax.media.jai.ThreadSafeOperationRegistry.registerServices(ThreadSafeOpera tionRegistry.java:612) at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java: 365) at javax.media.jai.JAI.<clinit>(JAI.java:560) So what is the best practice? Udig has it bundled inside the supplied jre, but I guess also in the libs? I read in google that the above error can appear when that one jai installation conflicts with another jai library. Anyone knows the real truth? Also that anyone could please tell me the best way to keep jai only in one place and try to be sure that no product is delivered without it? Thanks for any advice, Cheers, Andrea _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
