Re: Jperf problem



> Exception in thread "main"
> java.lang.ArrayIndexOutOfBoundsException: 2
>       at JperfGUI.<init>(JperfGUI.java:141)
>       at Jperf.main(Jperf.java:38)

Its giving you the error on this line:
String vers = version_split[2].replace('.','-');

There should have been a check to make sure that the version array (after
splitting) had 2 elements. :)

At any rate, what version of Iperf are you using? I'm guessing its 2.0 or
above, because Jperf was written before 2.0 existed and development has
ceased. The versioning output format for 2.0 may have changed which is why
you are getting that exception.

You'll have to change the code that checks for that version of Iperf you
are running to deal with 2.0. I'm not as familiar with 2.0, so the rest of
Jperf may have issues as well...

Patches are accepted and encouraged! :)

Thanks,
-Tanya


> 
> I am running Jperf wih the following command as instructed on the webpage:
> 
> headbangc1:/home/cscott/backup/benchmarking/jperf-1.0#java -classpath 
> ./jcommon-0.7.2.jar:./jfreechart-0.9.6.jar:./jperf.jar: Jperf
> 
> All .jar's are in the path, and iperf works correctly. My OS is Debian 
> GNU/Linux with a 2.4.27-1-386 kernel running jre1.5.0_01
> 
> Could someone point me in the right direction? Any help would be greatly 
> appreciated.
> Cheers.
> 



Other Mailing lists | Author Index | Date Index | Subject Index | Thread Index