Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

The run of java version on Windows causes error #404

Open

Description

@ashxz47

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

Activity

  1. csavar commented on Oct 29, 2019

    @csavar

    i have the same issiue, any idea maybe?
    thanks

  2. nygrenh commented on Oct 29, 2019

    @nygrenh
    Member

    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

  3. hesshu commented on May 1, 2020

    @hesshu

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

  4. AfvanMoopen commented on Jul 2, 2021

    @AfvanMoopen

    same issue 1

  5. AfvanMoopen commented on Jul 2, 2021

    @AfvanMoopen

    @hesshu

    Just cross-checking the things in here

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

    and restarting the system would be fine

  6. hesshu commented on Jul 4, 2021

    @hesshu

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

  7. AfvanMoopen commented on Jul 4, 2021

    @AfvanMoopen

    It's okkay 🙂

  8. maximbaraliuc commented on Dec 13, 2024

    @maximbaraliuc

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions