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

[BUG] jdk 1.8导出文件内容为空 #157

Open
NHPT opened this issue Jul 25, 2024 · 7 comments
Open

[BUG] jdk 1.8导出文件内容为空 #157

NHPT opened this issue Jul 25, 2024 · 7 comments

Comments

@NHPT
Copy link

NHPT commented Jul 25, 2024

描述你遇到的问题
结果导出为空

复现步骤

屏幕截图

image
image
image
运行环境

  • 操作系统

Windows 11

  • Java 版本
  • 软件版本

java version "1.8.0_371"
Java(TM) SE Runtime Environment (build 1.8.0_371-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.371-b11, mixed mode)
补充说明

@keac
Copy link
Member

keac commented Jul 30, 2024

请命令行运行 java -jar 查看是否有报错日志

@Kiand1
Copy link

Kiand1 commented Jul 31, 2024

一样的问题
控制台报错
ERROR MainController.java.java:529-call: java.lang.NullPointerException at org.fofaviewer.utils.DataUtil.loadJsonData(DataUtil.java:123) at org.fofaviewer.controllers.MainController$7.call(MainController.java:508) at org.fofaviewer.controllers.MainController$7.call(MainController.java:494) at javafx.concurrent.Task$TaskCallable.call(Task.java:1423) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang.Thread.run(Thread.java:748) ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...

@0xShe
Copy link

0xShe commented Aug 15, 2024

俺也一样

@Mr-xn
Copy link

Mr-xn commented Aug 30, 2024

@NHPT @0xShe @Kiand1
可能是分页的问题,尝试不导出整数页数据 比如查询结果显示有10页(假设每页100条数据,实际是912条,导出数据10页就可能报空指针错误) 导出9页 试试

@0xShe
Copy link

0xShe commented Oct 18, 2024

还是空 所以能修复一下吗 好兄弟

@jnabnsn
Copy link

jnabnsn commented Oct 31, 2024

在org.fofaviewer.controllers.MainController#exportAction的498行左右,对bean.next重新初始化一下就行了。
image

@keac
Copy link
Member

keac commented Oct 31, 2024

@jnabnsn 师傅可以提交个pr

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

6 participants