java icon indicating copy to clipboard operation
java copied to clipboard

报错,怎么解决?

Open jiaying96 opened this issue 6 years ago • 4 comments

Exception in thread "main" java.nio.BufferUnderflowException at java.base/java.nio.HeapByteBuffer.get(HeapByteBuffer.java:191) at com.ip.IPExt.load(IPExt.java:107) at com.ip.IPExt.load(IPExt.java:34) at com.ip.IPExt.main(IPExt.java:15)

jiaying96 avatar Jul 12 '18 08:07 jiaying96

这个怎么解决,在本地是正常的,在spark集群回报这个错 @17mon

Duangit avatar Sep 21 '18 10:09 Duangit

已解决

Duangit avatar Sep 26 '18 02:09 Duangit

我也报错,IPExt读取最新的datx文件。

Caused by: java.nio.BufferUnderflowException
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:151)
    at xxxx.IPExt.load(IPExt.java:111)

发现datx的文件大小是2556547,但是读出来第一个int是2783363,超过了文件大小了。

lephix avatar Dec 12 '18 05:12 lephix

已解决

请问是如何解决的?我也遇到了这个问题

senlizishi avatar Dec 09 '21 03:12 senlizishi