[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mibble-users] java.lang.StringIndexOutOfBoundsException
From: |
Per Cederberg |
Subject: |
Re: [Mibble-users] java.lang.StringIndexOutOfBoundsException |
Date: |
Sun, 02 Apr 2006 23:52:08 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.7 (Macintosh/20050923) |
Thanks for the bug report! I've filed it to the Mibble bug
tracker with id #16252:
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=16252
The issue here is that the MibLoaderLog fails to print the
errors found when loading the MIB file. This is due to the
file containing a mix of CR and CRLF line endings:
#> file foundry.mib
foundry.mib: ASCII English text, with CRLF, CR line terminators
If you fix that, you'll be able to see the correct error
messages. With the patch attached to the bug report above,
you won't see the faltering lines:
#> bin/MibblePrinter.sh foundry.mib
Using environment variables:
MIBBLE_HOME = .
JAVA_HOME = /System/Library/Frameworks/JavaVM.framework/Home
CLASSPATH =
./lib/mibble-parser-20060402.jar:./lib/mibble-mibs-20060402.jar:./lib/grammatica-bin-1.4.jar:./lib/snmp4_13.jar
Error: in /Users/per/Desktop/foundry.mib: line 15826:
couldn't find imported MIB: FOUNDRY-SN-IP-MIB
Error: in /Users/per/Desktop/foundry.mib: line 22862:
couldn't find imported MIB: FOUNDRY-SN-AGENT-MIB
Error: in /Users/per/Desktop/foundry.mib: line 22864:
couldn't find imported MIB: FOUNDRY-SN-SWITCH-GROUP-MIB
Error: in /Users/per/Desktop/foundry.mib: line 22884:
couldn't find imported MIB: FOUNDRY-SN-OSPF-GROUP-MIB
Error: in /Users/per/Desktop/foundry.mib: line 22890:
couldn't find imported MIB: FOUNDRY-SN-SW-L4-SWITCH-GROUP-MIB
Try splitting your MIB file into one file per MIB, with
each file being named according to the MIB. I think that
would be the best way to avoid these errors.
Cheers,
/Per
Ted Kaczmarek wrote:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:444)
at net.percederberg.mibble.MibLoaderLog.printTo(Unknown Source)
at net.percederberg.mibble.MibLoaderLog.printTo(Unknown Source)
at net.percederberg.mibble.MibLoaderLog.printTo(Unknown Source)
at net.percederberg.mibble.browser.BrowserFrame.loadMib (Unknown
Source)
at net.percederberg.mibble.browser.BrowserFrame$Loader.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:552)
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
Seeing this error on Os X and Linux variants when trying to load
foundry.mib.
http://downloads.somix.com/mibs/foundry-mibs.zip
Regards,
Ted
_______________________________________________
Mibble-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/mibble-users