Oracle EM “Error java.lang.Exception: Exception in sending Request :: null”

After successfully (re)configuring Oracle Enterprise Manager 10gR2 (see previous EM errors)

I was greeted by another ERROR after logging to the EM web interface.

Error
java.lang.Exception: Exception in sending Request :: null

I found this solution from Oracle metalink:

DocID 418557.1
‘/usr/bin/ld: cannot find -ljava’ occurs while applying one off patch

It turned out that we need to relink some sysman library.
Edit your $ORACLE_HOME/sysman/lib/env_sysman.mk

[oraprod@olive lib]$ diff env_sysman.mk.orig env_sysman.mk
2079c2079,2080
< JRE_LIB_DIR=/d/oracle/uatdb/10.2.0/jdk/jre/lib/i386

> JRE_LIB_DIR=$(ORACLE_HOME)/jdk/jre/lib/i386
2200c2201
<       $(LIBNMEM)  $(LIBNMER) \

>       $(LIBNMEM)  $(LIBNMER)  $(LIBNMO)\

In the command above i run diff command which compares the two files ( env_sysman.mk.orig the old erroneous file and env_sysman.mk the corrected mk file ).
The lines preceeded by less than(“<“) are the old lines in my env_sysman.mk.orig
The lines preceeded by  greater than (“>”) are the corrected lines in the new env_sysman.mk

In this case my erroneous env_sysman.mk.orig is still pointing to the JRE_LIB_DIR old path (FYI this instance is cloned from a different server machine) which i corrected by using the $(ORACLE_HOME) environment variable.  Then search for the the string “MK_EMDW_LIBNMEMSO_SHLIB” and just below that line insert $(LIBNMO) as shown above.

After making the changes, run:

 $ make -f ins_sysman.mk agent

Stop/Start dbconsole.

Login to EM web interface, the error should now disappear.

Metalink Ref:

  1. DocID 437417.1 “Java.Lang.Exception: Exception In Sending Request :: Null” in dbconsole
  2. DocID 418557.1 ‘/usr/bin/ld: cannot find -ljava’
About these ads

About this entry