This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am hoping that someone might be able to help me. I have an applet that is used to view images. I use JAI to decode and load these TIF images (which are saved on the Applet's web server) to Swing components that allow a user to zoom in and out of the image, inverse the colors, and perform a few other functions. I am using jnlp to deploy the Applet and the associated classes and libraries, and I am trying to do this without signing the jars. Everything works perfectly (I can load images, zoom in and out, flip colors around and everything else), except when I click a button in the viewer that is supposed to interpolate the image (smooth out the rough edges by guessing at pixels). The interpolation method looks like this:
The above code runs completely through, but something breaks down between the completion of the above method and the point where the new image is drawn to my viewer. The error I get is this:
I cannot for the life of me figure out where or why JAI would be running into a security exception, especially when accessing a class that is included in the java runtime. What's more, I have no idea why it is using "sun.awt.image" (all of the awt classes I see being used are from the package "java.awt.image"). Everything works fine if I run this using an applet viewer in my development environment, or if I sign all of the jar files and set up the security permissions in the jnlp files, but I *really* want to avoid having signed jars.
I would greatly appreciate any help anyone has to offer!