[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mibble-users] 'couldn't find referenced MIB' error
From: |
Anton Boronnikov |
Subject: |
[Mibble-users] 'couldn't find referenced MIB' error |
Date: |
Sun, 04 May 2008 16:14:08 +0400 |
User-agent: |
Opera Mail/9.26 (Win32) |
Hello!
I need some comment about error I get when parse some mib files with
mibble. Error message is: "couldn't find referenced MIB 'RFC1215'". The
mib file what I parse contains such string: "TRAP-TYPE FROM RFC1215" in
IMPORTS part. And I get similar error when parsing another mib: "couldn't
find referenced MIB 'RFC-1213'". This file containes "DisplayString FROM
RFC-1213" reference. Of course then I get a lot of errors like "undefined
symbol 'DisplayString'".
Please explain me this error. And what I need to provide to my mib-loader
object necessary mib file? Or I must not provide it? (Because if we will
parse my mib files with 'AdventNet SNMPAPI 4' library we will not receive
any error.)
My code is below:
MibLoader loader = new MibLoader();
try
{
//Of course I try to provide needed file.
//But it does not help.
File file = new File("some_path\\RFC1213-MIB");
loader.addDir(file.getParentFile());
loader.load(file);
loader.load(new
File("some_path\\file_with_import_from_rfc1213.mib"));
}
catch (Exception ex)
{
//Here we will get MibLoaderException with error described before
}
--
Yours respectfully, Anton Boronnikov
- [Mibble-users] 'couldn't find referenced MIB' error,
Anton Boronnikov <=