Hello,
I am currently using Aspose.Slides with Coldfusion 8 and have had much success with it. Having developed an application using the Java version on my local machine I moved the code to our testing server. The application now breaks when calling slide.getThumbnail with the following error:
| 8340
|
java.lang.NoClassDefFoundError: com/sun/media/jai/codec/ByteArraySeekableStream
|
|
28341
|
at com.aspose.slides.PPImage.do(SourceFile:343)
|
|
28342
|
at com.aspose.slides.PPImage.getRenderedImage(SourceFile:304)
|
|
28343
|
at com.aspose.slides.PictureFrame.do(SourceFile:198)
|
|
28344
|
at com.aspose.slides.Slide.getThumbnail(SourceFile:1421)
|
Our testing server has the same setup as my local machine. Both use the same version of Aspose.slides, JRE, Coldfusion server, JAI and JAI IO jars are identical.
I set up a test page on both machines and called com/sun/media/jai/codec/ByteArraySeekableStream directly with a simple piece of code. This worked successfully on both machines. The result from the test server was:
object of com.sun.media.jai.codec.ByteArraySeekableStream
|
| Class Name |
| com.sun.media.jai.codec.ByteArraySeekableStream |
| Methods |
|
| Method
|
Return Type
|
| available() |
int |
| canSeekBackwards() |
boolean |
| close() |
void |
| getFilePointer() |
long |
| length() |
long |
| read(byte[], int, int) |
int |
| read() |
int |
| seek(long) |
void |
| skipBytes(int) |
int |
|
We have checked for duplicate JAI jar files on the testing server and there is only one location that contains these. This location is properly set in the class path for the Coldfusion JRE.
Any help with this issue would be greatly appreciated.
-David Armstrong