Home pageFind It!Contact PJAPJA documentation

PJA

 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 JRE coredumps using PJA on HP-UX

helge

Member since : Oct 13, 2003
Messages : 4
 Oct 25, 2004 at 11:11 AM
Hi,

I'm trying to use PJA to avoid having to set DISPLAY at a server that need to do some font stuff. Here's my setup:

JRE: 1.4.2_03
OS: HP-UX 11.11
PJA: 1.5

In .sh file:

vmparam -Djava.awt.headless=true
vmparam -Xbootclasspath/a:$MYLIBS/pja.jar
vmparam -Dawt.toolkit=com.eteks.awt.PJAToolkit
vmparam -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
vmparam -Djava2d.font.usePlatformFont=false
vmparam -Djava.awt.fonts=$MYJREPATH/lib/fonts

Also replaced default font.properties in jre lib dir with PJA version.

I get this error-report from the VM before it crashes:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xC1D4C610
Function=XGetFontPath
Library=/usr/lib/X11R6/libX11.3

Current Java thread:
"SocketListener0-1" prio=5 tid=00091f50 nid=62 lwp_id=6023184 runnable [0x506e1000..0x506de570]
at sun.awt.font.NativeFontWrapper.getFontPath(Native Method)
- locked <5203a208> (a java.lang.Class)
at sun.java2d.SunGraphicsEnvironment.getPlatformFontPath(SunGraphicsEnvironment.java:246)
at sun.java2d.SunGraphicsEnvironment.getBasePlatformFontPath(SunGraphicsEnvironment.java:241)
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:85)
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)
- locked <51fe0718> (a java.lang.Class)
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:257)
at com.eteks.awt.PJAGraphicsManager.getDefaultGraphicsManager(PJAGraphicsManager.java:215)
- locked <52011ae8> (a java.lang.Class)
at com.eteks.awt.PJAToolkit.<clinit>(PJAToolkit.java:256)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.Toolkit$2.run(Toolkit.java:748)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
- locked <51fe7248> (a java.lang.Class)
at javax.swing.ImageIcon.<init>(ImageIcon.java:81)
at javax.swing.ImageIcon.<init>(ImageIcon.java:107)
at com.edb.generic.util.Customer.<init>(Customer.java:38)
at com.edb.generic.util.Customer.getInstance(Customer.java:24)
- locked <51fd8e80> (a java.lang.Class)
at com.edb.management.web.about.WebAbout.<init>(WebAbout.java:37)
at com.edb.management.web.MgmtWebContextFiller.<init>(MgmtWebContextFiller.java:21)
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 com.edb.generic.web.MainServlet.init(MainServlet.java:62)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:361)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:326)
- locked <55a124d8> (a org.mortbay.jetty.servlet.ServletHolder)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:383)
at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:622)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1457)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1409)
at org.mortbay.http.HttpServer.service(HttpServer.java:889)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:829)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:998)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:846)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:345)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:530)



---
Best regards,
Helge Fredriksen

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Oct 25, 2004 at 2:56 PM
I'm not sure Java headless and PJA Toolkit can work together...
Did you try without setting java.awt.headless property to true ?
---
Manu (moderator/modérateur)

helge

Member since : Oct 13, 2003
Messages : 4
 Oct 25, 2004 at 9:51 PM
Sorry, tried without headless, but I still have same problem.
---
Best regards,
Helge Fredriksen

subroto

Location : Bangalore
Member since : Mar 1, 2006
Messages : 1
 Mar 1, 2006 at 11:57 AM
Hi - did you get a resolution for the problem you were facing


Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation