NETEGRITY mib fails to compile in Spectrum MIB Tools (Legacy KB ID CNC TS33379 )

Document ID : KB000051546
Last Modified Date : 14/02/2018
Show Technical Document Details
The work-around is to change the name of the mib inside the mib file itself and recompile. Change the following:


NETEGRITY DEFINITIONS ::= BEGIN


To read as follows:


NETEGRITY-MIB DEFINITIONS ::= BEGIN


Then recompile the mib.



Related Issues/Questions:
NETEGRITY mib fails to compile in Spectrum MIB Tools with the following error:


Error compiling file: HTTP error



Problem Environment:
Spectrum 09.00.00.00
MIB Tools
NETEGRITY
The following error is also seen in the $SPECROOT/tomcat/logs/stdout.log on Windows or the $SPECROOT/tomcat/logs/catalina.out on Solaris and Linux:


The following error is also seen in the stdout.log file:

java.lang.NullPointerException
        at java.io.FilterInputStream.read(FilterInputStream.java:116)
        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at com.adventnet.snmp.mibs.MibOperations.getModuleNameDefinition(MibOper
ations.java:1768)
        at com.adventnet.snmp.mibs.MibOperations.getModuleNameDefinitions(MibOpe
rations.java:3950)
        at com.adventnet.snmp.mibs.MibOperations.loadmibmodule(MibOperations.jav
a:8960)
        at com.adventnet.snmp.mibs.MibOperations.loadModules(MibOperations.java:
5056)
        at com.adventnet.snmp.mibs.MibOperations.loadMibModule(MibOperations.jav
a:1224)
        at com.aprisma.spectrum.app.mib.web.MibDB.compileMib(MibDB.java:525)
        at com.aprisma.spectrum.app.mib.web.MibDB.compileMib(MibDB.java:487)
        at com.aprisma.spectrum.app.mib.web.MIBToolsServlet.compileMib(MIBToolsS
ervlet.java:453)
        at com.aprisma.spectrum.app.mib.web.MIBToolsServlet.doGet(MIBToolsServle
t.java:258)
        at com.aprisma.spectrum.app.mib.web.MIBToolsServlet.doPost(MIBToolsServl
et.java:231)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:172)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:525)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommon
AccessLogValve.java:482)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter..jav
a:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
        at java.lang.Thread.run(Thread.java:619)
Jun 11, 2009 12:16:22 PM - MIBToolsServlet.doGet: servletPath = /mib/compileMib
query string = nulljava.lang.NullPointerException
        at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectO
utputStream.java:2097)
        at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutpu
tStream.java:1968)
        at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:841)
        at com.aprisma.spectrum.app.mib.common.MTCompileResults.writeObject(MTCo
mpileResults.java:332)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:94
5)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:14
61)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav
a:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
        at com.aprisma.spectrum.app.mib.web.MIBToolsServlet.compileMib(MIBToolsS
ervlet.java:477)
        at com.aprisma.spectrum.app.mib.web.MIBToolsServlet.doGet(MIBToolsServle
t.java:258)
        at com.aprisma.spectrum.app.mib.web.MIBToolsServlet.doPost(MIBToolsServl
et.java:231)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:172)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:525)
        at org.apache.catali.na.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommon
AccessLogValve.java:482)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
        at java.lang.Thread.run(Thread.java:619)

.

Causes of this problem:
The root cause is with the third party MIB compiler used by MIB Tools.


(Legacy KB ID CNC TS33379 )