A Conflict Occurs With Libraries In The Directory Accessed By The Environment Variable $JLIB (Doc ID 1664660.1)

Last updated on JUNE 19, 2017

Applies to:

Oracle Communications ASAP - Version 7.0.2 to 7.2.0 [Release 7.0.0 to 7.2]
Oracle Solaris on SPARC (32-bit)

Goal

On the ASAP 7.0.2 version, the following Java library related issue occurred:


A Network Cartridge uses the java libraries for interacting with the Network Element.

After the deployment of the cartridge, when an ASDL is run, an exception is seen that indicates a conflict of these libraries with ASAP libraries accessible via the environment variable $JLIB.

The error message is as follows:

[Mar 13, 2014 5:46:10.456 PM GST] [SBCConnection] [execute] Done>
Exception in thread "Connection handler dx429-24391" java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.getTextContent()Ljava/lang/String;


The libraries in the folder $JLIB are xerces.jar, crimson.jar and xmlparserv2.jar.

When we tried to modify the JInterpreter CLASSPATH, the problem persisted. Only the removal of these library in the directory $JLIB solved the problem.

export CLASSPATH=${ASAP_BASE}/lib/Emircom_SBC_1_0/ACMEPacketCommon.jar:${ASAP_BASE}/lib/Emircom_SBC_1_0/ACMEPacketGenericWSInterface.jar:${ASAP_BASE}/lib/Emircom_SBC_1_0/ACMEPacketWSClientUtil.jar:${ASAP_BASE}/lib/Emircom_SBC_1_0/Emircom_SBC_1_0.jar:${ASAP_BASE}/lib/Emircom_SBC_1_0/axis1.4SBC.jar:${ASAP_BASE}/lib/JInterp.jar:${ASAP_BASE}/lib/asaplibcommon.jar:${ASAP_BASE}/lib/studio_2_6_0.jar:${JLIB}/gnu-regexp-1.1.4.jar:${JLIB}/maverick-all.jar:${CARTR_CLASSPATH}:$CLASSPATH

Can you help us solve the problem, it is clear that these libraries cannot be removed from the $JLIB, but how can we prevent the use by ASAP in the cartridge?
 

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms