Buggy code:
private List < Parameters > updateStatusList = new ArrayList < Parameters > ( ) ; private List < Driver > listDrivers = new ArrayList < Driver > ( ) ; private List < VendorBean > vendors = new ArrayList < VendorBean > ( ) ; private List < Parameters > portsList = new ArrayList < Parameters > ( ) ; private List < Parameters > containerSizeList = new ArrayList < Parameters > ( ) ; private List < Parameters > containerEirTypeList = new ArrayList < Parameters > ( ) ; private List < Parameters > containerStatusList = new ArrayList < Parameters > ( ) ; private List < Vessel > vesselList = new ArrayList < Vessel > ( ) ; private OrderItemsBean orderItem = new OrderItemsBean ( ) ; private List < OrderItemsBean > orderItemVesselSchedule = new ArrayList < OrderItemsBean > ( ) ; private List < OrderItemsBean > orderItemOriginVendor = new ArrayList < OrderItemsBean > ( ) ; private List < OrderItemsBean > orderItemDestinationVendor = new ArrayList < OrderItemsBean > ( ) ; private OperationsBean operationsBean = new OperationsBean ( ) ; private DocumentsBean document = new DocumentsBean ( ) ; private OrderBean order = new OrderBean ( ) ; private ContactBean contact = new ContactBean ( ) ; private AddressBean address = new AddressBean ( ) ; private VendorBean vendor = new VendorBean ( ) ; private DriverBean driver = new DriverBean ( ) ; private TruckBean truck = new TruckBean ( ) ; private TruckBean truckDestination = new TruckBean ( ) ; private ContainerBean container = new ContainerBean ( ) ; private CustomerBean customer = new CustomerBean ( ) ; private OperationsService operationsService ; private VendorService vendorService ; private VesselSchedulesService vesselSchedulesService ; private OrderService orderService ; private CustomerService customerService ; private ParameterService parameterService ; private NotificationService notificationService ; private ClientService clientService ; private CommonUtils commonUtils ; private DocumentsService documentsService ; private ContainerService containerService ; private Map < String , String > driverMap = new LinkedHashMap < String , String > ( ) ; private Map < String , String > trucksMap = new HashMap < String , String > ( ) ; private Map < String , String > bodyTypeMap = new HashMap < String , String > ( ) ; private Map < String , String > plateNumberMap = new HashMap < String , String > ( ) ; private Map < Integer , Integer > grossWeightMap = new HashMap < Integer , Integer > ( ) ; private Map < String , String > vesselMap = new HashMap < String , String > ( ) ; Date filterPickup ; Date filterDelivery ; private String [ ] check ; private String [ ] checkInland ; private String checkLCL ; private String originCity ; private String destinationCity ; private String originCityTruck ; private String destinationCityTruck ; private List < String > nameSizeList ; Map paramMap = new HashMap ( ) ; @ Override public void prepare ( ) { } public String updateCompleteInlandPlanning ( ) { } public String updateCompleteSeaPlanning ( ) { } public String addDriver ( ) { } public String addTrucks ( ) { } public String addVendor ( ) { } private Vendor transformVendorToEntityBean ( VendorBean vendorBean ) { } public Driver transformToEntityBeanDriver ( DriverBean driverBean ) { } private Trucks transformToEntityBeanTrucks ( TruckBean truckBean ) { } private Integer getClientId ( ) { } public String checkItemStatus ( ) { } public String checkItemStatusInland ( ) { } public String reloadEditPage ( ) { } public String editBulkItems ( ) { } public String editBulkItemsInlandOrigin ( ) { } public String editBulkItemsInlandDestination ( ) { } public String editOrderItemsSea ( ) { } public String editOrderItemsOrigin ( ) { } public String editOrderItemsDestination ( ) { } public String addVesselSchedule ( ) { System . out . println ( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" ) ; try { VesselSchedules entity = transformToVesselScheduleEntityBean ( vesselSchedule ) ; entity . setCreatedBy ( commonUtils . getUserNameFromSession ( ) ) ; entity . setCreatedTimestamp ( new Date ( ) ) ; entity . setModifiedBy ( commonUtils . getUserNameFromSession ( ) ) ; entity . setModifiedTimestamp ( new Date ( ) ) ; vesselSchedulesService . addVesselSchedule ( entity ) ; } catch ( Exception e ) { <START_BUG> addFieldError ( "vesselSchedule.voyageNumber" , "Voyage<seq2seq4repair_space>Number<seq2seq4repair_space>already<seq2seq4repair_space>exists" ) ; <END_BUG> return INPUT ; } Integer vendorIdPass = transformToVesselScheduleEntityBean ( vesselSchedule ) . getVendorId ( ) ; Map sessionAttributes = ActionContext . getContext ( ) . getSession ( ) ; sessionAttributes . put ( "vendorIdPass" , vendorIdPass ) ; sessionAttributes . put ( "nameSizeParam" , sessionAttributes . get ( "nameSizeParam" ) ) ; sessionAttributes . put ( "orderItemIdParam" , orderItemIdParam ) ; return SUCCESS ; } public VesselSchedules transformToVesselScheduleEntityBean ( VesselScheduleBean formBean ) { } public String findVesselScheduleBulk ( ) { } public String findVesselSchedule ( ) { } public String viewInfo ( ) { } public String viewSeaFreightPlanningBulk ( ) { } public String viewSeaFreightPlanning ( ) { } public String viewEditSeaFreight ( ) { } public String viewEditInlandFreightOrigin ( ) { } public String viewEditInlandFreightDestination ( ) { } public String viewFreightPlanning ( ) { } public String viewFreightPlanningInland ( ) { } public String reloadInlandFreightPlanning ( ) { } public String reloadInlandFreightPlanningBulk ( ) { } public String reloadSeaFreightPlanning ( ) { } public String reloadSeaFreightPlanningBulk ( ) { } public String setLCLBulkSchedule ( ) { } public String viewFreightList ( ) { } public String viewFreightItemList ( ) { } public String viewFreightItemListError ( ) { } public String viewSeaFreightItemListErrorInput ( ) { } public String viewSeaFreightItemListErrorEditInput ( ) { } public String viewInlandFreightItemListErrorInput ( ) { } public String viewInlandFreightItemListErrorEditInput ( ) { } public String viewFreightItemListNullError ( ) { } public String viewInfoOrderInland ( ) { } public String viewInfoOrderSea ( ) { } public String listVendorDriverAndTrucks ( ) { } public String truckDetails ( ) { } public String listVessel ( ) { } private TruckBean transformToFormBeanTrucks ( Trucks entity ) { }

Fix:
addFieldError ( "vesselSchedule.voyageNumber" , getText ( "err.voyagenumber.already.exist" ) ) ;