0

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?

STW
  • 44,917
  • 17
  • 105
  • 161
user1710910
  • 41
  • 1
  • 3

1 Answers1

0

I have already answered your other question on the stackoverflow which will resolve your this issue as well. Data retrival using quartz

Community
  • 1
  • 1
Rips
  • 1,964
  • 1
  • 23
  • 45