问题描述
SQuirreL(SQL)将无法通过以下堆栈跟踪加载。
ERROR net.sourceforge.squirrel_sql.client.Main - Exception occurred dispatching Event java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=net.sourceforge.squirrel_sql.client.Main$$Lambda$7/1937962514@213d039,notifier=null,catchExceptions=false,when=1600348904062] on sun.awt.windows.WToolkit@22834772
java.lang.RuntimeException: java.lang.IllegalStateException: Must not create bundle before locale was initalized.
at net.sourceforge.squirrel_sql.client.Main.doApplicationStartup(Main.java:124)
at net.sourceforge.squirrel_sql.client.Main.lambda$startApp$0(Main.java:111)
...
Caused by: java.lang.IllegalStateException: Must not create bundle before locale was initalized.
at net.sourceforge.squirrel_sql.fw.resources.LazyResourceBundle.getString(LazyResourceBundle.java:34)
解决方法
此问题可能是由%USERPROFILE%\.squirrel-sql
中的配置文件损坏引起的。
- 验证每个配置文件
- 删除损坏的文件
- 运行SQuirreL
在Notepad ++中,损坏的文件将包含NUL
。