sun.io.MalformedInputException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • As reported by Chathura Herath to taverna-hackers on 2008-03-26: {code} Test set: net.sourceforge.taverna.scuflworkers.io.JTidyWorkerTest ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.52 sec <<< FAILURE! testExecute(net.sourceforge.taverna.scuflworkers.io.JTidyWorkerTest) Time elapsed: 0.504 sec <<< ERROR! sun.io.MalformedInputException at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262) at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:314) at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250) at java.io.InputStreamReader.read(InputStreamReader.java:212) at java.io.BufferedReader.fill(BufferedReader.java:157) at java.io.BufferedReader.readLine(BufferedReader.java:320) at java.io.BufferedReader.readLine(BufferedReader.java:383) at net.sourceforge.taverna.scuflworkers.io.JTidyWorkerTest.testExecute(JTidyWorkerTest.java:38) {code} The bug probably only appears on systems with a character encoding default that is different from latin1. Additionally, the test (of a component that is no longer included in the Taverna workbench) assumes network access and that http://www.nature.com/ is available. Suggest action is to either *ignore* or remove the failing test. If the test is to be fixed it should use a html file bundled in src/test/resources - and specify the encoding to InputStreamReader specifically. This bug is related to TAV-273 because it uses the constructor new InputStreamReader(InputStream) - and usage of such should also be checked for over all of the source code.
    via by Stian Soiland-Reyes,
  • Exception using Ant
    via by Luciano Torres,
  • When I checked out or updated from CVS, I got a "MalformedInputException". Before I found similar Bug.(URL is below) http://jenkins.361315.n4.nabble.com/Exception-while-checking-out-from-CVS-td384310.html console log: [workspace] $ cvs -q -z3 update -PdC -r xx_0_0 -D "Thursday, April 28, 2011 10:18:56 AM UTC" sun.io.MalformedInputException at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262) at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:316) at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:366) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:252) at java.io.InputStreamReader.read(InputStreamReader.java:212) at java.io.BufferedReader.fill(BufferedReader.java:157) at java.io.BufferedReader.readLine(BufferedReader.java:320) at java.io.BufferedReader.readLine(BufferedReader.java:383) at hudson.scm.CVSSCM.parseCVSEntries(CVSSCM.java:510) at hudson.scm.CVSSCM.archive(CVSSCM.java:465) at hudson.scm.CVSSCM.archive(CVSSCM.java:486) at hudson.scm.CVSSCM.archive(CVSSCM.java:486) at hudson.scm.CVSSCM.access$100(CVSSCM.java:123) at hudson.scm.CVSSCM$1.invoke(CVSSCM.java:381) at hudson.scm.CVSSCM$1.invoke(CVSSCM.java:374) at hudson.FilePath.act(FilePath.java:757) at hudson.FilePath.act(FilePath.java:739) at hudson.scm.CVSSCM.checkout(CVSSCM.java:374) at hudson.model.AbstractProject.checkout(AbstractProject.java:1174) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:523) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:418) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)
    via by yoshikazu yoshida,
  • Error on one Test-Feed
    via GitHub by PatrickGotthard
    ,
  • Build fails when Sonar is active, Error message as follows: {noformat} [INFO] Sensor SurefireSensor done: 2 ms [INFO] Execute decorators... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar Embedded error: Unable to calculate checksums [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:103) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.sonar.api.utils.SonarException: Unable to calculate checksums at org.sonar.plugins.core.timemachine.ViolationPersisterDecorator.getChecksums(ViolationPersisterDecorator.java:120) at org.sonar.plugins.core.timemachine.ViolationPersisterDecorator.getChecksums(ViolationPersisterDecorator.java:108) at org.sonar.plugins.core.timemachine.ViolationPersisterDecorator.decorate(ViolationPersisterDecorator.java:79) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:83) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:75) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:75) at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:66) at org.sonar.batch.phases.Phases.execute(Phases.java:73) at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:61) at org.sonar.batch.Batch.analyzeModule(Batch.java:149) at org.sonar.batch.Batch.analyzeModule(Batch.java:140) at org.sonar.batch.Batch.analyzeModule(Batch.java:140) at org.sonar.batch.Batch.analyzeModules(Batch.java:106) at org.sonar.batch.Batch.execute(Batch.java:66) at org.sonar.maven.SonarMojo.executeBatch(SonarMojo.java:142) at org.sonar.maven.SonarMojo.execute(SonarMojo.java:133) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98) ... 21 more Caused by: sun.io.MalformedInputException at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:294) at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:316) at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:366) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:252) at java.io.InputStreamReader.read(InputStreamReader.java:212) at java.io.BufferedReader.fill(BufferedReader.java:157) at java.io.BufferedReader.readLine(BufferedReader.java:320) at java.io.BufferedReader.readLine(BufferedReader.java:383) at org.apache.commons.io.IOUtils.readLines(IOUtils.java:502) at org.apache.commons.io.IOUtils.readLines(IOUtils.java:457) at org.sonar.plugins.core.timemachine.ViolationPersisterDecorator.getChecksums(ViolationPersisterDecorator.java:115) ... 38 more {noformat}
    via by Luke Robertson,
    • sun.io.MalformedInputException at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262) at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:314) at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250) at java.io.InputStreamReader.read(InputStreamReader.java:212) at java.io.BufferedReader.fill(BufferedReader.java:157) at java.io.BufferedReader.readLine(BufferedReader.java:320) at java.io.BufferedReader.readLine(BufferedReader.java:383) at org.jvnet.poormans_installer.ConsoleForm.getLicense(ConsoleForm.java:63) at org.jvnet.poormans_installer.ConsoleForm.show(ConsoleForm.java:46) at org.jvnet.poormans_installer.Main.doConsole(Main.java:79) at org.jvnet.poormans_installer.Main.main(Main.java:57)

    Users with the same issue

    Unknown visitor1 times, last one,