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:
‘/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
< $(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
Login to EM web interface, the error should now disappear.
- DocID 437417.1 “Java.Lang.Exception: Exception In Sending Request :: Null” in dbconsole
- DocID 418557.1 ‘/usr/bin/ld: cannot find -ljava’