Re: [appfuse-user] error: NullPointerException when using hibernate

2009-11-22 Thread QuanNH
ok, test passed :) thanks -Quan On Sun, Nov 22, 2009 at 2:39 AM, mraible [via AppFuse] wrote: > Adding @Autowired to your personDao should solve this problem. You'll also > need a @Test annotation on your test method. I've updated the tutorial to > reflect this. > > Matt > > On Sat, Nov 21, 2

Re: [appfuse-user] error: NullPointerException when using hibernate

2009-11-21 Thread Matt Raible
Adding @Autowired to your personDao should solve this problem. You'll also need a @Test annotation on your test method. I've updated the tutorial to reflect this. Matt On Sat, Nov 21, 2009 at 9:36 AM, QuanNH wrote: > > hi > > i follow this tut http://appfuse.org/display/APF/Using+Hibernate and

[appfuse-user] error: NullPointerException when using hibernate

2009-11-21 Thread QuanNH
hi i follow this tut http://appfuse.org/display/APF/Using+Hibernate and get error when Run the DAO Test: Running com.mycompany.dao.PersonDaoTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0 testFindPersonByLastName(com.mycompany.dao.PersonDaoTest) Time elapsed: 0.356 sec <<< ERROR! java.l