Register / Login
Win a copy of
Java EE 8 High Performance
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
@inject annotation throwing null pointer exception in Restful web service project
posted 5 years ago
i am using the following tutorial to build a
the above project works fine with the hard coded values that i am passing to the list in the service level,
but when i try to inject my class which will fetch values from the database then it throws null pointer exception, i have already added beans.xml, but still the injected class object is null.
i am not sure where i have gone wrong, any help will be appreciated.
thanks & Regards.
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
The WEB SERVICES and JAX-RS Course
Boost this thread!
Struts 2 EJB injection
Does any one know how to make use of the web service control in a plain java class?
Question on using getSelectedItem() method in JCombobox to retrieve values
getting null pointer exeception