SQuirreLSQL无法加载,并带有IllegalStateException

问题描述

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中的配置文件损坏引起的。

  1. 验证每个配置文件
  2. 删除损坏的文件
  3. 运行SQuirreL

在Notepad ++中,损坏的文件将包含NUL

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...