A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
@inject annotation throwing null pointer exception in Restful web service project
Joined: Jan 16, 2012
Oct 15, 2012 03:31:29
i am using the following tutorial to build a web service project,
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.
It is sorta covered in the
JavaRanch Style Guide
subject: @inject annotation throwing null pointer exception in Restful web service project
getting null pointer exeception
Question on using getSelectedItem() method in JCombobox to retrieve values
Does any one know how to make use of the web service control in a plain java class?
Struts 2 EJB injection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013