Messages of subject
PJA on OS/400 |
clarktrip3
Location : Oklahoma City, OK USA
Member since : May 18, 2004
Messages : 2
|
May 18, 2004 at 8:14 PM
I've seen in a few other topics that this has been done. There have been other questions posted but the authors never answered replies with questions. I'm trying to use PJA 2.4 on OS/400 with JDK 1.3.1, Websphere 5.0.1, Struts, and JasperReports. I've set all of the JVM parameters like the documentation and forums have told people to do. I get the following for a stack trace.
Any help would be greatly appreciated.
Charles
java.lang.UnsatisfiedLinkError: no fontmanager in java.library.path
java/lang/Throwable.(Ljava/lang/String;)V+4 (Throwable.java:85)
java/lang/Error.(Ljava/lang/String;)V+1 (Error.java:41)
java/lang/LinkageError.(Ljava/lang/String;)V+1 (LinkageError.java:34)
java/lang/ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+407 (ClassLoader.java:1363)
java/lang/Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+51 (Runtime.java:744)
java/lang/System.loadLibrary(Ljava/lang/String;)V+6 (System.java:815)
sun/security/action/LoadLibraryAction.run()Ljava/lang/Object;+4 (LoadLibraryAction.java:48)
sun/awt/font/NativeFontWrapper.()V+22 (NativeFontWrapper.java:32)
sun/java2d/SunGraphicsEnvironment.registerFontFile(Ljava/lang/String;Ljava/lang/String;)V+190 (SunGraphicsEnvironment.java:487)
sun/java2d/SunGraphicsEnvironment.initTerminalNames()V+457 (SunGraphicsEnvironment.java:756)
sun/java2d/SunGraphicsEnvironment.initCompositeFonts()V+8 (SunGraphicsEnvironment.java:618)
sun/java2d/SunGraphicsEnvironment$1.run()Ljava/lang/Object;+89 (SunGraphicsEnvironment.java:90)
sun/java2d/SunGraphicsEnvironment.()V+41 (SunGraphicsEnvironment.java:70)
com/eteks/java2d/PJAGraphicsEnvironment.()V+0 (PJAGraphicsEnvironment.java:66)
java/lang/Class.newInstance()Ljava/lang/Object;+14 (Class.java:238)
java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+27 (GraphicsEnvironment.java:53)
dori/jasper/engine/fill/JRBaseFiller.()V+0 (JRBaseFiller.java:120)
dori/jasper/engine/fill/JRFiller.fillReport(Ldori/jasper/engine/JasperReport;Ljava/util/Map;Ldori/jasper/engine/JRDataSource;)Ldori/jasper/engine/JasperPrint;+0 (JRFiller.java:139)
dori/jasper/engine/JasperFillManager.fillReport(Ldori/jasper/engine/JasperReport;Ljava/util/Map;Ldori/jasper/engine/JRDataSource;)Ldori/jasper/engine/JasperPrint;+0 (JasperFillManager.java:350)
dori/jasper/engine/JasperFillManager.fillReport(Ljava/lang/String;Ljava/util/Map;Ldori/jasper/engine/JRDataSource;)Ldori/jasper/engine/JasperPrint;+0 (JasperFillManager.java:286)
dori/jasper/engine/JasperRunManager.runReportToHtmlFile(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ldori/jasper/engine/JRDataSource;)V+0 (JasperRunManager.java:407)
com/candid/actions/CreateSalesReportAction.execute(Lorg/apache/struts/action/ActionMapping
.
.
.
|
clarktrip3
Location : Oklahoma City, OK USA
Member since : May 18, 2004
Messages : 2
|
May 21, 2004 at 1:12 AM
Ok, I've installed the 2.5Beta and recompiled it on my AS/400 with a 1.4.2 compiler. I can't use the headless capability of this version of Java because the AS/400 requires another IBM product that I don't have. I ran the PJAToolkitDemo1.2.sh containing this command:
/qibm/proddata/java400/jdk14/bin/java -Xbootclasspath/a:../lib/pja.jar \
-Dawt.toolkit=com.eteks.awt.PJAToolkit \
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
-Djava2d.font.usePlatformFont=false \
-Djava.awt.fonts=/www/lib/fonts \
-Duser.home=../../pja \
-classpath ../lib/pjatools.jar \
ToolkitDemo
I received this as output:
Toolkit demo
© Copyright 2000-2001 eTeks <info@eteks.com>.
© Copyright 1996,1998 by Jef Poskanzer <jef@acme.com>.
java.lang.ExceptionInInitializerError
at java/lang/Throwable.<init>(Throwable.java:180)
at java/lang/Error.<init>(Error.java:37)
at java/lang/ExceptionInInitializerError.<init>(ExceptionInInitializerError.java:61)
at java/lang/Class.forName(Class.java:141)
at java/awt/Toolkit$2.run(Toolkit.java:748)
at java/awt/Toolkit.getDefaultToolkit(Toolkit.java:739)
at ToolkitDemo.main(ToolkitDemo.java:103)
Caused by: java.lang.NullPointerException
at sun/java2d/SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:139)
at sun/java2d/SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:85)
at com/eteks/java2d/PJAGraphicsEnvironment.<init>(PJAGraphicsEnvironment.java:67)
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 com/eteks/awt/PJAGraphicsManager.isFontInstantiableInternal(PJAGraphicsManager.java:309)
at com/eteks/awt/PJAGraphicsManager.useJava2D(PJAGraphicsManager.java:254)
at com/eteks/awt/PJAGraphicsManager.getDefaultGraphicsManager(PJAGraphicsManager.java:202)
at com/eteks/awt/PJAToolkit.<clinit>(PJAToolkit.java:256)
...
Anyone have any ideas?
Thanks,
Charles
|