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

程序启动时报空指针异常 #243

Open
lemos1235 opened this issue Apr 3, 2020 · 1 comment
Open

程序启动时报空指针异常 #243

lemos1235 opened this issue Apr 3, 2020 · 1 comment

Comments

@lemos1235
Copy link

现象描述

程序启动报错

环境信息

系统版本: archlinux x86_64 Linux 5.5.13-arch2-1

java 版本: openjdk version "11.0.6" 2020-01-14

报错信息

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.bulenkov.darcula.DarculaLaf (file:/home/lg/Downloads/WePush-4.2.0/lib/darcula-lnf-1.0.jar) to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY
WARNING: Please consider reporting this to the maintainers of com.bulenkov.darcula.DarculaLaf
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.ExceptionInInitializerError
	at com.bulenkov.iconloader.IconLoader.<clinit>(IconLoader.java:53)
	at com.bulenkov.darcula.DarculaLaf.getDefaults(DarculaLaf.java:97)
	at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
	at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:633)
	at com.fangxuele.tool.push.ui.Init.initTheme(Init.java:111)
	at com.fangxuele.tool.push.App.main(App.java:37)
Caused by: java.lang.NullPointerException
	at com.bulenkov.iconloader.util.UIUtil.initSystemFontData(UIUtil.java:254)
	at com.bulenkov.iconloader.util.JBUI.calculateScaleFactor(JBUI.java:47)
	at com.bulenkov.iconloader.util.JBUI.<clinit>(JBUI.java:33)
	... 6 more

[在此填写WePush安装目录下logs文件夹内的报错信息]
image

@lemos1235 lemos1235 changed the title 启动空指针异常 程序启动时报空指针异常 Apr 3, 2020
@DevCharly
Copy link

To avoid the message Illegal reflective access by com.bulenkov.darcula.DarculaLaf at startup,
and maybe also fix the exception,
you could use FlatLaf (https://github.com/JFormDesigner/FlatLaf).

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

2 participants