Skip to main content

Re: Error: One factory fails for the operation "encode"

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
anilkumarpanda Guest
Offline
Joined: 2011-10-03

I am using JAI to display TIFF images..but the problem is
I am unbale to open 48 bit image..i.e 16 bits per pixel and 4 bands..

It shows the following error..
Error: One factory fails for the operation "tiff"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at
com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
at
multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
at multiband.FileChooser.(FileChooser.java:78)
at multiband.FileChooser.main(FileChooser.java:31)
Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
is not supported.
at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
at
com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
at
com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
... 33 more
Error: One factory fails for the operation "stream"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at
com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
at
multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
at multiband.FileChooser.(FileChooser.java:78)
at multiband.FileChooser.main(FileChooser.java:31)
Caused by: javax.media.jai.util.ImagingException: All factories fail for the
operation "tiff"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
... 24 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 27 more
Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
is not supported.
at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
at
com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
at
com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
... 33 more
Error: One factory fails for the operation "fileload"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
at
multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
at multiband.FileChooser.(FileChooser.java:78)
at multiband.FileChooser.main(FileChooser.java:31)
Caused by: javax.media.jai.util.ImagingException: All factories fail for the
operation "stream"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at
com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
... 15 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 18 more
Caused by: javax.media.jai.util.ImagingException: All factories fail for the
operation "tiff"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
... 24 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 27 more
Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
is not supported.
at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
at
com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
at
com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
... 33 more
Exception in thread "main" javax.media.jai.util.ImagingException: All
factories fail for the operation "fileload"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
at
multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
at multiband.FileChooser.(FileChooser.java:78)
at multiband.FileChooser.main(FileChooser.java:31)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 9 more
Caused by: javax.media.jai.util.ImagingException: All factories fail for the
operation "stream"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at
com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
... 15 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 18 more
Caused by: javax.media.jai.util.ImagingException: All factories fail for the
operation "tiff"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
... 24 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 27 more
Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
is not supported.
at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
at
com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
at
com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
... 33 more
Caused by:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
at
multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
at multiband.FileChooser.(FileChooser.java:78)
at multiband.FileChooser.main(FileChooser.java:31)
Caused by: javax.media.jai.util.ImagingException: All factories fail for the
operation "stream"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at
com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
... 15 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 18 more
Caused by: javax.media.jai.util.ImagingException: All factories fail for the
operation "tiff"
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
... 24 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 27 more
Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
is not supported.
at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
at
com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
at
com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
... 33 more
Java Result: 1
BUILD SUCCESSFUL (total time: 7 seconds)

Can you tell me why exactly is the error occuring ??

jai-interest-2 wrote:
>
>> Caused by: java.lang.RuntimeException: All fill bits preceding EOL code
>> must be 0.
>> at
>> com.sun.media.jai.codecimpl.TIFFFaxDecoder.readEOL(TIFFFaxDecoder.java:1362)
>
> The TIFF image seems to be buggy.
> See also http://forums.java.net/jive/thread.jspa?threadID=14243
>
> -James
> [Message sent by forum member 'jxc' (jxc)]
>
> http://forums.java.net/jive/thread.jspa?messageID=299929
>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rgd
Offline
Joined: 2005-08-23

> Can you tell me why exactly is the error occuring ??

Do you not believe the messages?

> Planar (band-sequential) format TIFF is not supported.

So the specific format the image is in is not supported by the reader.
Try a different reader... there are multiple TIFF plugins around, I
believe. It is possible to read more than 3 bands and 8 bits but is
difficult, not all readers support this.

-Bob

