Skip to main content

RE: [JAI-IMAGEIO] Unable to use ImageRead operation

1 reply [Last post]
Anonymous

yes this sounds like exactly the cause of your problems.
a plugin or subordinate ClassLoader can see all of its
classes, plus all the classes that its parent ClassLoader
can see. But typically ClassLoaders cannot see the classes
loaded by their children. So if JAI is in the root classloader
and the JAI imageIO tools are in the plugin, JAI itself
won't be able to see your plugin classes, thus causing the
plugin not to be loaded correctly.

does that make sense?

> -----Original Message-----
> From: Christoph Wagner [mailto:campus@zumcampus.de]
> Sent: Monday, February 27, 2006 1:23 PM
> To: interest@jai-imageio.dev.java.net
> Subject: RE: [JAI-IMAGEIO] Unable to use ImageRead operation
>
>
> Hi Brian,
>
> thanks for your time.
>
> > Sounds like your CLASSPATH setting is incorrect.
>
> I just added the Image I/O libs to the same location where
> the main JAI libs reside. Therefore I think they are in the
> classpath. But they are not found by the System Classloader
> but by a plugin classloader loading my plugins. Could this
> make such problems?
>
>
> Regards,
> Christoph Wagner
>
>
> > Brian
> >
> > On Fri, 24 Feb 2006, jai-imageio@javadesktop.org wrote:
> >
> > > Hi,
> > >
> > > today I added the JAI ImageIO libs to my classpath and tried to
> run
> > >
> > > PlanarImage source = JAI.create ("imageread", imageFile);
> > >
> > > but this failed because of
> > >
> > > java.lang.IllegalArgumentException: imageread: No
> > OperationDescriptor is registered in the current operation
> > registry under this name.
> > > at javax.media.jai.JAI.createNS(JAI.java:1070)
> > > at javax.media.jai.JAI.create(JAI.java:973)
> > > at javax.media.jai.JAI.create(JAI.java:1408)
> > > at
> > >
> > > Any idea what might be the reason?
> > > The code runs inside its own classloader where all the JAI
> > libs are added. Could this be the problem?
> > >
> > >
> > >
> > > Regards,
> > > Campus
> > > [Message sent by forum member 'campus' (campus)]
> > >
> > > http://forums.java.net/jive/thread.jspa?messageID=86163
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > interest-unsubscribe@jai-imageio.dev.java.net
> > > For additional commands, e-mail:
> > > interest-help@jai-imageio.dev.java.net
> > >
> > >
> >
> > ----------------
> > Brian Burkhalter
> > Java Media, Imaging, and Graphics
> > Sun Microsystems, Inc.
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > This email message is for the sole use of the intended
> > recipient(s) and may contain confidential and privileged
> > information. Any unauthorized review, use, disclosure or
> > distribution is prohibited.
> > If you are not the intended recipient, please contact the
> > sender by reply email and destroy all copies of the original
> message.
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> > For additional commands, e-mail:
> > interest-help@jai-imageio.dev.java.net
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Christoph Wagner

Hi,

> yes this sounds like exactly the cause of your problems.
> a plugin or subordinate ClassLoader can see all of its
> classes, plus all the classes that its parent ClassLoader can
> see. But typically ClassLoaders cannot see the classes loaded
> by their children. So if JAI is in the root classloader and
> the JAI imageIO tools are in the plugin, JAI itself won't be
> able to see your plugin classes, thus causing the plugin not
> to be loaded correctly.
>
> does that make sense?

yes it does. But in my case alle JARs are loaded by the same custom
classloader.

Regards,
Christoph Wagner

> > -----Original Message-----
> > From: Christoph Wagner [mailto:campus@zumcampus.de]
> > Sent: Monday, February 27, 2006 1:23 PM
> > To: interest@jai-imageio.dev.java.net
> > Subject: RE: [JAI-IMAGEIO] Unable to use ImageRead operation
> >
> >
> > Hi Brian,
> >
> > thanks for your time.
> >
> > > Sounds like your CLASSPATH setting is incorrect.
> >
> > I just added the Image I/O libs to the same location where the
main
> > JAI libs reside. Therefore I think they are in the
> classpath. But they
> > are not found by the System Classloader but by a plugin
classloader
> > loading my plugins. Could this make such problems?
> >
> >
> > Regards,
> > Christoph Wagner
> >
> >
> > > Brian
> > >
> > > On Fri, 24 Feb 2006, jai-imageio@javadesktop.org wrote:
> > >
> > > > Hi,
> > > >
> > > > today I added the JAI ImageIO libs to my classpath and tried
to
> > run
> > > >
> > > > PlanarImage source = JAI.create ("imageread", imageFile);
> > > >
> > > > but this failed because of
> > > >
> > > > java.lang.IllegalArgumentException: imageread: No
> > > OperationDescriptor is registered in the current operation
> > > registry under this name.
> > > > at javax.media.jai.JAI.createNS(JAI.java:1070)
> > > > at javax.media.jai.JAI.create(JAI.java:973)
> > > > at javax.media.jai.JAI.create(JAI.java:1408)
> > > > at
> > > >
> > > > Any idea what might be the reason?
> > > > The code runs inside its own classloader where all the JAI
> > > libs are added. Could this be the problem?
> > > >
> > > >
> > > >
> > > > Regards,
> > > > Campus
> > > > [Message sent by forum member 'campus' (campus)]
> > > >
> > > > http://forums.java.net/jive/thread.jspa?messageID=86163
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > interest-unsubscribe@jai-imageio.dev.java.net
> > > > For additional commands, e-mail:
> > > > interest-help@jai-imageio.dev.java.net
> > > >
> > > >
> > >
> > > ----------------
> > > Brian Burkhalter
> > > Java Media, Imaging, and Graphics
> > > Sun Microsystems, Inc.
> > >
> > >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > This email message is for the sole use of the intended
> > > recipient(s) and may contain confidential and privileged
> > > information. Any unauthorized review, use, disclosure or
> > > distribution is prohibited.
> > > If you are not the intended recipient, please contact the
> > > sender by reply email and destroy all copies of the original
> > message.
> > >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > interest-unsubscribe@jai-imageio.dev.java.net
> > > For additional commands, e-mail:
> > > interest-help@jai-imageio.dev.java.net
> > >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> > For additional commands, e-mail:
> > interest-help@jai-imageio.dev.java.net
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net