jennifer.zhao-Chin Posted January 30, 2023 Posted January 30, 2023 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".java.lang.NullPointerExceptionI am new to jasper, what should I do to correct /by pass this ?Thank you in advance. Jen
jennifer.zhao-Chin Posted January 30, 2023 Author Posted January 30, 2023 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
Solution Raphaël Peguet Posted February 2, 2023 Solution Posted February 2, 2023 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'
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