Problem Summary: When hadbm is invoked from the HADB agent, it takes the java binaries from /usr/bin. The HADB agent fails to work properly since the java binaries in /usr/bin need to be linked to the appropriate version of Java 1.4 (or above).
Workaround: Assign JAVA_HOME environment variable with the appropriate version of Java 1.4 (or above) in the script /opt/SUNWappserver7/SUNWhadb/4/bin/hadbm.