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.

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/

[oraprod@olive lib]$ diff
< JRE_LIB_DIR=/d/oracle/uatdb/10.2.0/jdk/jre/lib/i386

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

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

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

In this case my erroneous 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 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 this entry