Tag Archives: LD_LIBRARY_PATH

Atrium Integration Engine

AIE 7.6.04 Failed to Load Adapter Error

After running the aie001 start-up script for your first instance, if you look at the ./AtriumCore/aie/service/log/Inst_001_aiemain.log file, you may see the error:

  • [Thu Sep  1 2011 10:03:36.3840] BMC Atrium Integration Engine Version: 7.6.04 SP1 201104201700 (EIEMSG 3309)
  • [Thu Sep  1 2011 10:03:36.3840] Remedy Link starting to process requests Thu Sep  1 10:03:36 2011 (EIEMSG 3301)
  • [Thu Sep  1 2011 10:03:36.6820] Adapter :  (EIEMSG 3338)
  • [Thu Sep  1 2011 10:03:36.6820] Adapter :  (EIEMSG 3338)
  • [Thu Sep  1 2011 10:03:36.6890] Adapter : Failed to load adapter  (EIEMSG 3330)

After some investigation, it turns out is was due to the AIE_ORACLE_LIB_DIR=”.” variable at the top of the start-up script. The start-up script takes this value, which should point to your Oracle/DB2 client directory depending on which adapter you are using, and adds it into the LD_LIBRARY_PATH.

Even if you have the values for the LD_LIBRARY_PATH defined in your environment, they do not show up for use in the script. To prove this, add “echo $LD_LIBARY_PATH” into the start-up script, below the “export LD_LIBRARY_PATH” line. Running the script with the change, you will see the LD_LIBRARY_PATH echoed to the screen:

  • /apps/infra/ar/AtriumCore/aie/service/bin:./lib:./lib64

Updating the start-up scrpit to something as follows (this is the path to our Oracle client directory):

  • AIE_ORACLE_LIB_DIR=”/ora/fs0000/s00/oracle/product/10.2.0.3″

Restarting our instance, and then checking the log file again, we can see that we no longer get an Adapter error:

  • [Thu Sep  1 2011 10:05:54.7430] BMC Atrium Integration Engine Version: 7.6.04 SP1 201104201700 (EIEMSG 3309)
  • [Thu Sep  1 2011 10:05:54.7440] Remedy Link starting to process requests Thu Sep  1 10:05:54 2011 (EIEMSG 3301)

The following shows the two changes we made to all our aie00X scripts:

start_instance() {
AIE_ORACLE_LIB_DIR=”/ora/fs0000/s00/oracle/product/10.2.0.3
echo “WARNING : Please make sure that AIE_ORACLE_LIB_DIR is set to point to Oracle client directory if you are going to use Oracle Adapter.”
AIE_DB2_LIB_DIR=”.”
echo “WARNING : Please make sure that AIE_DB2_LIB_DIR variable is set to point to DB2 client directory if you are going to use DB2 Adapter.”

unset ORACLE_HOME

LD_LIBRARY_PATH=/apps/infra/ar/AtriumCore/aie/service/bin:${AIE_ORACLE_LIB_DIR}/lib:${AIE_DB2_LIB_DIR}/lib64
export LD_LIBRARY_PATH

echo $LD_LIBRARY_PATH

NOTE:  If your not using DB2, then you should also remove the “:${AIE_DB2_LIB_DIR}/lib64” from the end of the LD_LIBRARY_PATH as hi-lighted in red above.