Buggy code:
public class EJJasperReports { static final Logger LOGGER = LoggerFactory . getLogger ( EJJasperReports . class ) ; static Map < String , Object > toParameters ( EJJasperReportParameter ... parameters ) { } public static JasperPrint fillReport ( String reportFile , JRDataSource dataSource , EJJasperReportParameter ... parameters ) { } public static JasperPrint fillReport ( InputStream reportFile , JRDataSource dataSource , EJJasperReportParameter ... parameters ) { } public static JasperPrint fillReport ( JasperReport reportFile , JRDataSource dataSource , EJJasperReportParameter ... parameters ) { } public static JasperPrint fillReport ( String reportFile , Connection connection , EJJasperReportParameter ... parameters ) { } public static JasperPrint fillReport ( EJReportFrameworkManager manager , final EJReport report , EJJasperReportParameter ... parameters ) { try { EJReportJasperReportBuilder builder = new EJReportJasperReportBuilder ( ) ; builder . buildDesign ( report ) ; long start = System . currentTimeMillis ( ) ; EJJasperReports . LOGGER . info ( ( "START<seq2seq4repair_space>Genarate<seq2seq4repair_space>EjReport<seq2seq4repair_space>-><seq2seq4repair_space>Jasper<seq2seq4repair_space>Report<seq2seq4repair_space>:" + ( report . getName ( ) ) ) ) ; JasperReport jasperReport = builder . toReport ( ) ; List < EJJasperReportParameter > reportParameters = new ArrayList < EJJasperReportParameter > ( ) ; for ( EJApplicationLevelParameter parameter : manager . getApplicationLevelParameters ( ) ) { EJJasperReportParameter jasperReportParameter = new EJJasperReportParameter ( parameter . getName ( ) , parameter . getValue ( ) ) ; reportParameters . add ( jasperReportParameter ) ; } Collection < EJReportParameter > allParameters = report . getParameterList ( ) . getAllParameters ( ) ; for ( EJReportParameter parameter : allParameters ) { EJJasperReportParameter jasperReportParameter = new EJJasperReportParameter ( parameter . getName ( ) , parameter . getValue ( ) ) ; reportParameters . add ( jasperReportParameter ) ; } EJReportBlockContext blockContext = new EJReportBlockContext ( ) { @ Override public JasperReport getBlockReport ( String blockName ) { EJReportBlock block = report . getBlock ( blockName ) ; EJReportJasperReportBuilder sbBuilder = new EJReportJasperReportBuilder ( ) ; sbBuilder . buildDesign ( block ) ; return sbBuilder . toReport ( ) ; } @ Override public JasperReport getBlockReportFixed ( String blockName ) { EJReportBlock block = report . getBlock ( blockName ) ; EJReportJasperReportBuilder sbBuilder = new EJReportJasperReportBuilder ( ) ; <START_BUG> sbBuilder . buildDesignFixed ( block ) ; <END_BUG> return sbBuilder . toReport ( ) ; } } ; EJJasperReportParameter subRPTParameter = new EJJasperReportParameter ( "EJRJ_BLOCK_RPT" , blockContext ) ; reportParameters . add ( subRPTParameter ) ; reportParameters . addAll ( Arrays . asList ( parameters ) ) ; EJJasperReports . LOGGER . info ( ( ( ( "END<seq2seq4repair_space>Genarate<seq2seq4repair_space>EjReport<seq2seq4repair_space>-><seq2seq4repair_space>Jasper<seq2seq4repair_space>Report<seq2seq4repair_space>:" + ( report . getName ( ) ) ) + "<seq2seq4repair_space>TIME(sec):" ) + ( ( ( System . currentTimeMillis ( ) ) - start ) // 1000 ) ) ) ; EJJasperReports . LOGGER . info ( ( "START<seq2seq4repair_space>Filling<seq2seq4repair_space>Report<seq2seq4repair_space>:" + ( report . getName ( ) ) ) ) ; start = System . currentTimeMillis ( ) ; JasperPrint print = EJJasperReports . fillReport ( jasperReport , new org . entirej . report . jasper . data . EJReportDataSource ( report ) , reportParameters . toArray ( parameters ) ) ; report . getActionController ( ) . afterReport ( report ) ; EJJasperReports . LOGGER . info ( ( ( ( "END<seq2seq4repair_space>Filling<seq2seq4repair_space>Report<seq2seq4repair_space>:" + ( report . getName ( ) ) ) + "<seq2seq4repair_space>TIME(sec):" ) + ( ( ( System . currentTimeMillis ( ) ) - start ) // 1000 ) ) ) ; return print ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new EJReportRuntimeException ( e ) ; } } public static JasperPrint fillReport ( InputStream reportFile , Connection connection , EJJasperReportParameter ... parameters ) { } public static JasperPrint fillReport ( JasperReport reportFile , Connection connection , EJJasperReportParameter ... parameters ) { } public static void exportReport ( String reportFile , String outputFile , EJReportExportType type , JRDataSource dataSource , EJJasperReportParameter ... parameters ) { } public static void exportReport ( EJReportFrameworkManager manager , EJReport report , String outputFile , EJJasperReportParameter ... parameters ) { } public static void exportReport ( EJReportFrameworkManager manager , EJReport report , String outputFile , EJReportExportType type , EJJasperReportParameter ... parameters ) { } public static void exportReport ( String reportFile , String outputFile , EJReportExportType type , Connection connection , EJJasperReportParameter ... parameters ) { } public static void exportReport ( InputStream reportFile , String outputFile , EJReportExportType type , JRDataSource dataSource , EJJasperReportParameter ... parameters ) { } public static void exportReport ( InputStream reportFile , String outputFile , EJReportExportType type , Connection connection , EJJasperReportParameter ... parameters ) { } public static void exportReport ( EJReportExportType type , JasperPrint print , String outputFile ) { } public static void tempRUN ( String reportFile , JRDataSource dataSource ) { } public static void tempEJReportRun ( EJReportFrameworkManager manager , EJReport report , EJJasperReportParameter ... parameters ) { } private static void removeBlankPage ( List < JRPrintPage > pages ) { } }

Fix:
sbBuilder . buildDesign ( block ) ;