My Oracle Support Banner

Not Able To Call EM Java Implementation From C Opcode (Doc ID 2162065.1)

Last updated on FEBRUARY 21, 2019

Applies to:

Oracle Communications Billing and Revenue Management - Version and later
Information in this document applies to any platform.


On : version, Rating

Written a opcode in java and when trying to invoke that java opcode(BIL_OP_EM_CALL) from C opcode (BIL_OP_RATE_SAMPLE_OPA_TEST),  getting the BAD_OPCODE error.

Here the steps followed.

1)Created opcode java opcode using js.jar and by extending API JSOpcodeIntf.

public class BILBillingEmController implements JSOpcodeIntf { Override
public FList opcode(JSServerContext arg0, int arg1, int arg2, FList arg3) throws EBufException {
and built BILBillingEmController.jar

2) Included the custom java opcode (name-number mapping) in class, jar
e.g : public static final int BIL_OP_EM_CALL = 120000; in public class

3). Also included opcode name-number mapping in custom_opcodes.h header file.
4). Made entry of em_pointer and em_group in cm/pin.conf for this custom opcode.
- cm em_group opa_em BIL_OP_EM_CALL
- cm em_pointer opa_em ip machine1 12345

5). of this custom em has opcode to class mapping of the custom opcode
e.g provided 12000=com.bil.BILBillingEmController

5) Written script for start and stop of this EM java server.

CLASSPATH  set like this,
# jar files are located

6) While calling this java opcode from C opcode,we are getting below error. Any possible reason for this error ?



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.