cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Lookup error in PI 7.3 system

Former Member
0 Kudos

Hi All,

We have an RFC Lookup error when we run an interface. This RFC lookup will fetch some values at runtime from SRM system tables by usage of function module & forms an XML message in PI for target system. Unfortunately this lookup was not working since one week & we are getting below exception in sxi_monitor .

"com.sap.aii.mapping.lookup.LookupException: Error when calling an adapter by using the communication channel RFCReceiver_SUS (Party: , Service: HSPCLNT320, Object ID: 499198ce778536e29bfd09a30e9110cc) XI AF API call failed. Module exception: 'Error during processing local bean: localejbs/RfcAFBean'. Cause Exception: 'Exception in getMethodReady() for stateless bean sap.com/com.sap.aii.adapter.rfc.app*xml|com.sap.aii.adapter.rfc.ejb.jar*xml|RfcAFBean;"

"Cannot get connection. Reason: the thread of component "ejbContexts/sap.com/com.sap.aii.adapter.rfc.app/com.sap.aii.adapter.rfc.ejb.jar/RfcAFBean" in application "sap.com/com.sap.aii.adapter.rfc.app" is currently associated with a restricted resource set and it is not allowed to get connection within it.'. at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.process(AdapterProxyLocal.java:92) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.call(SystemAccessorInternal.java:55) at com.sap.aii.mapping.lookup.RfcAccessor.call(RfcAccessor.java:81) at com.sap.aii.mappingtool.flib7.RfcLookup.cacheMore(RfcLookup.java:81)"

"ResourceException occurred in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection. Reason: the thread of component "ejbContexts/sap.com/com.sap.aii.adapter.rfc.app/com.sap.aii.adapter.rfc.ejb.jar/RfcAFBean" in application "sap.com/com.sap.aii.adapter.rfc.app" is currently associated with a restricted resource set and it is not allowed to get connection within it. "

We have already tried below solutions:

1. System restart

2. Activated channel with dummy changes

3. Start & Stop of channel in CC monitoring

4. Checked FM in SRM system, it is providing response of the input values provided.

5. NWA all of the instances are running fine without any issues.

6. RFC destination connectivity is working fine.

7. Note 1967751 is implemented.

Kindly provide any other suggestions you have for resolving this issue.

Regards,

Vinod.

Accepted Solutions (0)

Answers (3)

Answers (3)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Vinod,

From the error log, it is saying that RFC threads are unavailable in the pool when you made the call.

Can you please increase the concurrency of the RFC channel or threads of RFC adapter accordingly.

Please refer the below document which can help you on this.


Regards

Vishnu

iaki_vila
Active Contributor
0 Kudos

Hi Vinod,

Have you tried to increase the number of connections allowed in the RFC channel?

Regards.

Former Member
0 Kudos

Hi,

Number of RFC connections in channel is maintained 12. Hence I feel it will not be an issue with no. of connections.

Regards,

Vinod.

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Vinod,

Is this the generic channel that you are using for RFC lookup purpose for all the interfaces?

If yes, then can you please check whether the lookup is working for other interfaces or not.

Also, please check whether there is any issue in the channel, go to channel monitoring, give the channel name and click on ping channel button and see the outcome.

Regards

Vishnu

former_member184720
Active Contributor
0 Kudos

Did you verify if there are any locks? NWA -> Locks ?

if you dont find any, please create a new channel and see if that helps..