Franck
Location : Paris
Member since : Apr 14, 2006
Messages : 1
|
Apr 14, 2006 at 10:37 AM
Hi
First, congratulation to the eTeks team for the work done with PJA. Very usefull.
A few months ago, using PJA v2.5, I've successfully developped a Java class that generate preview thumbnails.
Development and tests were done using JRE 1.3.1 on IBM AIX system.
By the time, 2 main things have changed on the server and my class doesn't work anymore :
1) JRE 1.4 and 1.4.2 were installed on the system in complement of the 1.3.1 version but JAVA_HOME is still refering to the 1.3.1 JRE.
2) JRE 1.3.1 were patched
From : build 1.3.1, J2RE 1.3.1 IBM AIX build ca131-20021102
To : build 1.3.1, J2RE 1.3.1 IBM AIX build ca131ifx-20040721a SR7P
I'm using the following Java options :
-Xbootclasspath/a:/home/to/pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava.awt.headless=true
-Djava2d.font.usePlatformFont=false
and I now get a ClassCastException in com.eteks.awt.PJAImage in that part of my code :
{...}
AffineTransform tx = new AffineTransform(); [ok]
{...}
BufferedImage outImage = new BufferedImage(scaledW, scaledH, BufferedImage.TYPE_INT_RGB); [ok]
Graphics2D g2d = outImage.createGraphics(); [ok]
g2d.drawImage(inImage, tx, null); [ClassCastException]
{...}
Since the class still works fine when I force it's excecution with java 1.4 JRE or 1.4.2 JRE, I think the exception is caused by the new build version of my JRE ('ca131ifx-20040721a' instead of previous 'ca131-20021102').
Do you have any idea about what's going wrong ?
Any known issue with this specific JRE version ?
Thanx in advance
--
Franck
|