[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mibble-users] NullPointerException
From: |
Markus Barchfeld |
Subject: |
[Mibble-users] NullPointerException |
Date: |
Thu, 18 Jan 2007 10:42:15 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (Windows/20061207) |
Hi!
I evaluated some MIB parsers and mibble crunched bravely through more
than 160 MIB files, but it produced one NullPointerException with a
particular erroneous MIB file. I have created a minimal MIB file, which
shows the problem, see below.
The problem arises when Unsigned32 is defined, but throws NPE if not. I
would have expected a "undefined symbol" error - which occurs after
removing the revealNpeMibEntry definition.
Would it be much effort to fix this?
Thanks
Markus
REVEAL-NPE-MIB DEFINITIONS ::= BEGIN
revealNpeMib MODULE-IDENTITY
LAST-UPDATED "0701161535Z"
ORGANIZATION "NONE"
CONTACT-INFO "mbarchfeld"
DESCRIPTION "Shows a NullPointerException of mibble parser"
::= { iso 21 }
-- uncomment the following definition of Unsigned32 and the mibble
parser will
-- parse this file just fine
-- Unsigned32 ::=
-- [APPLICATION 2]
-- IMPLICIT INTEGER (0..4294967295) BasedOnUnknownSyntax
::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "None."
SYNTAX Unsigned32
-- if the revealNpeMibEntry definition is removed, the parser shows
-- Error: in C:\Temp\REVEAL-NPE-MIB.txt: line 20:
-- undefined symbol 'Unsigned32'
--
-- SYNTAX Unsigned32
-- ^
revealNpeMibEntry OBJECT-TYPE
SYNTAX NPESyntax MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "None."
::= { revealNpeMib 1 }
NPESyntax ::=
SEQUENCE {
entry BasedOnUnknownSyntax
}
END
- [Mibble-users] NullPointerException,
Markus Barchfeld <=