JasperReport define 4 possible actions when a resource is missing. These actions are described below.
Using the DynamicReportBuilder
DynamicReportBuilder setWhenResourceMissing(byte whenResourceMissing)
These convenient methods are also available:
setWhenResourceMissingLeaveEmptySpace(), setWhenResourceMissingThrowException(), setWhenResourceMissingShowKey() and setWhenResourceMissingReturnNull()