Jump to content

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


Go to solution Solved by Raphaël Peguet,

Recommended Posts

Posted

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.NullPointerException

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

Thank you in advance.

 

Jen

 

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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
Posted

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'

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...