Error loading expression class


A new problem has come up.
I tried compiling one of my master reports using version 1.3.2 but I get the error message as shown below:


Compiling to file... C:\Documents and Settings\....\jasper\placement.jasper -> C:\Program Files\JasperSoft\iReport-1.3.2\
Compilation running time: 1,922.

Filling report...
Locale: English (United States)
Time zone: US/Arizona (Mountain Standard Time)

Error filling print... Error loading expression class : gps_letterhead_01_1175194164156_845910
net.sf.jasperreports.engine.JRException: Error loading expression class : gps_letterhead_01_1175194164156_845910 at at at at at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate( at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate( at net.sf.jasperreports.engine.fill.JRFillBand.evaluate( at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle( at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart( at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport( at net.sf.jasperreports.engine.fill.JRBaseFiller.fill( at net.sf.jasperreports.engine.fill.JRBaseFiller.fill( at net.sf.jasperreports.engine.fill.JRFiller.fillReport( at net.sf.jasperreports.engine.JasperFillManager.fillReport( at net.sf.jasperreports.engine.JasperFillManager.fillReport( at at Source)

Caused by: java.lang.NullPointerException at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.asType( at gps_letterhead_01_1175194164156_845910.<init>(calculator_gps_letterhead_01_1175194164156_845910) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at ... 16 more

Print was not filled. Try using an EmptyDataSource...


When I try to compile the exact same report using version 1.3.1 I SOMETIMES get the same message but SOMETIMES am able to get it to compile and generate the .pdf file with the following message in the output console:


Compiling to file... C:\Documents and Settings\....\jasper\placement.jasper -> C:\Program Files\JasperSoft\iReport-1.3.1\
Compilation running time: 891.

Filling report...
Locale: English (United States)
Time zone: US/Arizona (Mountain Standard Time)

Report fill running time: 672. (pages generated: 1)
Exporting PDF to file (using iText)... C:\Documents and Settings\....\jasper\placement.pdf.

Export running time: 109.
Executing: C:\Program Files\....\Acrobat.exe C:\Documents and Settings\....\jasper\placement.pdf


I observed that the error message in 1.3.1 appears when I attempt to compile the master report in version 1.3.2 and immediately try to compile the same report using version 1.3.1.
I am able to compile it successfully in 1.3.1 only when I compile the subreport in 1.3.1 before compiling the master report also using version 1.3.1.
That's truly odd.
Note that I just recently replaced the old groovy jar with the one you recommended.

What could this be?
I'm actually trying to find out what I can about this.
Will send you word if I do find something else related to this or if I find out what's causing this error.

redwine's picture
Joined: Mar 7 2007 - 1:25am
Last seen: 16 years 6 months ago

1 Answer:

I've the same problem.


Could anyone solve the problem? 


markosca's picture
Joined: Nov 7 2012 - 12:27am
Last seen: 10 years 10 months ago