2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: W. Stewart - wstewart [JR 1.2.4] VerifyError filling charts sample 2006-06-27 12:03Anyone have any idea what might be causing the VerifyError exception in the following?: $ ant fill Buildfile: build.xml fill: [java] Report : PieChartReport. Filling time : 2653 [java] Report : Pie3DChartReport. Filling time : 892 [java] Report : BarChartReport. Filling time : 1011 [java] Report : Bar3DChartReport. Filling time : 751 [java] Report : StackedBarChartReport. Filling time : 781 [java] Report : StackedBar3DChartReport. Filling time : 741 [java] Report : XYBarChartTimePeriodReport. Filling time : 962 [java] Report : XYBarChartTimeSeriesReport. Filling time : 1081 [java] Report : XYBarChartReport. Filling time : 892 [java] Report : AreaChartReport. Filling time : 691 [java] Report : XYAreaChartReport. Filling time : 791 [java] Report : ScatterChartReport. Filling time : 781 [java] Report : LineChartReport. Filling time : 801 [java] Report : XYLineChartReport. Filling time : 691 [java] Report : TimeSeriesChartReport. Filling time : 851 [java] Report : BubbleChartReport. Filling time : 801 [java] Report : HighLowChartReport. Filling time : 852 [java] Report : CandlestickChartReport. Filling time : 801 [java] Exception in thread "main" java.lang.VerifyError: (class: net/sf/jasperreports/engine/fill/JRFillSubreport, method: evaluate signature: (B)V) Unable to pop operand off an empty stack [java] at net.sf.jasperreports.engine.fill.JRFillDatasetRun.evaluate(JRFillDatasetRun.java:95) [java] at net.sf.jasperreports.engine.fill.JRFillElementDataset.evaluateDatasetRun(JRFillElementDataset.java:176) [java] at net.sf.jasperreports.engine.fill.JRFillChart.evaluateDatasetRun(JRFillChart.java:1768) [java] at net.sf.jasperreports.engine.fill.JRFillChart.evaluateImage(JRFillChart.java:557) [java] at net.sf.jasperreports.engine.fill.JRFillChart.evaluate(JRFillChart.java:546) [java] at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:277) [java] at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:399) [java] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1289) [java] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:631) [java] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228) [java] at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) [java] at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:750) [java] at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:647) [java] at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) [java] at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) [java] at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:188) [java] at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:94) [java] at ChartsApp.main(ChartsApp.java:117) [java] Java Result: 1 BUILD SUCCESSFUL Total time: 17 seconds $ By: W. Stewart - wstewart RE: [JR 1.2.4] VerifyError filling charts sample 2006-06-27 12:42More info: This error occurs when I build the JasperReports library code in Eclipse using the default 1.4 compiler compliance level, but build the chart sample's classes and run the 'fill' target from command-line ant (outside of Eclipse). The latter uses Sun's JDK 1.5.0 compiler and interpreter. Two things seem to make the VerifyError go away: 1) Building everything with JDK 1.5.0 2) Up'ing the compiler compliance level to '5.0' in Eclipse. What are the implications of this for working with pre-built 'jasperreports*.jar' files? Do you need to know the compiler that was used to build 'jasperreports*.jar'? By: Lucian Chirita - lucianc RE: [JR 1.2.4] VerifyError filling charts sam 2006-06-28 00:34Are you sure the issue is related to the JDK versions used to compile/run the code? The exception seems to come from the fact that the compiled classes are partially instrumented by Javaflow. When compiling using Ant, Javaflow instrumentation is performed, but this doesn't happen when using Eclipse to compile. Try performing a clean build using Eclipse and running the samples again. HTH, Lucian By: W. Stewart - wstewart RE: [JR 1.2.4] VerifyError filling charts sam 2006-06-30 08:06 I have an "Ant Builder" configured in Eclipse. Eclipse uses its "Java Builder" to compile the Java files with the JDT compiler. Then the "Ant Builder" runs and performs the rest of the build steps, including javaflow processing and creating the Jar file. As I mentioned in my previous post, it's more than just JDK versions (unless switching the "compiler compliance level" from 1.4 to 5.0 causes Eclipse to use a totally different compiler?) Eclipse/JDT compiled: 5.0 -> works; 1.4 -> doesn't - with all the same build procedures inside Eclipse. Sun JDK 1.5.0 (outside Eclipse w/ command-line Ant) also works. Perhaps javaflow is getting confused by the 1.4 classes produced by the JDT compiler? By: Lucian Chirita - lucianc RE: [JR 1.2.4] VerifyError filling charts sam 2006-07-03 02:18Indeed, Javaflow doesn't seem to correctly instrument classes compiled by Eclipse with 1.4 compatibility. Don't actually have an idea of what exactly is wrong. If you don't necessarily need to use Javaflow for subreports, you could simply skipt the instrumentation.. Regards, Lucian 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