Home pageFind It!Contact PJAPJA documentation


 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject "AbstractMethodError" while using PJA over Java SDK 1.4 of HP UX 11/11i


Location : Greenville, SC, US
Member since : Aug 18, 2004
Messages : 2
 Aug 18, 2004 at 9:13 PM
Hi All,

I am trying to use PJA over Java SDK 1.4 of HO Unix 11/11i. In that process, I got 'Abstract Method Error' in "sun.java2d.SunGraphicsEnvironment.createFontProperties()". Please find below the complete stack trace.

java.lang.AbstractMethodError: sun.java2d.SunGraphicsEnvironment.createFontProperties()Lsun/awt/FontProperties;
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:134)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:88)
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:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at net.sf.statcvs.renderer.Chart.<init>(Chart.java:53)
at net.sf.statcvs.renderer.LOCChart.<init>(LOCChart.java:66)
at net.sf.statcvs.output.HTMLOutput.createLOCChart(HTMLOutput.java:300)
at net.sf.statcvs.output.HTMLOutput.createHTMLSuite(HTMLOutput.java:177)

Please suggest and help me in this regard.

Thanks in advance
Vivek C


Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Aug 18, 2004 at 10:50 PM
Please use PJA 2.5 and read this subject http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=243
Manu (moderator/modérateur)


Location : Greenville, SC, US
Member since : Aug 18, 2004
Messages : 2
 Aug 18, 2004 at 11:21 PM
I already looked into and did the same but the same error message is coming up even after the changes.. The issue seems to be with Java API.. do I need to recompile for HP Unix - Java SDK 1.4 (which I downloaded from HP Website). Please suggest..

Thanks in advance,
Vivek C


Location : Iowa City, Iowa, U.S.A.
Member since : May 13, 2003
Messages : 4
 Sep 3, 2004 at 5:09 PM
I was able to resolve the same issue using the patch in message 243. My environment is IBM WebSphere 5.1 on HP-UX 11/11i. You would need to rebuild the JAR files after updating PJAGraphicsEnvironment.java. If you want to keep the same configuration as documented in PJA, you would need to update the patch and set
fontPath = System.getProperty("java.awt.fonts");

Otherwise you would need to set the system property "sun.java2d.fontpath." See my follow-up in 243 for more information.

Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation