Jump to content
We've recently updated our Privacy Statement, available here ×

JVM Crash: Xserver or fonts problem?


2004 IR Help

Recommended Posts

By: bgriff - bgriff

JVM Crash: Xserver or fonts problem?

2005-03-29 02:14

Hi,

I have an urgent problem with where the JVM keeps crashing on me when my program tries to execute the following line of code on HP-UX 11.23 on a HP rx2600 server:

 

JasperPrint jasperPrint = JasperManager.fillReport(jasperReport, parameters, conn);

 

I've been reading a number of threads with similar problems and thought that using the option Djava.awt.headless=true

would solve my problem due to no X Server or Xvfb running but it hasnt.

 

If i try running the following Xvfb command

 

Xvfb :1 -screen 0 1024x800x8

 

I get the following error:

"Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!"

 

The stack trace for the JVM crash shows the following:

 

Stack: [35e81000,35ec1000), sp=35ebe130, free space=244k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V [libjvm.so+0xb91780]

 

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)

j sun.font.FontManager.initIDs()V+0

j sun.font.FontManager.access$000()V+0

j sun.font.FontManager$1.run()Ljava/lang/Object;+10

v ~StubRoutines::call_stub

j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0

j sun.font.FontManager.<clinit>()V+515

v ~StubRoutines::call_stub

j sun.java2d.SunGraphicsEnvironment.addDirFonts(Ljava/lang/String;Ljava/io/File;Ljava/io/FilenameFilter;IZIZZ)V+401

j sun.java2d.SunGraphicsEnvironment.registerFontsInDir(Ljava/lang/String;ZIZZ)V+34

j sun.java2d.SunGraphicsEnvironment.access$200(Lsun/java2d/SunGraphicsEnvironment;Ljava/lang/String;ZIZZ)V+8

j sun.java2d.SunGraphicsEnvironment$1.run()Ljava/lang/Object;+426

v ~StubRoutines::call_stub

j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0

j sun.java2d.SunGraphicsEnvironment.<init>()V+28

j sun.awt.X11GraphicsEnvironment.<init>()V+1

v ~StubRoutines::call_stub

