I am using quartz and spring. In my main class I used an XML file to get the hibernate properties as below:
String conf[] = {"Config.xml"};
ClassPathXmlApplicationContext applicationContext= new ClassPathXmlApplicationContext(conf);
TestProgram unittest=applicationContext.getBean(TestProgram.class);
unittest.testMethod(unittest);
In my job class I tried to retrieve the data from database as below:
List<UserMasterVO> userMasterVO=userMasterService.findAll();
System.out.println("userMasterVO..."+userMasterVO);
for(int index=0;index<userMasterVO.size();index++)
System.out.println(userMasterVO.get(index));
But it results in a null pointer exception. Any ideas?