2012/10/15 pirzada rashid <[email protected]>: > public String getPersonById() throws Exception { > LOG.debug("getPersonById() = {} executed---->>>>", > this.getId()); > person = personDAO.get(this.getId()); > > return SUCCESS; > } > > **ERROR:** > > java.lang.NullPointerException > > com.myapp.action.PersonAction.getPersonById(PersonAction.java:61) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597)
If this is a full stack, then the personDAO is null and that's why you get NPE. Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

