opsman
Member since : Jul 8, 2005
Messages : 1
|
Jul 8, 2005 at 9:14 PM
We've been using the latest version (2.5) of the PJA toolkit for rendering images along with JDK 1.4.2 and there have been no issues. We recently decided that an upgrade to JDK 1.5 was warrented due to performance gains over the 1.4.x versions. Initial performance test results have been promising.
However, since the upgrade we can no longer render images and now generate the following AbstractMethodError messages - see the bottom of this posting.
After digging around on Google and eTeks website it's apparent to me that the PJA toolkit version 2.5 isn't comatible with JDK 1.5 after viewing the following eTeks forum posting from "aljubarrota" on January 14, 2005:
"JDK 1.5 now has a concept of "font configuration" (as opposed to just "font properties" in JDK 1.4.x). In java.awt.SunGraphicsEnvironment, they've added two new overrides of abstract methods:
protected abstract FontConfiguration createFontConfiguration();
public abstract FontConfiguration createFontConfiguration(boolean, boolean);
and dropped:
protected sun.awt.FontProperties createFontProperties();
The last drop of the PJA implements the latter method in PJAGraphicsEnvironment.
The JDK 1.5 now has FontProperties as being an inner class of PropertiesHandler which is itself a static inner class of the new FontConfiguration class.
To sum up, looks like PJAGraphicsEnvironment will need the implementations of the new methods (createFontConfiguration). There might be a lot more of this kind of problem (I only researched this specific issue since I've been seeing this problem as well)."
It has been over a year since the last release of the PJA toolkit. Are there plans to release a JDK 1.5-compatible version of the PJA toolkit anytime soon? Or is there a viable, tried-and-true workaround for this issue? Any help concerning this matter will be greatly appreciated.
===============================================
Errors:
error while running scheduled report: class java.lang.AbstractMethodError runtime error while filling report: sun.java2d.SunGraphicsEnvironment.createFontConfiguration()Lsun/awt/FontConfiguration;
java.lang.AbstractMethodError: sun.java2d.SunGraphicsEnvironment.createFontConfiguration()Lsun/awt/FontConfiguration;
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:186)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:94)
at com.eteks.java2d.PJAGraphicsEnvironment.<init>(PJAGraphicsEnvironment.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:102)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:213)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:127)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:119)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:111)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:222)
at net.sf.jasperreports.engine.JasperManager.fillReport(JasperManager.java:741)
at com.solvent.reports.service.providers.impl.ReportFillerThread.run(ReportFillerThread.java:77)
NESTED BY :
net.sf.jasperreports.engine.JRException: class java.lang.AbstractMethodError runtime error while filling report: sun.java2d.SunGraphicsEnvironment.createFontConfiguration()Lsun/awt/FontConfiguration;
at com.solvent.reports.service.providers.impl.ReportFillerThread.run(ReportFillerThread.java:85)
Caused by: java.lang.AbstractMethodError: sun.java2d.SunGraphicsEnvironment.createFontConfiguration()Lsun/awt/FontConfiguration;
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:186)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:94)
at com.eteks.java2d.PJAGraphicsEnvironment.<init>(PJAGraphicsEnvironment.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:102)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:213)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:127)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:119)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:111)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:222)
at net.sf.jasperreports.engine.JasperManager.fillReport(JasperManager.java:741)
at com.solvent.reports.service.providers.impl.ReportFillerThread.run(ReportFillerThread.java:77)
|