Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

JAI issue

Last post 07-06-2009, 1:38 PM by alcrus. 2 replies.
Sort Posts: Previous Next
  •  07-02-2009, 11:01 AM 186616

    JAI issue Java

    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

     
  •  07-05-2009, 11:10 PM 186949 in reply to 186616

    Re: JAI issue

    Hello,

     

    It seems to be a JRE issue? I have requested the technical team to help you in this regard.

     


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  07-06-2009, 1:38 PM 187131 in reply to 186616

    Re: JAI issue

    Hello David,

    NoClassDefFoundError exception can be only thrown if class is not found in the classpath. If I'm not mistaken there are no other sources of the problem. So please check classpath definition again and try to find why it's not visible to the application. Another possible solution is copy all JAI and JAI-IO jars to JRE/lib/ext/ folder and restart Coldfusion.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
View as RSS news feed in XML