Jdbc SQuirreL(SQL)加载失败,出现IllegalStateException

Jdbc SQuirreL(SQL)加载失败,出现IllegalStateException,jdbc,illegalstateexception,squirrel-sql,Jdbc,Illegalstateexception,Squirrel Sql,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=

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

  • 验证每个配置文件
  • 删除损坏的文件
  • 跑松鼠

  • 在记事本++中,损坏的文件将包含
    NUL

    我遇到了相同的问题,每个文件都包含
    NUL
    。通过删除整个文件夹
    %USERPROFILE%\.squirrel-sql
    并再次运行
    squirrel-sql.bat
    修复了此问题。