E Armitage wrote:Is the countryDAO EJB injected? Check that it's not null before using it (or print it's value first). N.P.Es are easy to pinpoint by printing out values of variables at strategic points in the code.
Enrico Morelli wrote:
and I receive the exception without see the "CountryDAO find" message. How is it possible? What I can do to solve?
You probably read the opposite of what they wrote.Maneesh Godbole wrote:
That just indicates the find method is being called. Move the System.out to after Country c...
E Armitage wrote:
You probably read the opposite of what they wrote.Maneesh Godbole wrote:
That just indicates the find method is being called. Move the System.out to after Country c...
E Armitage wrote:
Probably the countryDAO is null which means you are not able to inject EJBs into managed beans for your JSF version. Either lookup the EJB using JNDI or inject the EJBs into somewhere where it's allowed e.g a ServletContextListener (you can just add the EJB to a static map of injected references and access it via a static method).
We noticed he had no friends. So we gave him this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|