Knowledge Partner
Knowledge Partner
1152 views

iManager 3.1.1 vs. Auditing - NoClassDefFound?

Recently upgraded to iManager 3.1.1 and I had auditing working, but now on startup I see this in nproduct.log:

Fri Sep 14 17:29:53 2018 [jlogevent]: Using primary Secure Log Server x.x.x.x.
Fri Sep 14 17:29:53 2018 [jlogevent]: Error: java.lang.NoSuchMethodError: com.novell.naudit.util.Util.getPrivateKeySpec(Ljava/lang/Stri
ng;)Ljava/security/spec/PKCS8EncodedKeySpec;
at com.novell.naudit.logevent.LogEvent.doLogOpen(LogEvent.java:297)
at com.novell.naudit.logevent.LogEvent.logOpen(LogEvent.java:99)
at com.novell.naudit.LogEvent.LogOpen(LogEvent.java:208)
at com.novell.imanager.logging.naudit.NauditAppender.activateOptions(NauditAppender.java:259)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:436)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1004)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:755)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:896)
at com.novell.nps.Log4jInitServlet.init(Log4jInitServlet.java:38)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1144)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4962)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5274)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Seems to correlate with the latest set of kernel patches, applied on Wed., after which I see this whenever tomcat starts. This VM only runs iManager, that's its only purpose in life.
Labels (1)
0 Likes
2 Replies
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: iManager 3.1.1 vs. Auditing - NoClassDefFound?

Your subject calls out NoClassDefFound but I do not see that anywhere; is
that means to be a question about the possibility, or are you seeing that
somewhere else?

My first guess would be that something about the upgrade is incomplete.
NoSuchMethodError happens when you have the class you need, but usually it
is an old class, or maybe it is new and a function has been deprecated, so
something trying to run it fails unable to find a method, thus the error.

Where this is an upgrade I would therefore guess either you have an
incomplete upgrade (missing a new JAR providing the function), or you have
an incomplete upgrade where the class making the call was not updated and
it thinks something else, something old, should still be there. Either
way, can you try with iManager Workstation, or another test system that
may be new?

I doubt this can be traced back to your kernel, other than the likelhood
of a kernel patch causing a reboot, meaning everything on the box was
restarted. If the kernel patch also included a new version of the JRE, or
Tomcat, or other iManager patches, then that may be valid, but that's just
coincidence/correlation, not causation on the kernel.


--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.
0 Likes
Knowledge Partner
Knowledge Partner

Re: iManager 3.1.1 vs. Auditing - NoClassDefFound?

ab;2487623 wrote:
Your subject calls out NoClassDefFound but I do not see that anywhere; is
that means to be a question about the possibility, or are you seeing that
somewhere else?

My first guess would be that something about the upgrade is incomplete.
NoSuchMethodError happens when you have the class you need, but usually it
is an old class, or maybe it is new and a function has been deprecated, so
something trying to run it fails unable to find a method, thus the error.

Where this is an upgrade I would therefore guess either you have an
incomplete upgrade (missing a new JAR providing the function), or you have
an incomplete upgrade where the class making the call was not updated and
it thinks something else, something old, should still be there. Either
way, can you try with iManager Workstation, or another test system that
may be new?

I doubt this can be traced back to your kernel, other than the likelhood
of a kernel patch causing a reboot, meaning everything on the box was
restarted. If the kernel patch also included a new version of the JRE, or
Tomcat, or other iManager patches, then that may be valid, but that's just
coincidence/correlation, not causation on the kernel.


--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.


Make that "java.lang.NoSuchMethodError: com.novell.naudit.util.Util.getPrivateKeySpec".

The upgrade was installing iManager 3.1.1 to replace iManager 2.7.x that no longer runs for more than a few minutes since the August SLES11 Sp4 patches were installed.

Where does com.novell.naudit.util.Util.getPrivateKeySpec come from?

No, can't try iManager Workstation, as this is a server box whose only purpose is to run iManager for people to use. Don't have another test system handy, as this *is* the test system. Production is still on iManager 2.7.x, which needs to be upgraded as well.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.