Buggy code:
@ ManagedBean ( name = "shippingReportBean" ) public class ShippingReportBean { @ ManagedProperty ( "#{out}" ) ResourceBundle resources ; Calendar now = Calendar . getInstance ( ) ; Calendar c = Calendar . getInstance ( ) ; Calendar d = Calendar . getInstance ( ) ; Calendar e = Calendar . getInstance ( ) ; Calendar f = Calendar . getInstance ( ) ; @ SuppressWarnings ( "unused" ) private BarChartModel dailyQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel weeklyQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel monthlyQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel annualQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel overallQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel dailyFinancialQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel weeklyFinancialQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel monthlyFinancialQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel annualFinancialQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel overallFinancialQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel dailyPayTypeQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel weeklyPayTypeQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel monthlyPayTypeQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel annualPayTypeQueryModel ; @ SuppressWarnings ( "unused" ) private BarChartModel overallPayTypeQueryModel ; private BarChartModel customQueryModel ; private BarChartModel customFinancialModel ; private BarChartModel customPayTypeModel ; Date beginDate ; Date endDate ; private List < OrderCountReportVo > dailyQueryList ; private List < OrderCountReportVo > weeklyQueryList ; private List < OrderCountReportVo > monthlyQueryList ; private List < OrderCountReportVo > annualQueryList ; private List < OrderCountReportVo > overallQueryList ; private List < FinancialReportVo > dailyFinancialQueryList ; private List < FinancialReportVo > weeklyFinancialQueryList ; private List < FinancialReportVo > monthlyFinancialQueryList ; private List < FinancialReportVo > annualFinancialQueryList ; private List < FinancialReportVo > overallFinancialQueryList ; private List < PayTypeReportVo > dailyPayTypeQueryList ; private List < PayTypeReportVo > weeklyPayTypeQueryList ; private List < PayTypeReportVo > monthlyPayTypeQueryList ; private List < PayTypeReportVo > annualPayTypeQueryList ; private List < PayTypeReportVo > overallPayTypeQueryList ; private List < OrderCountReportVo > customQueryList ; private List < FinancialReportVo > customFinancialQueryList ; private List < PayTypeReportVo > customPayTypeQueryList ; String option ; @ EJB ReportServiceLocal reportService ; @ ManagedProperty ( "#{userSessionBean}" ) UserSessionBean userSessionBean ; @ PostConstruct public void init ( ) { } public void dateSetting ( ) { } public void action ( ActionEvent event ) { } public void addMessage ( String summary ) { } public void actionFinancial ( ActionEvent event ) { } public void actionPayType ( ActionEvent event ) { } private BarChartModel initDailyQueryModel ( ) { } private BarChartModel initWeeklyQueryModel ( ) { } private BarChartModel initMonthlyQueryModel ( ) { } private BarChartModel initAnnualQueryModel ( ) { } private BarChartModel initOverallQueryModel ( ) { } private BarChartModel initDailyFinancialQueryModel ( ) { } private BarChartModel initWeeklyFinancialQueryModel ( ) { } private BarChartModel initMonthlyFinancialQueryModel ( ) { } private BarChartModel initAnnualFinancialQueryModel ( ) { } private BarChartModel initOverallFinancialQueryModel ( ) { } private BarChartModel initEmptyModel ( ) { } private BarChartModel initDailyPayTypeQueryModel ( ) { } private BarChartModel initWeeklyPayTypeQueryModel ( ) { } private BarChartModel initMonthlyPayTypeQueryModel ( ) { } private BarChartModel initAnnualPayTypeQueryModel ( ) { } private BarChartModel initOverallPayTypeQueryModel ( ) { } public BarChartModel emptyModel ( ) { } BarChartModel createCustomQuery ( String option , Date beginDate , Date endDate ) { } BarChartModel createCustomFinancialQuery ( String option , Date beginDate , Date endDate ) { } BarChartModel createCustomPayTypeQuery ( String option , Date beginDate , Date endDate ) { BarChartModel model = new BarChartModel ( ) ; ChartSeries payType = new ChartSeries ( ) ; if ( option . equals ( "Day" ) ) { customPayTypeQueryList = reportService . customDailyPayTypeQuery ( beginDate , endDate , userSessionBean . getUser ( ) . getRestaurant ( ) . getId ( ) ) ; } if ( option . equals ( "Month" ) ) { customPayTypeQueryList = reportService . customMonthPayTypeQuery ( beginDate , endDate , userSessionBean . getUser ( ) . getRestaurant ( ) . getId ( ) ) ; } if ( option . equals ( "Year" ) ) { customPayTypeQueryList = reportService . customOverallPayTypeQuery ( beginDate , endDate , userSessionBean . getUser ( ) . getRestaurant ( ) . getId ( ) ) ; } if ( ! ( customPayTypeQueryList . isEmpty ( ) ) ) { <START_BUG> payType . setLabel ( resources . getString ( "paytype" ) ) ; <END_BUG> for ( PayTypeReportVo item : customPayTypeQueryList ) { payType . set ( resources . getString ( ( "PayType." + ( item . getPayType ( ) . name ( ) ) ) ) , item . getPrice ( ) ) ; } model . addSeries ( payType ) ; model . setShowPointLabels ( true ) ; model . setAnimate ( true ) ; model . setLegendPosition ( "ne" ) ; Axis yAxis = model . getAxis ( Y ) ; yAxis . setMin ( 0 ) ; yAxis . setMax ( ( ( customPayTypeQueryList . stream ( ) . max ( ( q1 , q2 ) -> Long . compare ( q1 . getPrice ( ) , q2 . getPrice ( ) ) ) . get ( ) . getPrice ( ) ) * 1.1 ) ) ; } else { model = emptyModel ( ) ; } return model ; } public BarChartModel getDailyQueryModel ( ) { } public void setDailyQueryModel ( BarChartModel dailyQueryModel ) { } public BarChartModel getWeeklyQueryModel ( ) { } public void setWeeklyQueryModel ( BarChartModel weeklyQueryModel ) { } public BarChartModel getMonthlyQueryModel ( ) { } public void setMonthlyQueryModel ( BarChartModel monthlyQueryModel ) { } public BarChartModel getAnnualQueryModel ( ) { } public void setAnnualQueryModel ( BarChartModel annualQueryModel ) { } public BarChartModel getOverallQueryModel ( ) { } public void setOverallQueryModel ( BarChartModel overallQueryModel ) { } public ResourceBundle getResources ( ) { } public void setResources ( ResourceBundle resources ) { } public BarChartModel getDailyFinancialQueryModel ( ) { } public void setDailyFinancialQueryModel ( BarChartModel dailyFinancialQueryModel ) { } public BarChartModel getWeeklyFinancialQueryModel ( ) { } public void setWeeklyFinancialQueryModel ( BarChartModel weeklyFinancialQueryModel ) { } public BarChartModel getMonthlyFinancialQueryModel ( ) { } public void setMonthlyFinancialQueryModel ( BarChartModel monthlyFinancialQueryModel ) { }

Fix:
payType . setLabel ( resources . getString ( "payType" ) ) ;