Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexOutOfBoundsException in IPExt test #6

Open
yiming187 opened this issue Jul 29, 2015 · 4 comments
Open

IndexOutOfBoundsException in IPExt test #6

yiming187 opened this issue Jul 29, 2015 · 4 comments

Comments

@yiming187
Copy link

I just downloaded the source code and data file. The IP.java runs very well, but the IPExt.java met some errors. Do you have any idea?

public static void main(String[] args) {
    IPExt.load("data/17monipdb.dat");

    System.out.println(Arrays.toString(IPExt.find("8.8.8.8")));
    System.out.println(Arrays.toString(IPExt.find("118.28.8.8")));
    System.out.println(Arrays.toString(IPExt.find("255.255.255.255")));
}

Exception in thread "main" java.lang.IndexOutOfBoundsException at java.nio.Buffer.checkIndex(Buffer.java:546) at java.nio.HeapByteBuffer.getInt(HeapByteBuffer.java:365) at com.yiming187.jnetpcap_example.ip.IPExt.find(IPExt.java:66) at com.yiming187.jnetpcap_example.ip.IPExt.main(IPExt.java:18)

@Yi-Lyu
Copy link

Yi-Lyu commented Nov 17, 2015

me too ...

@17mon
Copy link
Owner

17mon commented Jan 7, 2016

IPExt 只支持datx格式的文件不支持dat格式

@childe
Copy link

childe commented Feb 25, 2016

@17mon 就是下载的datx文件, 也报错.

@sagomilk
Copy link

me too ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants