cancel
Showing results for 
Search instead for 
Did you mean: 

javax.ejb.EJBException: Cannot perform injection over bean instance

arpitgoyal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Error Log:

Web Service returned an error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "javax.ejb.EJBException: Exception in getMethodReady() for stateless bean sap.com/com.sap.xi.repositoryannotation|com.sap.xpi.ibrep.search_ws.jarannotation|; nested exception is: com.sap.engine.services.ejb3.util.pool.PoolException: javax.ejb.EJBException: Cannot perform injection over bean instance com.sap.aii.ibrep.webservice.search.EsrLookupAPIBean72@799b9575 for bean sap.com/com.sap.xi.repositoryannotation|com.sap.xpi.ibrep.search_ws.jarannotation|; nested exception is: com.sap.engine.lib.injection.InjectionException: Injection on field log of instance com.sap.aii.ibrep.webservice.search.EsrLookupAPIBean72@799b9575 failed. Could not get a value to be injected from the factory."

Has anybody encountered this problem? Possible hits on SDN were for Entity Beans. Mine is a stateless bean.

Is there somewhere some entry missing? May be some entry in ejb-jar or ejb-j2ee-engine XML. Please help.

Regards,

Arpit

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Nishant,

i have created entities from table not the table from entities and i have not done any changes in entities as such.

And i m using 4 connection's for 4 diffrent dc's.

Regards,

Nandani Sharma

0 Kudos

hello,

I m also getting the same problem:

can anyone tell wat are the  the reason's for  this Exception to come?

i m also getting getmethodReady Excption.

please help

Regards,

Nandani Sharma

Former Member
0 Kudos

Hi Nandani,

Was there any changes in the Entity class ? If yes, the changes might not be getting into the corresponding tables.

Also, make sure the database alias that you are using is proper and is active.

Regards,

Nishant Singh

Former Member
0 Kudos

Hi Arpit,

How did you fixed this issue ? I am also getting this error but can not find any solution.

Thanks in advance.

Regards,

Nishant Singh

Former Member
0 Kudos

Hi Arpit,

As far as i can see, there is a problem with the injection over a field with name 'log'.

What is the declaration of this field in your EJB code/XML descriptors (type, annotations, etc.)?

Has the application been started successfully ?

When exactly do you get this error ? Have you ever had successful EJB invokations (and all of a sudden the next invokation fails) ? Or after start, this is what you get when you request your application for the first time ?

Kindest Regards,

Krum.