Unable to authenticate to Sonic Management Console after applying SP6.1HF2 Exception in thread "main" java.lang.NoSuchMethodError:

  • 7004698
  • 20-Oct-2009
  • 26-Apr-2012

Environment

Novell Sentinel 6.1 Sonic Management Console
SLES10
RHEL4
Solaris10

Situation

After applying Sentinel 6.1Sp1HF2 I can no longer authenticate to Sonic Management Console. I see the following exception;

Exception in thread "main" java.lang.NoSuchMethodError:
org.w3c.dom.Document.getXmlStandalone()Z
at
com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
at
com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
at
com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:662)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:259)
at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:338)
at
java.util.prefs.FileSystemPreferences$8.run(FileSystemPreferences.java:607)
at java.security.AccessController.doPrivileged(Native Method)
at
java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java:600)
at
java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java:784)
at
java.util.prefs.FileSystemPreferences.access$2300(FileSystemPreferences.java:33)
at
java.util.prefs.FileSystemPreferences$13.run(FileSystemPreferences.java:754)
at java.security.AccessController.doPrivileged(Native Method)
at
java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java:752)
at
java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1317)
at
java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:1308)
at
java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:731)
at
java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:807)
at
com.sonicsw.ma.gui.PreferenceManager.flush(PreferenceManager.java:196)
at
com.sonicsw.ma.gui.PreferenceManager.flush(PreferenceManager.java:158)
at
com.sonicsw.ma.gui.domain.DomainConnectionModel.saveToPrefs(DomainConnectionModel.java:673)
at com.sonicsw.ma.gui.MgmtConsole.connectToDomain(MgmtConsole.java:221)
at
com.sonicsw.ma.gui.MgmtConsole.connectToDefaultDomain(MgmtConsole.java:191)
at com.sonicsw.ma.gui.MgmtConsole.setVisible(MgmtConsole.java:1002)
at com.sonicsw.ma.gui.MgmtConsole.main(MgmtConsole.java:1038)

Resolution

With Sentinel 6.1 SP1 HF2, the java version was updated from 1.5 to 1.6. In order to authenticate you must use the 1.5 version of java. This java was backed up when you applied the HotFix patch to your /opt/novell/sentinel6/ directory under the name SP6.1.1.2_2009-08-30-GMT_bak.

In order to load Sonic Management Console with the older JRE, you must modify the start script as follows.

1. Open the startmc.sh script using vi or some other editor. The script is located at $ESEC_HOME/3rdParty/SonicMQ/MQ7.0/bin
2. Remove or comment out the "if", "then", and "fi" sections of the script as follows;

#if [ -z "$MGMTCONSOLE_JRE"]
#then
    MGMTCONSOLE_JRE="/opt/novell/sentinel6/jre/bin/java"
#fi

3. Modify the MGMTCONSOLE_JRE paramater to point to the backed up java as follows;

#if [ -z "$MGMTCONSOLE_JRE"]
#then
    MGMTCONSOLE_JRE="/opt/novell/sentinel6/SP6.1.1.2_2009-08-30-GMT_bak/jre/bin/java"
#fi

4. Save the script
5. Modify the /opt/novell/sentinel6/SP6.1.1.2_2009-08-30-GMT_bak/jre/bin/java to make it executable as follows;

chmod +x /opt/novell/sentinel6/SP6.1.1.2_2009-08-30-GMT_bak/jre/bin/java

6. Re-Launch the startmc.sh and authenticate as normal.