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

2008-06-19 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

[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=bbop=viewtopicp=4158900#4158900 Reply to the post :

[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:

[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 : 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

[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=bbop=viewtopicp=4158705#4158705 Reply to the post :

[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 is null

2008-02-20 Thread kgreene
This code works except for the flush. The flush does not commit the updates to the database. Specifically, I want to update the status in the Fetcher.transfer method. However, the status does not get updated to RUNNING. It only gets updated to COMPLETE once the fetcher is done. I thought

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-19 Thread kgreene
Ok, I am very lost. Forgive me, I am new to jboss and ejbs. I've been looking for a solution for several hours and still have not found the answer. I misspoke about the actual issue. The dao object is not null. I get NameNotFoundException because it can't find it. When I bring up my jndi

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-19 Thread ALRubinger
Please paste the code that works, the code you'd like to work, and the relevant part of the JNDIView? S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4130523#4130523 Reply to the post :

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-17 Thread kgreene
When I tried the below, the dao object is null and I cannot call methods on it. InitialContext ctx = new InitialContext(); VPInfoDAOLocal dao = (VPInfoDAOLocal) ctx.lookup(VPInfoDB/VpInfoDAOBean/local); View the original post :

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-15 Thread kgreene
Currently, I am using: VPInfoDAOImpl vpdao = VPInfoDAOImpl.getInstance(); I also tried: InitialContext ctx = new InitialContext(); VPInfoDAOLocal dao = (VPInfoDAOLocal) ctx.lookup(VPInfoDB/VpInfoDAOBean/local); I tried VPInfoDAORemote also. That did not work either. View the original post

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-15 Thread ALRubinger
VPInfoDAOImpl vpdao = VPInfoDAOImpl.getInstance(); This won't work; here you are constructing a plain object, not accessing an EJB instance from the container. InitialContext ctx = new InitialContext(); | VPInfoDAOLocal dao = (VPInfoDAOLocal) ctx.lookup(VPInfoDB/VpInfoDAOBean/local); What's

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-14 Thread ALRubinger
How is the calling class accessing an instance of VpInfoDAOBean? S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129511#4129511 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129511

[jboss-user] [EJB 3.0] - Re: entityManager is null

2007-03-08 Thread LGSW_Sam
Hi Wolfgang, problem solved. I had a bad typo on the bean calling this bean.. So nothing wrong wit persistence.xml or ActionExceptionHandlingBean... thanks for your help! Br, Sami Männistö View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026195#4026195 Reply

[jboss-user] [EJB 3.0] - Re: entityManager is null

2007-03-07 Thread Wolfgang Knauf
Hi Sami, your bean and persistence.xml in the same jar file ? Your persistence.xml was probably only a snippet ? I miss the xml document root persistence: ?xml version=1.0 encoding=UTF-8? | persistence xmlns=http://java.sun.com/xml/ns/persistence; | persistence-unit name=MessageServer