@SuppressWarnings("null")
@Scheduled(cron="*/10 * * * * *")
public void weakBookListExcelAd(){
HttpServletResponse response = null;
HttpServletRequest request = null;
VnaraExmnnRgstrVO vo = null;
ModelMap model = null;
try {
System.out.println("1");
vo.setIsChecked(null);
weakBookListExcelAde(response, request, vo, model);
System.out.println("3");
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
System.out.println("try catch excepion.............");
}
}
@RequestMapping("/book/weakBookListExcelAd.do")
public void weakBookListExcelAde(HttpServletResponse response, HttpServletRequest request, @ModelAttribute("VnaraExmnnRgstrVO") VnaraExmnnRgstrVO vo, ModelMap model) throws Exception
{
String[] isChecked = vo.getIsChecked();
if(isChecked.length < 1){
vo.setIsChecked(null);
}
@Scheduled(cron="*/10 * * * * *")
public void weakBookListExcelAd() 에서 스케줄을 걸어
public void weakBookListExcelAde()을 지속적으로 실행시켜려고합니다..
근데 vo값 response, request, model이 필요해서 셋팅을 해줘야하는데..
java.lang.NullPointerException이 계속 발생합니다.
디버깅이나 에러나는 지점을 보면
weakBookListExcelAde()의 String[] isChecked = vo.getIsChecked(); 부분을 만나면 바로 에러가 발생하는데
어떤게 문제일까요...
vo는 위에서 셋팅해서 아래에서 받는것도 테스트해봤는데 값 전달도 못받는것 같고..