Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink RestService entityManager is null
EclipseLink RestService entityManager is null [message #1065543] Wed, 26 June 2013 12:45 Go to next message
Panisha RN is currently offline Panisha RNFriend
Messages: 35
Registered: May 2013
Member
For some reason entity manager is null, i am not able to retrieve the data.

My application is kind of client server application where client send the request using REST URL and server must send the response to the client request.

Can any one me what might be the problem? what are the possibility that because of which entity manager can become null.

I know some how it to be injected and get initialized so that i as a user need to take care opening and closing the entity Manager(connection).
Re: EclipseLink RestService entityManager is null [message #1066628 is a reply to message #1065543] Wed, 03 July 2013 13:54 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Please include your code. Do you ever assign the variable, (if you don't then it will be null). If you are injecting it, ensure you are accessing the service correctly such that the container can inject it.


James : Wiki : Book : Blog : Twitter
Previous Topic:ElementCollection Map and CriteriaQuery
Next Topic:How to customize the update query?
Goto Forum:
  


Current Time: Fri Dec 19 15:47:32 GMT 2014

Powered by FUDForum. Page generated in 0.02053 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software