On 10/3/11 4:21 AM, anilkumarpanda wrote:
>
> I am using JAI to display TIFF images..but the problem is
> I am unbale to open 48 bit image..i.e 16 bits per pixel and 4 bands..
>
> It shows the following error..
> Error: One factory fails for the operation "tiff"
> Occurs in: javax.media.jai.ThreadSafeOperationRegistry
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at
> com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
> at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
> at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
> at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
> at
> multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
> at multiband.FileChooser.(FileChooser.java:78)
> at multiband.FileChooser.main(FileChooser.java:31)
> Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
> is not supported.
> at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
> at
> com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
> at
> com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
> at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
> ... 33 more
> Error: One factory fails for the operation "stream"
> Occurs in: javax.media.jai.ThreadSafeOperationRegistry
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at
> com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
> at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
> at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
> at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
> at
> multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
> at multiband.FileChooser.(FileChooser.java:78)
> at multiband.FileChooser.main(FileChooser.java:31)
> Caused by: javax.media.jai.util.ImagingException: All factories fail for the
> operation "tiff"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
> ... 24 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 27 more
> Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
> is not supported.
> at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
> at
> com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
> at
> com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
> at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
> ... 33 more
> Error: One factory fails for the operation "fileload"
> Occurs in: javax.media.jai.ThreadSafeOperationRegistry
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
> at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
> at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
> at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
> at
> multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
> at multiband.FileChooser.(FileChooser.java:78)
> at multiband.FileChooser.main(FileChooser.java:31)
> Caused by: javax.media.jai.util.ImagingException: All factories fail for the
> operation "stream"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at
> com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
> ... 15 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 18 more
> Caused by: javax.media.jai.util.ImagingException: All factories fail for the
> operation "tiff"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
> ... 24 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 27 more
> Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
> is not supported.
> at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
> at
> com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
> at
> com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
> at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
> ... 33 more
> Exception in thread "main" javax.media.jai.util.ImagingException: All
> factories fail for the operation "fileload"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
> at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
> at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
> at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
> at
> multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
> at multiband.FileChooser.(FileChooser.java:78)
> at multiband.FileChooser.main(FileChooser.java:31)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 9 more
> Caused by: javax.media.jai.util.ImagingException: All factories fail for the
> operation "stream"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at
> com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
> ... 15 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 18 more
> Caused by: javax.media.jai.util.ImagingException: All factories fail for the
> operation "tiff"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
> ... 24 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 27 more
> Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
> is not supported.
> at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
> at
> com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
> at
> com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
> at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
> ... 33 more
> Caused by:
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
> at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
> at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2244)
> at multiband.DisplayVolumeSlice.(DisplayVolumeSlice.java:39)
> at
> multiband.DisplayVolumeSliceApp.(DisplayVolumeSliceApp.java:46)
> at multiband.FileChooser.(FileChooser.java:78)
> at multiband.FileChooser.main(FileChooser.java:31)
> Caused by: javax.media.jai.util.ImagingException: All factories fail for the
> operation "stream"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at
> com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122)
> ... 15 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 18 more
> Caused by: javax.media.jai.util.ImagingException: All factories fail for the
> operation "tiff"
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
> at
> javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
> at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
> at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
> ... 24 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
> at
> javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
> ... 27 more
> Caused by: java.lang.RuntimeException: Planar (band-sequential) format TIFF
> is not supported.
> at com.sun.media.jai.codecimpl.TIFFImage.(TIFFImage.java:340)
> at
> com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:112)
> at
> com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:96)
> at com.sun.media.jai.opimage.TIFFRIF.create(TIFFRIF.java:53)
> ... 33 more
> Java Result: 1
> BUILD SUCCESSFUL (total time: 7 seconds)
>
> Can you tell me why exactly is the error occuring ??
>
>
> jai-interest-2 wrote:
>>
>>> Caused by: java.lang.RuntimeException: All fill bits preceding EOL code
>>> must be 0.
>>> at
>>> com.sun.media.jai.codecimpl.TIFFFaxDecoder.readEOL(TIFFFaxDecoder.java:1362)
>>
>> The TIFF image seems to be buggy.
>> See also http://forums.java.net/jive/thread.jspa?threadID=14243
>>
>> -James
>> [Message sent by forum member 'jxc' (jxc)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=299929
>>