Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The run of java version on Windows causes error #404

Open
ashxz47 opened this issue Aug 27, 2019 · 8 comments
Open

The run of java version on Windows causes error #404

ashxz47 opened this issue Aug 27, 2019 · 8 comments

Comments

@ashxz47
Copy link

ashxz47 commented Aug 27, 2019

C:>java -jar C:\Users\ashorov\Downloads\java\tmc-cli-0.9.2.jar
Exception in thread "main" com.google.gson.JsonSyntaxException: java.nio.charset.MalformedInputException: Input length = 1
at com.google.gson.Gson.fromJson(Gson.java:903)
at com.google.gson.Gson.fromJson(Gson.java:826)
at fi.helsinki.cs.tmc.cli.backend.SettingsIo.getHolderFromJson(SettingsIo.java:183)
at fi.helsinki.cs.tmc.cli.backend.SettingsIo.loadAccountList(SettingsIo.java:50)
at fi.helsinki.cs.tmc.cli.backend.SettingsIo.loadAccountList(SettingsIo.java:42)
at fi.helsinki.cs.tmc.cli.core.CliContext.loadUserInformation(CliContext.java:206)
at fi.helsinki.cs.tmc.cli.core.CliContext.checkIsLoggedIn(CliContext.java:168)
at fi.helsinki.cs.tmc.cli.command.HelpCommand.run(HelpCommand.java:37)
at fi.helsinki.cs.tmc.cli.core.AbstractCommand.execute(AbstractCommand.java:63)
at fi.helsinki.cs.tmc.cli.Application.runCommand(Application.java:102)
at fi.helsinki.cs.tmc.cli.Application.run(Application.java:211)
at fi.helsinki.cs.tmc.cli.Application.main(Application.java:225)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.read1(Unknown Source)
at java.io.BufferedReader.read(Unknown Source)
at com.google.gson.stream.JsonReader.fillBuffer(JsonReader.java:1295)
at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1333)
at com.google.gson.stream.JsonReader.consumeNonExecutePrefix(JsonReader.java:1576)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:534)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:425)
at com.google.gson.Gson.fromJson(Gson.java:884)
... 11 more

@csavar
Copy link

csavar commented Oct 29, 2019

i have the same issiue, any idea maybe?
thanks

@nygrenh
Copy link
Member

nygrenh commented Oct 29, 2019

My best guest would be corrupted settings files. You can try deleting your settings from %APPDATA%. They are located under a folder called tmc-cli.

Here's information on how you can access app data: https://www.techwalla.com/articles/how-to-access-the-application-data-folder

@hesshu
Copy link

hesshu commented May 1, 2020

Did anyone figure this out yet? I'm having the same issue and deletion of settings did not help.

@AfvanMoopen
Copy link

same issue 1

@AfvanMoopen
Copy link

@hesshu

Just cross-checking the things in here

https://www.mooc.fi/en/installation/vscode

and restarting the system would be fine

@hesshu
Copy link

hesshu commented Jul 4, 2021

@AfvanJaffer I switched to Linux on the system and do not have the need for tmc-cli anymore so I cannot cross-check, sorry :)

@AfvanMoopen
Copy link

It's okkay 🙂

@maximbaraliuc
Copy link

My best guest would be corrupted settings files. You can try deleting your settings from %APPDATA%. They are located under a folder called tmc-cli.

Here's information on how you can access app data: https://www.techwalla.com/articles/how-to-access-the-application-data-folder

This solved the issue for me. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants