-
Bug
-
Resolution: Done
-
Critical
-
1.1.10
-
None
-
Workaround Exists
-
I have two @Service jars, service "A" and "B" where "B" injects an instance of "A" using the @EJB annotation with a mappedName attribute set to the default jndi location of A ("EJBTestAService/local" in the example provided.) When deployed, they work fine. But, if "A" is redeployed, access to "B" fails due to a NullPointerException, the reference to "A" is null.
To reproduce with the attached code:
1.) Set jboss.home property in build.xml
2.) Start EAP 5, beta
3.) ant deployAll (will compile and deploy the two jars)
4.) ant run (runs test client against "B")
5.) ant undeployA (Should see "B" stop, then "A" stop)
6.) ant deployA (Should see "A" start, then "B" start)
7.) ant run (will fail with NullPointerException as root cause)
- is incorporated by
-
JBPAPP-2524 @EJB injection into @Service bean leads to NullPointerException when injected bean is redepolyed
- Closed
- is related to
-
EJBTHREE-1689 Use new EJB Reference Resolver for @EJB injection
- Open