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

[Bug] Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1 #521

Open
SwuduSusuwu opened this issue Feb 7, 2025 · 0 comments

Comments

@SwuduSusuwu
Copy link

SwuduSusuwu commented Feb 7, 2025

The run crashed without results to upload. https://github.com/SwuduSusuwu/SubStack/actions/runs/13203835501/job/36862132725?pr=46 just shows:

 02/07 16:25:44 INFO  c.c.a.c.a.CodacyPluginsAnalyser:66 - Completed duplication for duplication with 0 results 
Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1
	at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
	at java.io.InputStreamReader.read(InputStreamReader.java:184)
	at java.io.BufferedReader.fill(BufferedReader.java:161)
	at java.io.BufferedReader.readLine(BufferedReader.java:324)
	at java.io.BufferedReader.readLine(BufferedReader.java:389)
	at java.nio.file.Files.readAllLines(Files.java:3205)
	at better.files.File.lines(File.scala:282)
	at com.codacy.analysis.cli.formatter.Sarif.$anonfun$createResults$3(Sarif.scala:146)
	at scala.collection.TraversableLike$WithFilter.$anonfun$map$2(TraversableLike.scala:827)
	at scala.collection.immutable.Map$Map4.foreach(Map.scala:236)
	at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:826)
	at com.codacy.analysis.cli.formatter.Sarif.createResults(Sarif.scala:145)
	at com.codacy.analysis.cli.formatter.Sarif.$anonfun$addAll$1(Sarif.scala:81)
	at com.codacy.analysis.cli.formatter.Sarif.$anonfun$addAll$1$adapted(Sarif.scala:56)
	at scala.Option.foreach(Option.scala:407)
	at com.codacy.analysis.cli.formatter.Sarif.addAll(Sarif.scala:56)
	at com.codacy.analysis.cli.analysis.AnalyseExecutor.$anonfun$postProcess$5(AnalyseExecutor.scala:121)
	at com.codacy.analysis.cli.analysis.AnalyseExecutor.$anonfun$postProcess$5$adapted(AnalyseExecutor.scala:120)
	at scala.util.Success.foreach(Try.scala:253)
	at com.codacy.analysis.cli.analysis.AnalyseExecutor.$anonfun$postProcess$4(AnalyseExecutor.scala:120)
	at com.codacy.analysis.cli.analysis.AnalyseExecutor.$anonfun$postProcess$4$adapted(AnalyseExecutor.scala:118)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at com.codacy.analysis.cli.analysis.AnalyseExecutor.$anonfun$postProcess$1(AnalyseExecutor.scala:118)
	at scala.util.Either.map(Either.scala:353)
	at com.codacy.analysis.cli.analysis.AnalyseExecutor.postProcess(AnalyseExecutor.scala:105)
	at com.codacy.analysis.cli.analysis.AnalyseExecutor.run(AnalyseExecutor.scala:100)
	at com.codacy.analysis.cli.command.AnalyseCommand.$anonfun$run$1(AnalyseCommand.scala:68)
	at scala.util.Either.flatMap(Either.scala:341)
	at com.codacy.analysis.cli.command.AnalyseCommand.run(AnalyseCommand.scala:67)
	at com.codacy.analysis.cli.MainImpl.runCommand(Main.scala:19)
	at com.codacy.analysis.cli.MainImpl.run(Main.scala:14)
	at com.codacy.analysis.cli.command.CLIApp.run(CLIApp.scala:22)
	at com.codacy.analysis.cli.command.CLIApp.run(CLIApp.scala:18)
	at com.codacy.analysis.cli.command.CommandAppWithBaseCommand.$anonfun$main$1(CommandAppWithBaseCommand.scala:103)
	at com.codacy.analysis.cli.command.CommandAppWithBaseCommand.$anonfun$main$1$adapted(CommandAppWithBaseCommand.scala:88)
	at scala.Option.foreach(Option.scala:407)
	at com.codacy.analysis.cli.command.CommandAppWithBaseCommand.main(CommandAppWithBaseCommand.scala:88)
	at com.codacy.analysis.cli.Main.main(Main.scala)
Error: Process completed with exit code 1.
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

1 participant