DMA02 Posted February 15, 2007 Share Posted February 15, 2007 I really need some sort of help on this one.Even just a hint as to what may be the cause. I am using Jasper Reports v1.2.8 on java 1.5 patch level 09. I see in the hs_err_pid file the lineCode:# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)# Problematic frame:# C [fontmanager.dll+0x22b51]# I can tell so far that it is a problem with some native class dealing with Fonts. But how do I fix this? I use a mix of standard window Time New Roman, Aria, and Traditional Arabic fonts in the reports. The report also has 2 sub-reports nested into it. I send the sub-reports as inputstreams rather than the file locations (cos I am doing everyting through JNLP and I don't want to write anything to disk, taking it all from the jar file.) Is there a problem with the fonts I am using?Is it something with jasper that is fixed in 1.3.0 ?Could it be the actual windows print driver ? Any hint at all would be greatly appreciated.Below is the stack tace. Code:[code]## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d262b51, pid=3384, tid=3364## Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)# Problematic frame:# C [fontmanager.dll+0x22b51]#--------------- T H R E A D ---------------Current thread (0x0c7c05a0): JavaThread "Thread-2" [_thread_in_native, id=3364]siginfo: ExceptionCode=0xc0000005, reading address 0x0b1dec3cRegisters:EAX=0x0c774400, EBX=0x07178ce8, ECX=0x00000000, EDX=0x0c3ff1e8ESP=0x0c3ff0ec, EBP=0x0c3ff10c, ESI=0x0c7c5470, EDI=0x0b1deb20EIP=0x6d262b51, EFLAGS=0x00010246Top of Stack: (sp=0x0c3ff0ec)0x0c3ff0ec: 00000000 0b1deb20 0c7c5470 0c3ff1600x0c3ff0fc: 07178ce8 07178ce8 0c7c8a60 000000000x0c3ff10c: 0c3ff134 6d26cd68 0c7c0660 0c3ff1e80x0c3ff11c: 0c774400 0c7c5470 00000000 0c7c05a00x0c3ff12c: 07178ce8 0000000c 0c3ff17c 6d26ccfb0x0c3ff13c: 0c7c0660 0c3ff1e8 0c7c5470 010000000x0c3ff14c: 000003f2 00000000 00000000 0c3ff1600x0c3ff15c: 07178ce8 0c7c8b30 0c7c8a60 00000000 Instructions: (pc=0x6d262b51)0x6d262b41: 57 8b 78 04 89 4d fc 74 06 8d 46 14 50 eb 01 510x6d262b51: ff b7 1c 01 00 00 e8 5a f4 fe ff 8b 46 04 59 89 Stack: [0x0c3c0000,0x0c400000), sp=0x0c3ff0ec, free space=252kNative frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)C [fontmanager.dll+0x22b51]C [fontmanager.dll+0x2cd68]C [fontmanager.dll+0x2ccfb]j sun.font.FileFont.getGlyphOutline(JIFF)Ljava/awt/geom/GeneralPath;+0j sun.font.FileFontStrike.getGlyphOutline(IFF)Ljava/awt/geom/GeneralPath;+11j sun.font.CompositeStrike.getGlyphOutline(IFF)Ljava/awt/geom/GeneralPath;+15j sun.font.StandardGlyphVector$GlyphStrike.appendGlyphOutline(ILjava/awt/geom/GeneralPath;FF)V+46j sun.font.StandardGlyphVector.getGlyphsOutline(IIFF)Ljava/awt/Shape;+82j sun.font.StandardGlyphVector.getOutline(FF)Ljava/awt/Shape;+9j sun.print.PathGraphics.drawGlyphVector(Ljava/awt/font/GlyphVector;FF)V+20j sun.font.ExtendedTextSourceLabel.handleDraw(Ljava/awt/Graphics2D;FF)V+7j sun.font.Decoration$DecorationImpl.drawTextAndEmbellishments(Lsun/font/Decoration$Label;Ljava/awt/Graphics2D;FF)V+5j sun.font.Decoration$DecorationImpl.drawTextAndDecorations(Lsun/font/Decoration$Label;Ljava/awt/Graphics2D;FF)V+185J sun.font.ExtendedTextSourceLabel.draw(Ljava/awt/Graphics2D;FF)VJ java.awt.font.TextLine.draw(Ljava/awt/Graphics2D;FF)VJ java.awt.font.TextLayout.draw(Ljava/awt/Graphics2D;FF)Vv ~RuntimeStub::alignment_frame_return Runtime1 stubj net.sf.jasperreports.engine.export.TextRenderer.draw(Ljava/awt/font/TextLayout;«»)V+47j net.sf.jasperreports.engine.export.TextRenderer.renderParagraph(Ljava/text/AttributedCharacterIterator;ILjava/lang/String;«»)V+371J net.sf.jasperreports.engine.export.TextRenderer.render(Ljava/awt/Graphics2D;IIIIIIIIFBBFFIZLnet/sf/jasperreports/engine/util/JRStyledText;Ljava/lang/String;«»)Vj net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportText(Lnet/sf/jasperreports/engine/JRPrintText;«»)V+473j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportElements(Ljava/util/Collection;«»)V+206j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportPage(Lnet/sf/jasperreports/engine/JRPrintPage;«»)V+67j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReportToGraphics2D()V+151j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReport()V+148j net.sf.jasperreports.engine.print.JRPrinterAWT.print(Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)I+96j sun.print.RasterPrinterJob.printPage(Ljava/awt/print/Pageable;I)I+656j sun.print.RasterPrinterJob.print(Ljavax/print/attribute/PrintRequestAttributeSet;«»)V+474j sun.print.RasterPrinterJob.print()V+5j net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(IIZ)Z+329j net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(Lnet/sf/jasperreports/engine/JasperPrint;IIZ)Z+15j net.sf.jasperreports.engine.JasperPrintManager.printPages(Lnet/sf/jasperreports/engine/JasperPrint;IIZ)Z+4j net.sf.jasperreports.engine.JasperPrintManager.printReport(Lnet/sf/jasperreports/engine/JasperPrint;Z)Z+14j net.sf.jasperreports.view.JRViewer$20.run()V+8j java.lang.Thread.run()V+11v ~StubRoutines::call_stubV [jvm.dll+0x86e84]V [jvm.dll+0xddead]V [jvm.dll+0x86d55]V [jvm.dll+0x86ab2]V [jvm.dll+0xa16b2]V [jvm.dll+0x10f4ac]V [jvm.dll+0x10f47a]C [MSVCRT.dll+0x2a3b0]C [kernel32.dll+0xb50b]Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)j sun.font.FileFont.getGlyphOutline(JIFF)Ljava/awt/geom/GeneralPath;+0j sun.font.FileFontStrike.getGlyphOutline(IFF)Ljava/awt/geom/GeneralPath;+11j sun.font.CompositeStrike.getGlyphOutline(IFF)Ljava/awt/geom/GeneralPath;+15j sun.font.StandardGlyphVector$GlyphStrike.appendGlyphOutline(ILjava/awt/geom/GeneralPath;FF)V+46j sun.font.StandardGlyphVector.getGlyphsOutline(IIFF)Ljava/awt/Shape;+82j sun.font.StandardGlyphVector.getOutline(FF)Ljava/awt/Shape;+9j sun.print.PathGraphics.drawGlyphVector(Ljava/awt/font/GlyphVector;FF)V+20j sun.font.ExtendedTextSourceLabel.handleDraw(Ljava/awt/Graphics2D;FF)V+7j sun.font.Decoration$DecorationImpl.drawTextAndEmbellishments(Lsun/font/Decoration$Label;Ljava/awt/Graphics2D;FF)V+5j sun.font.Decoration$DecorationImpl.drawTextAndDecorations(Lsun/font/Decoration$Label;Ljava/awt/Graphics2D;FF)V+185J sun.font.ExtendedTextSourceLabel.draw(Ljava/awt/Graphics2D;FF)VJ java.awt.font.TextLine.draw(Ljava/awt/Graphics2D;FF)VJ java.awt.font.TextLayout.draw(Ljava/awt/Graphics2D;FF)Vv ~RuntimeStub::alignment_frame_return Runtime1 stubj net.sf.jasperreports.engine.export.TextRenderer.draw(Ljava/awt/font/TextLayout;«»)V+47j net.sf.jasperreports.engine.export.TextRenderer.renderParagraph(Ljava/text/AttributedCharacterIterator;ILjava/lang/String;«»)V+371J net.sf.jasperreports.engine.export.TextRenderer.render(Ljava/awt/Graphics2D;IIIIIIIIFBBFFIZLnet/sf/jasperreports/engine/util/JRStyledText;Ljava/lang/String;«»)Vj net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportText(Lnet/sf/jasperreports/engine/JRPrintText;«»)V+473j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportElements(Ljava/util/Collection;«»)V+206j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportPage(Lnet/sf/jasperreports/engine/JRPrintPage;«»)V+67j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReportToGraphics2D()V+151j net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReport()V+148j net.sf.jasperreports.engine.print.JRPrinterAWT.print(Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)I+96j sun.print.RasterPrinterJob.printPage(Ljava/awt/print/Pageable;I)I+656j sun.print.RasterPrinterJob.print(Ljavax/print/attribute/PrintRequestAttributeSet;«»)V+474j sun.print.RasterPrinterJob.print()V+5j net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(IIZ)Z+329j net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(Lnet/sf/jasperreports/engine/JasperPrint;IIZ)Z+15j net.sf.jasperreports.engine.JasperPrintManager.printPages(Lnet/sf/jasperreports/engine/JasperPrint;IIZ)Z+4j net.sf.jasperreports.engine.JasperPrintManager.printReport(Lnet/sf/jasperreports/engine/JasperPrint;Z)Z+14j net.sf.jasperreports.view.JRViewer$20.run()V+8j java.lang.Thread.run()V+11v ~StubRoutines::call_stub--------------- P R O C E S S ---------------Java Threads: ( => current thread )=>0x0c7c05a0 JavaThread "Thread-2" [_thread_in_native, id=3364] 0x0084cc20 JavaThread "TimerQueue" daemon [_thread_blocked, id=3880] 0x0085f120 JavaThread "DestroyJavaVM" [_thread_blocked, id=3380] 0x00870ab0 JavaThread "AS400 Read Daemon-1" daemon [_thread_in_native, id=3800] 0x00864b70 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3672] 0x008615b0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=844] 0x00852bb0 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3704] 0x00851090 JavaThread "AWT-Shutdown" [_thread_blocked, id=1620] 0x00830e70 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3428] 0x0082e1c0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3420] 0x0082ee70 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1572] 0x0082c720 JavaThread "Finalizer" daemon [_thread_blocked, id=3388] 0x0082b4a0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3272]Other Threads: 0x0082a790 VMThread [id=3356] 0x00833f50 WatcherThread [id=1756]VM state:not at safepoint (normal execution)VM Mutex/Monitor currently owned by a thread: NoneHeap def new generation total 1152K, used 98K [0x02b80000, 0x02cc0000, 0x03060000) eden space 1024K, 3% used [0x02b80000, 0x02b89b40, 0x02c80000) from space 128K, 46% used [0x02c80000, 0x02c8ecc8, 0x02ca0000) to space 128K, 0% used [0x02ca0000, 0x02ca0000, 0x02cc0000) tenured generation total 14896K, used 8977K [0x03060000, 0x03eec000, 0x06b80000) the space 14896K, 60% used [0x03060000, 0x039246c8, 0x03924800, 0x03eec000) compacting perm gen total 16640K, used 16451K [0x06b80000, 0x07bc0000, 0x0ab80000) the space 16640K, 98% used [0x06b80000, 0x07b90e30, 0x07b91000, 0x07bc0000)No shared spaces configured.Dynamic libraries:0x00400000 - 0x0040d000 C:Program FilesJavajre1.5.0_09binjavaw.exe0x7c900000 - 0x7c9b0000 C:WINDOWSsystem32ntdll.dll0x7c800000 - 0x7c8f4000 C:WINDOWSsystem32kernel32.dll0x77dd0000 - 0x77e6b000 C:WINDOWSsystem32ADVAPI32.dll0x77e70000 - 0x77f01000 C:WINDOWSsystem32RPCRT4.dll0x77d40000 - 0x77dd0000 C:WINDOWSsystem32USER32.dll0x77f10000 - 0x77f56000 C:WINDOWSsystem32GDI32.dll0x77c10000 - 0x77c68000 C:WINDOWSsystem32MSVCRT.dll0x629c0000 - 0x629c9000 C:WINDOWSsystem32LPK.DLL0x74d90000 - 0x74dfb000 C:WINDOWSsystem32USP10.dll0x6d6c0000 - 0x6d85b000 C:Program FilesJavajre1.5.0_09binclientjvm.dll0x76b40000 - 0x76b6d000 C:WINDOWSsystem32WINMM.dll0x6bd00000 - 0x6bd0d000 C:WINDOWSsystem32SYNCOR11.DLL0x6d280000 - 0x6d288000 C:Program FilesJavajre1.5.0_09binhpi.dll0x76bf0000 - 0x76bfb000 C:WINDOWSsystem32PSAPI.DLL0x6d690000 - 0x6d69c000 C:Program FilesJavajre1.5.0_09binverify.dll0x6d300000 - 0x6d31d000 C:Program FilesJavajre1.5.0_09binjava.dll0x6d6b0000 - 0x6d6bf000 C:Program FilesJavajre1.5.0_09binzip.dll0x6d000000 - 0x6d169000 C:Program FilesJavajre1.5.0_09binawt.dll0x73000000 - 0x73026000 C:WINDOWSsystem32WINSPOOL.DRV0x76390000 - 0x763ad000 C:WINDOWSsystem32IMM32.dll0x774e0000 - 0x7761c000 C:WINDOWSsystem32ole32.dll0x5ad70000 - 0x5ada8000 C:WINDOWSsystem32uxtheme.dll0x73760000 - 0x737a9000 C:WINDOWSsystem32ddraw.dll0x73bc0000 - 0x73bc6000 C:WINDOWSsystem32DCIMAN32.dll0x10000000 - 0x1002b000 C:Program FilesGNUGnuPGPTD.dll0x77120000 - 0x771ac000 C:WINDOWSsystem32OLEAUT32.DLL0x74720000 - 0x7476b000 C:WINDOWSsystem32MSCTF.dll0x7c9c0000 - 0x7d1d4000 C:WINDOWSsystem32shell32.dll0x77f60000 - 0x77fd6000 C:WINDOWSsystem32SHLWAPI.dll0x773d0000 - 0x774d2000 C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9comctl32.dll0x5d090000 - 0x5d127000 C:WINDOWSsystem32comctl32.dll0x6d240000 - 0x6d27f000 C:Program FilesJavajre1.5.0_09binfontmanager.dll0x605d0000 - 0x605d9000 C:WINDOWSsystem32mslbui.dll0x6d4c0000 - 0x6d4d3000 C:Program FilesJavajre1.5.0_09binnet.dll0x71ab0000 - 0x71ac7000 C:WINDOWSsystem32WS2_32.dll0x71aa0000 - 0x71aa8000 C:WINDOWSsystem32WS2HELP.dll0x71a50000 - 0x71a8f000 C:WINDOWSsystem32mswsock.dll0x662b0000 - 0x66308000 C:WINDOWSsystem32hnetcfg.dll0x71a90000 - 0x71a98000 C:WINDOWSSystem32wshtcpip.dll0x6d4e0000 - 0x6d4e9000 C:Program FilesJavajre1.5.0_09binnio.dll0x6d1c0000 - 0x6d1e3000 C:Program FilesJavajre1.5.0_09bindcpr.dll0x6a900000 - 0x6a96d000 C:WINDOWSSystem32spoolDRIVERSW32X863LMAAB1DA.DLL0x77c00000 - 0x77c08000 C:WINDOWSsystem32VERSION.dll0x763b0000 - 0x763f9000 C:WINDOWSsystem32comdlg32.dll0x6b900000 - 0x6b928000 C:WINDOWSSystem32spoolDRIVERSW32X863LMAAB1DL.DLL0x6c900000 - 0x6c948000 C:WINDOWSSystem32spoolDRIVERSW32X863LMAAB1DF.DLL0x0c870000 - 0x0c976000 C:WINDOWSSystem32spoolDRIVERSW32X863LMAAB1UI.DLL0x76380000 - 0x76385000 C:WINDOWSsystem32MSIMG32.dll0x0c400000 - 0x0c431000 C:WINDOWSSystem32spoolDRIVERSW32X863LMAAB1DD.dll0x77920000 - 0x77a13000 C:WINDOWSsystem32SETUPAPI.dll0x77fe0000 - 0x77ff1000 C:WINDOWSsystem32Secur32.dllVM Arguments:java_command: creditauth.ClientCreditAuthLauncher Type: SUN_STANDARDEnvironment Variables:JAVA_HOME=C:Program FilesJavajdk1.5.0_09CLASSPATH=.;C:Program FilesJavajre1.5.0_09libextQTJava.zipPATH=C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesPC-Doctor for Windowsservices;C:Program FilesCommon FilesGTK2.0bin;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Sunjwsdp-1.6jwsdp-sharedbin;C:Program FilesJavajdk1.5.0_06bin;C:antbin;C:Program Filesgnupg;C:Program FilesQuickTimeQTSystem;C:Program FilesJavajdk1.5.0_09bin;C:antbin;C:Program FilesgnupgUSERNAME=georgeshOS=Windows_NTPROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel--------------- S Y S T E M ---------------OS: Windows XP Build 2600 Service Pack 2CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, htMemory: 4k page, physical 1301484k(597988k free), swap 1534160k(1025668k free)vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for windows-x86, built on Oct 12 2006 01:20:10 by "java_re" with MS VC++ 6.0 Link to comment Share on other sites More sharing options...
DMA02 Posted March 1, 2007 Author Share Posted March 1, 2007 bump :( Link to comment Share on other sites More sharing options...
toasti Posted March 22, 2007 Share Posted March 22, 2007 I have got the same problem.I am using Jasper Reports v1.2.5 on java 1.5 patch level 09. I'm not using explizit fonts but i use a mix of english and arabic Strings in my database. This error occures sometimes but is not reproducable. 1. Do you have a testcase to reproduce this every time?2. Did you test it with jre1.5.0_11? There where some bugfixes done with Fonts by Sun. Link to comment Share on other sites More sharing options...
edikk Posted March 22, 2007 Share Posted March 22, 2007 I had a few problems with JasperReports on Sun JVM. Much of them are disappear when change to BEA JRockit. Try, maybe it help you too. Link to comment Share on other sites More sharing options...
DMA02 Posted March 22, 2007 Author Share Posted March 22, 2007 Don't have a test case. It seems to happen randomly.I once spent a few hours trying to re-produce the problem, must have wasted 200 sheets of paper. Though when it does happen the stack traces (the ones I posted) are the same. I'll try upgrading the jvms to patch level 11 like you mentioned and i'll wait and see if anyone reports any errors. I'll also look into this BEA JRockit vm. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now