Sorry for the inconvenience.
I just committed a change that should prevent such problems in the
future. The according change log excerpt is:
Prevented SQuirreL from failing to start when an erroneous Json
configuration exists. Such an error will now be logged and a
default/empty configuration will be used.
Gerd
Am 18.05.23 um 21:43 schrieb Greg Blajian:
> Stanimir,
>
> THANK YOU SO MUCH!
> You were 100% on target with that (two of the .json files were 100% empty/blank). I figured it was a corrupt file I just did not know where to look. Back up and running. You ROCK!!!! Thank you again!
>
> Gregory J Blajian
> gjb...@ho...
>
> -----Original Message-----
> From: Stanimir Stamenkov via Squirrel-sql-users <squ...@li...>
> Sent: Thursday, May 18, 2023 13:17
> To: squ...@li...
> Subject: Re: [Squirrel-sql-users] Issue launching squirrel client
>
> Thu, 18 May 2023 13:02:15 +0000, /Greg Blajian/:
>
>> $ java -jar squirrel-sql.jar
>>
>> java.lang.RuntimeException:
>> com.fasterxml.jackson.databind.JsonMappingException: No content to map
>> due to end-of-input at [Source: java.io.InputStreamReader@248af7cf;
>> line: 1, column: 1]
>> ...
>> at
>> net.sourceforge.squirrel_sql.client.gui.recentfiles.RecentFilesManager
>> .initJSonBean(RecentFilesManager.java:89)
>> at
>> net.sourceforge.squirrel_sql.client.Application.loadRecentFileHistory(
>> Application.java:1060)
>> ...
>
> Seems like you're having a corrupt "RecentFilesJsonBean.json":
>
> *
> https://github.com/squirrel-sql-client/squirrel-sql-code/blob/1a950b28b/sql12/core/src/net/sourceforge/squirrel_sql/client/Application.java#L1060
> *
> https://github.com/squirrel-sql-client/squirrel-sql-code/blob/1a950b28b/sql12/core/src/net/sourceforge/squirrel_sql/client/util/ApplicationFiles.java#L200-L202
>
> Try deleting it (move it away or rename it):
>
> > ren %USERPROFILE%\.squirrel-sql\RecentFilesJsonBean.json
> RecentFilesJsonBean.json.bak
>
> Alternatively, you may open it in Notepad - if the content is empty (as it seems from the exception message), enter an empty JSON object and save it back:
>
> {}
>
> --
> Stanimir
>
>
> _______________________________________________
> Squirrel-sql-users mailing list
> Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
>
>
> _______________________________________________
> Squirrel-sql-users mailing list
> Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
|