[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception. (Sorry.

2008-06-18 Thread repkin
I am so thankful for your helps, finally it worked. This is the final situation: I have changed ejb call part like that: | Context context = new InitialContext(); | PrStaffInterface prstaff = (PrStaffInterface)context.lookup("surgeonfish/PrStaffHome/local"); | prstaff.findById(new Intege

[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception. (Sorry.

2008-06-18 Thread jaikiran
anonymous wrote : PrStaffHome prStaffHome = new PrStaffHome(); This is incorrect. You should not be instantiating a EJB in your code. Instead you should be doing a "lookup" of the bean. See my reply dated Mon May 26, 2008 11:02 AM in one other similar post at http://www.jboss.com/index.html?mod

[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception.

2008-06-18 Thread repkin
Hi, thanks for your reply. I have tried a lot of possibilities. Yes, you right, at the sended log, the commented part not commented and have been worked together, but when I was trying the code parts separately, I was taking same error. Now I am sending again the logs, First of all deployment

[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception. (Sorry.

2008-06-18 Thread jaikiran
anonymous wrote : HERE ARE THE CONSOLE OUTLINE WHEN I DEPLOY THE APPLICATION: | 17:50:41,517 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context | 17:50:41,532 INFO [EJBContainer] STARTED EJB: com.atosorigin.utils.poj

[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception. (Sorry.

2008-06-18 Thread repkin
Is there any solution can you suggest? I cant still find the solution, I am looking internet resources but my configuration looks like ok. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158900#4158900 Reply to the post : http://www.jboss.com/index.html?modul

[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception. (Sorry.

2008-06-17 Thread repkin
Hi, First of all java-version info: C:\>java -version java version "1.5.0_11" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing) Here are the full console outline when I start jboss:

[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception. (Sorry.

2008-06-17 Thread jaikiran
Please post the entire exception stacktrace. Also post the logs from the console which you see when the application is being deployed. Which version of Java do you use? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158705#4158705 Reply to the post : http: