Troubleshooting
Problem
JDBC Adapter cannot find method for native method during inbound process.
Symptom
The following error occurs after JDBC Adapter polls the event record from event table:
CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "onNotification" on bean "BeanId(TestNativeApp#TestNativeEJB.jar#export.JDBCInboundInterfaceEIS, null)". Exception data: com.ibm.websphere.sca.ServiceRuntimeException: Did not find method for native method 'emitCreateAfterImageAdminCUSTOMERBG'
Cause
JDBC Adapter uses the native method internally to map to each supported operation. The relationship between bound operation with native method is defined in the Method bindings of the Export component properties:
JDBC Adapter constructs the native method for the Create operation by using the prefix 'emitCreateAfterImage' plus object name, which is retrieved from the Adapter event table. If defined native method in Adapter Export component as emitCreateAfterImageAdminCustomerBG, and inserted AdminCUSTOMERBG as object name into the Adapter event table, then the error occurs because the name of the two native methods does not match each other.
Resolving The Problem
You can use one of the following ways to work around the issue:
1. Insert AdminCustomerBG as an object name into the event table.
or
2. Replace emitCreateAfterImageAdminCustomerBG with emitCreateAfterImageAdminCUSTOMERBG in the properties of the Adapter Export component.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21377324