ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@antbuild.com>
Subject AW: "Bad file descriptor" in image task
Date Tue, 30 Sep 2003 08:29:13 GMT
My experience has been that JAI needs motif native libraries on Solaris with
JDK 1.4. I do not know how this transposes to your
environment.

You might want to run ant -verbose or ant -debug to get a more informative
stack trace of the problem which you encounter.

Cheers,

Antoine

-----Ursprungliche Nachricht-----
Von: __matthewHawthorne [mailto:matth@phreaker.net]
Gesendet: Montag, 29. September 2003 18:57
An: Ant Users List
Betreff: Re: "Bad file descriptor" in image task


Yes, I had X installed and running when I encountered the exception.

It's a strange one, and I'm really not sure what to try next.  In the
meanwhile, I wrote a simple task which is similar to <image>, but calls
the unix "convert" command instead.  It's working out nice so far, but I
would still prefer a pure Java solution if possible.

Thanks for your suggestion.  Are there any other known problems with
JAI?  I'll have to check the website again.

(My messages show up on this list more than 12 hours after I send them,
does anyone else encounter this problem?  I get the messages through gmane.)




Dale Anson wrote:

> Is X installed on the machine you're running this on? I ran into
> problems with image processing on a headless server. Java on Unix
> requires X to be able to load AWT and related classes.
>
> Dale
>
>
> __matthewHawthorne wrote:
>
>> While attempting to use the image task, I ran into this error.
>>
>> Error: IOException occurs when search for propriate codecs.
>>     [image] Occurs in: com.sun.media.jai.codec.ImageCodec
>>     [image] java.io.IOException: Bad file descriptor
>>
>>
>>
>> Has anyone else seen anything like this?
>>
>>
>> thumbnails:
>>     [mkdir] Created dir:
>> /home/subterfusion/files/tech/appdev/projects/parallax-patoca/build/final
>>     [image] Processing File:
>>
/home/subterfusion/files/tech/appdev/projects/parallax-patoca/images/colo/co
lo_01.jpg
>>
>>     Scaling to 100.0% x 100.0%
>>     [image] Error: IOException occurs when search for propriate codecs.
>>     [image] Occurs in: com.sun.media.jai.codec.ImageCodec
>>     [image] java.io.IOException: Bad file descriptor
>>     [image]     at java.io.RandomAccessFile.seek(Native Method)
>>     [image]     at
>>
com.sun.media.jai.codec.FileSeekableStream.readPage(FileSeekableStream.java:
141)
>>
>>     [image]     at
>>
com.sun.media.jai.codec.FileSeekableStream.read(FileSeekableStream.java:181)
>>
>>     [image]     at
>> com.sun.media.jai.codec.SeekableStream.readFully(SeekableStream.java:327)
>>     [image]     at
>> com.sun.media.jai.codec.SeekableStream.readFully(SeekableStream.java:306)
>>     [image]     at
>> com.sun.media.jai.codec.ImageCodec.getDecoderNames(ImageCodec.java:274)
>>     [image]     at
>> com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:80)
>>     [image]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>>     [image]     at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>>
>>     [image]     at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
>>
>>     [image]     at java.lang.reflect.Method.invoke(Method.java:324)
>>     [image]     at
>> javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
>>     [image]     at
>>
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
>>
>>     [image]     at
>>
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperatio
nRegistry.java:481)
>>
>>     [image]     at
>> javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at javax.media.jai.JAI.createNS(JAI.java:1103)
>>     [image]     at javax.media.jai.JAI.create(JAI.java:977)
>>     [image]     at javax.media.jai.JAI.create(JAI.java:1672)
>>     [image]     at
>>
org.apache.tools.ant.taskdefs.optional.image.Image.processFile(Image.java:23
3)
>>
>>     [image]     at
>>
org.apache.tools.ant.taskdefs.optional.image.Image.execute(Image.java:306)
>>
>>     [image]     at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:303)
>>     [image]     at org.apache.tools.ant.Task.perform(Task.java:401)
>>     [image]     at org.apache.tools.ant.Target.execute(Target.java:338)
>>     [image]     at
>> org.apache.tools.ant.Target.performTasks(Target.java:365)
>>     [image]     at
>> org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>>     [image]     at
>> org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>>     [image]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>     [image]     at org.apache.tools.ant.Main.startAnt(Main.java:220)
>>     [image]     at
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:213)
>>     [image]     at
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>>     [image] java.lang.RuntimeException: - Unable to render RenderedOp
>> for this operation.
>>     [image]     at
>>
org.apache.tools.ant.taskdefs.optional.image.Image.processFile(Image.java:24
8)
>>
>>     [image]     at
>>
org.apache.tools.ant.taskdefs.optional.image.Image.execute(Image.java:306)
>>
>>     [image]     at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:303)
>>     [image]     at org.apache.tools.ant.Task.perform(Task.java:401)
>>     [image]     at org.apache.tools.ant.Target.execute(Target.java:338)
>>     [image]     at
>> org.apache.tools.ant.Target.performTasks(Target.java:365)
>>     [image]     at
>> org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>>     [image]     at
>> org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>>     [image]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>     [image]     at org.apache.tools.ant.Main.startAnt(Main.java:220)
>>     [image]     at
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:213)
>>     [image]     at
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>>     [image] Caused by: java.lang.RuntimeException: - Unable to render
>> RenderedOp for this operation.
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:838)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at javax.media.jai.JAI.createNS(JAI.java:1103)
>>     [image]     at javax.media.jai.JAI.create(JAI.java:977)
>>     [image]     at javax.media.jai.JAI.create(JAI.java:1672)
>>     [image]     at
>>
org.apache.tools.ant.taskdefs.optional.image.Image.processFile(Image.java:23
3)
>>
>>     [image]     ... 11 more
>>     [image] --- Nested Exception ---
>>     [image] java.lang.RuntimeException: - Unable to render RenderedOp
>> for this operation.
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:838)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at
>> javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)
>>     [image]     at
>> javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
>>     [image]     at
>> javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
>>     [image]     at javax.media.jai.JAI.createNS(JAI.java:1103)
>>     [image]     at javax.media.jai.JAI.create(JAI.java:977)
>>     [image]     at javax.media.jai.JAI.create(JAI.java:1672)
>>     [image]     at
>>
org.apache.tools.ant.taskdefs.optional.image.Image.processFile(Image.java:23
3)
>>
>>     [image]     at
>>
org.apache.tools.ant.taskdefs.optional.image.Image.execute(Image.java:306)
>>
>>     [image]     at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:303)
>>     [image]     at org.apache.tools.ant.Task.perform(Task.java:401)
>>     [image]     at org.apache.tools.ant.Target.execute(Target.java:338)
>>     [image]     at
>> org.apache.tools.ant.Target.performTasks(Target.java:365)
>>     [image]     at
>> org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>>     [image]     at
>> org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>>     [image]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>     [image]     at org.apache.tools.ant.Main.startAnt(Main.java:220)
>>     [image]     at
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:213)
>>     [image]     at
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>>
>> BUILD FAILED
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message