j sun.reflect.NativeConstructorAccessorImpl.newInstance0(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Ljava/lang/Object;+0

j sun.reflect.NativeConstructorAccessorImpl.newInstance([Ljava/lang/Object;)Ljava/lang/Object;+72

j sun.reflect.DelegatingConstructorAccessorImpl.newInstance([Ljava/lang/Object;)Ljava/lang/Object;+5

j java.lang.reflect.Constructor.newInstance([Ljava/lang/Object;)Ljava/lang/Object;+92

j java.lang.Class.newInstance0()Ljava/lang/Object;+118

j java.lang.Class.newInstance()Ljava/lang/Object;+15

j java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+27

j net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv()V+6

j net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(Lnet/sf/jasperreports/engine/JasperReport;Lnet/sf/jasperreports/engine/fill/JRBaseFiller;)V+321

j net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(Lnet/sf/jasperreports/engine/JasperReport;Lnet/sf/jasperreports/engine/fill/JRBaseFiller;)V+3

j net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(Lnet/sf/jasperreports/engine/JasperReport;)V+3

j net.sf.jasperreports.engine.fill.JRFiller.fillReport(Lnet/sf/jasperreports/engine/JasperReport;Ljava/util/Map;Ljava/sql/Connection;)Lnet/sf/jasperreports/engine/JasperPrint;+49

j net.sf.jasperreports.engine.JasperFillManager.fillReport(Lnet/sf/jasperreports/engine/JasperReport;Ljava/util/Map;Ljava/sql/Connection;)Lnet/sf/jasperreports/engine/JasperPrint;+3

j net.sf.jasperreports.engine.JasperManager.fillReport(Lnet/sf/jasperreports/engine/JasperReport;Ljava/util/Map;Ljava/sql/Connection;)Lnet/sf/jasperreports/engine/JasperPrint;+3

j com.anam.reports.ReportsAdHocHttpHandler.generateReport()V+356

j com.anam.reports.ReportsAdHocHttpHandler.handle(Ljava/lang/String;Ljava/lang/String;Lorg/mortbay/http/HttpRequest;Lorg/mortbay/http/HttpResponse;)V+265

j org.mortbay.http.HttpContext.handle(Ljava/lang/String;Ljava/lang/String;Lorg/mortbay/http/HttpRequest;Lorg/mortbay/http/HttpResponse;)Z+97

j org.mortbay.http.HttpContext.handle(Lorg/mortbay/http/HttpRequest;Lorg/mortbay/http/HttpResponse;)Z+406

j org.mortbay.http.HttpServer.service(Lorg/mortbay/http/HttpRequest;Lorg/mortbay/http/HttpResponse;)Lorg/mortbay/http/HttpContext;+185

j org.mortbay.http.HttpConnection.service(Lorg/mortbay/http/HttpRequest;Lorg/mortbay/http/HttpResponse;)Lorg/mortbay/http/HttpContext;+24

j org.mortbay.http.HttpConnection.handleNext()Z+981

j org.mortbay.http.HttpConnection.handle()V+24

j org.mortbay.http.SocketListener.handleConnection(Ljava/net/Socket;)V+66

j org.mortbay.util.ThreadedServer.handle(Ljava/lang/Object;)V+7

j org.mortbay.util.ThreadPool$PoolThread.run()V+125

v ~StubRoutines::call_stub

 

--------------- P R O C E S S ---------------

 

Java Threads: ( => current thread )

0007eb60 JavaThread "DestroyJavaVM" [_thread_blocked, id=1]

004a4d30 JavaThread "Thread-0" [_thread_blocked, id=20]

0049bdb0 JavaThread "pool-1-thread-1" [_thread_blocked, id=19]

=>003ec3a0 JavaThread "PoolThread-1" [_thread_in_vm, id=18]

0039c9e0 JavaThread "PoolThread-0" [_thread_blocked, id=17]

00377600 JavaThread "Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=31002]" [_thread_in_native, id=16]

0024f260 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=14]

0024b290 JavaThread "CompilerThread1" daemon [_thread_blocked, id=13]

00248be0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=12]

00241a10 JavaThread "AdapterThread" daemon [_thread_blocked, id=11]

0023a370 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10]

001b23c0 JavaThread "Finalizer" daemon [_thread_blocked, id=9]

00134690 JavaThread "Reference Handler" daemon [_thread_blocked, id=8]

 

Other Threads:

00061610 VMThread [id=7]

00061950 WatcherThread [id=15]

 

VM state:not at safepoint (normal execution)

 

VM Mutex/Monitor currently owned by a thread: None

 

Heap

PSYoungGen total 76480K, used 18453K [65160000, 6a6b0000, 7a600000)

eden space 65600K, 28% used [65160000,663655e0,69170000)

from space 10880K, 0% used [69c10000,69c10000,6a6b0000)

to space 10880K, 0% used [69170000,69170000,69c10000)

PSOldGen total 174784K, used 0K [3a800000, 452b0000, 65160000)

object space 174784K, 0% used [3a800000,3a800000,452b0000)

PSPermGen total 16384K, used 7057K [36800000, 37800000, 3a800000)

object space 16384K, 43% used [36800000,36ee4508,37800000)

 

Dynamic libraries:

/opt/java1.5/bin/IA64N/java

text:0x00001000-0x000255d0 data:0x00026000-0x000281d8

 

/usr/lib/hpux32/libpthread.so.1

text:0xc0078000-0xc0108de0 data:0x7efef000-0x7eff1448

 

/opt/java1.5/jre/lib/IA64N/server/libjvm.so

text:0xc348a000-0xc491d4f0 data:0x7ed00000-0x7ef39240

 

/usr/lib/hpux32/libdl.so.1

text:0xc0386000-0xc0388660 data:0x7efec000-0x7efec068

 

/usr/lib/hpux32/libc.so.1

text:0xc0109000-0xc03859e0 data:0x7efd0000-0x7efe0f68

 

/usr/lib/hpux32/libm.so.1

text:0xc04ec000-0xc0620dd0 data:0x7efe9000-0x7efe9548

 

/usr/lib/hpux32/librt.so.1

text:0xc346a000-0xc34701d0 data:0x7efe6000-0x7efe61a8

 

/usr/lib/hpux32/libuca.so.1

text:0xc0cdd000-0xc0ce4af0 data:0x7efe5000-0x7efe5150

 

/usr/lib/hpux32/libunwind.so.1

text:0xc0c97000-0xc0cdc7d0 data:0x7efe1000-0x7efe26d0

 

/usr/lib/hpux32/libcl.so.1

text:0xc0f96000-0xc0f96304 data:0x7efcf000-0x7efcf018

 

/usr/lib/hpux32/libCsup.so.1

text:0xc0c48000-0xc0c96e50 data:0x7efc7000-0x7efce5d8

 

/usr/lib/hpux32/libIO77.so.1

text:0xc31ee000-0xc3287c70 data:0x7efb8000-0x7efc2858

 

/opt/java1.5/jre/lib/IA64N/native_threads/libhpi.so

text:0xc491e000-0xc4940d60 data:0x7efa9000-0x7efaa950

 

/opt/java1.5/jre/lib/IA64N/libverify.so

text:0xc4949000-0xc4961120 data:0x7efa6000-0x7efa6ac0

 

/opt/java1.5/jre/lib/IA64N/libjava.so

text:0xc4962000-0xc49af810 data:0x7efa4000-0x7efa5790

 

/opt/java1.5/jre/lib/IA64N/libzip.so

text:0xc49b0000-0xc49de330 data:0x7efa0000-0x7efa1850

 

/opt/java1.5/jre/lib/IA64N/libnet.so

text:0xc7480000-0xc74a9550 data:0x7ef9c000-0x7ef9c7e0

 

/usr/lib/hpux32/libnm.so

text:0xc0ce5000-0xc0d02860 data:0x7ef99000-0x7ef99448

 

/usr/lib/hpux32/libnss_dns.so.1

text:0xc0923000-0xc0930fe0 data:0x7ef98000-0x7ef98370

 

/opt/java1.5/jre/lib/IA64N/libawt.so

text:0xc74aa000-0xc75cea00 data:0x7ef40000-0x7ef6b880

 

/opt/java1.5/jre/lib/IA64N/libmlib_image.so

text:0xc75cf000-0xc79092f0 data:0x7ef95000-0x7ef95b08

 

/opt/java1.5/jre/lib/IA64N/headless/libmawt.so

text:0xc790a000-0xc7917410 data:0x7ef90000-0x7ef907f8

 

/opt/java1.5/jre/lib/IA64N/libfontmanager.so

text:0xc798c000-0xc7a864b0 data:0x7ecf9000-0x7ecffc70

 

 

VM Arguments:

jvm_args: -Xms256m -Xnoclassgc -Djava.awt.headless=true -Djava.util.logging.config.file=logging.properties

java_command: com.anam.reports.ReportsGenerator

 

Please help!

Brendan.

Link to comment
Share on other sites

  • 4 years later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 month later...

I'm having the same problem on MAC OS X 10.6.7

 

extensionType:

net.sf.jasperreports.engine.fonts.FontFamily

Call stack:

com.jaspersoft.ireport.designer.jrctx.JRCTXExtensionsRegistryFactory$1.getExtensions(JRCTXExtensionsRegistryFactory.java:68)
net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:109)
net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:81)
net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:182)
net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:78)
net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)

 

Maybe missing a property setting?

Link to comment
Share on other sites

OK,

 

check your style properties.  If there are no styles defined for the report this will cause the error.  I added a simple style and the error went away.

I was using a Master Report and had only dropped in subreports.  So no styles were defined.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...