amasson Posted July 30, 2012 Share Posted July 30, 2012 I have a JVM crash during a JasperReport generation.After searching the Oracle Java bug database, it seems that I'm not the only one to have this problem:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7177085It's exactly the same problem. I know it's not a bug in JasperReport lib itself,but was this bug observed by others ?and is there a known workaround to avoid it?(A full Tomcat crash has some serious consequences...) I cannot provide a sample code, just some info:- it occurs with JR 4.5.0 (in Tomcat 7) on a Linux with a 64-bit JVM, JDK 1.7.0u3/DK 1.7.0u5.- the report must be generated several times (probably to trigger the JIT compiler)- seems to not occur on Windows, only on Linux Thanks in advance! Post Edited by amasson at 07/30/2012 13:51Post Edited by amasson at 07/30/2012 13:52 Link to comment Share on other sites More sharing options...
amasson Posted July 31, 2012 Author Share Posted July 31, 2012 I have founds this workaround. This option must be added to the JVM command line: -XX:CompileCommand=exclude,net/sf/jasperreports/engine/export/JRGridLayout,horizontallyMergeEmptyCells Link to comment Share on other sites More sharing options...
michael.williamson Posted October 23, 2012 Share Posted October 23, 2012 I have the same issue with Jasper Reports 4.7.1 on JDK 1.7.0_09 on Windows 7 64-bit.Adding -XX:CompileCommand=exclude,net/sf/jasperreports/engine/export/JRGridLayout,horizontallyMergeEmptyCell to the JVM did not resolve the issue. Link to comment Share on other sites More sharing options...
djkrite Posted March 4, 2013 Share Posted March 4, 2013 Seems for large HTML reports I experienced this bug as well, below is some info: ## A fatal error has been detected by the Java Runtime Environment:## SIGSEGV (0xb) at pc=0x00007f6ce10b5eb1, pid=15496, tid=140105359361792## JRE version: 7.0_15-b03# Java VM: Java HotSpot 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)# Problematic frame:# V [libjvm.so+0x719eb1] Node::rematerialize() const+0x1## Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again## If you would like to submit a bug report, please visit:# http://bugreport.sun.com/bugreport/crash.jsp# Current CompileTask: C2: 114309 54 % net.sf.jasperreports.engine.export.JRGridLayout::horizontallyMergeEmptyCells @ 18 (175 bytes) Investigating this lead me here: http://stackoverflow.com/questions/13912090/a-fatal-error-has-been-detected-by-the-java-runtime-environment-sigsegv-0xb-a and here: http://java.dzone.com/articles/dont-use-java-7-are-you Adding the below JVM option worked for me: -XX:-UseLoopPredicate -XX:-LoopLimitCheck This option did not work: -XX:CompileCommand=exclude,net/sf/jasperreports/engine/export/JRGridLayout,horizontallyMergeEmptyCell Link to comment Share on other sites More sharing options...
robertm_1 Posted September 16, 2015 Share Posted September 16, 2015 Thanks djkrite - adding -XX:-UseLoopPredicate -XX:-LoopLimitCheckto the JVM worked for me too (Jasper v3.7.4, Java 1.6.0_36) 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