An internal error occurred during: "Building report". java.lang.NullPointerException

I am using TIBCO Jaspersoft® Studio 6.6.0 - Visual Designer for JasperReports 6.6.0. 

when try to compile a old report, get this:

An internal error occurred during: "Building report".

I am new to jasper, what should I do to correct /by pass this ?

Thank you in advance.




jennifer.zhao-Chin's picture
Joined: Jan 30 2023 - 11:36am
Last seen: 1 month 3 weeks ago

If I rename the report, I was able to pass the error to compile the report, then when to Preview the report, get other error: net.sf.jasperreports.engine.JRRuntimeExcetion: java.lang.NellPointerException: Parameter msg must not be empty

jennifer.zhao-Chin - 1 month 3 weeks ago

1 Answer:

Hello, I'm glad to hear you can now compile the report template.
Are you trying to preview the report in Jaspersoft Studio as well? It seems that an expression somewhere in the template is expecting a value which is not null from the parameter 'msg'.
To look for the expression(s) using $P{msg} the simplest is probably to do a quick search in the source tab (beside the preview tab).
Then once you identify in which object and band the parameter is used you can look at the expression from the designer view and see what's going on.
You will also need to review how the 'msg' parameter's value is set. There could be an issue there as well and its value remains null.
Last test in understand what's going on, try to set a default value to the property 'msg'

rpeguet's picture
Joined: Mar 8 2011 - 2:06am
Last seen: 13 hours 27 min ago