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
|