Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49112

Get more information of 'java.nio.charset.UnmappableCharacterException'

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Jenkins v2.103
      Win7 x86
      Java 1.8.0_152

      When building with Jenkins the PostBuildStep fails with an Exception

      17:01:07 ERROR: Step ‘Post build task’ aborted due to exception:
      17:01:07 java.nio.charset.UnmappableCharacterException: Input length = 1
      17:01:07     at java.nio.charset.CoderResult.throwException(CoderResult.java:282)
      17:01:07     at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
      17:01:07     at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
      17:01:07     at java.io.InputStreamReader.read(InputStreamReader.java:184)
      17:01:07     at java.io.BufferedReader.fill(BufferedReader.java:161)
      17:01:07     at java.io.BufferedReader.read1(BufferedReader.java:212)
      17:01:07     at java.io.BufferedReader.read(BufferedReader.java:286)
      17:01:07     at hudson.Util.loadFile(Util.java:199)
      17:01:07     at hudson.model.Run.getLog(Run.java:1953)
      17:01:07     at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)
      17:01:07     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      17:01:07     at hudson.model.Build$BuildExecution.post2(Build.java:186)
      17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      17:01:07     at hudson.model.Run.execute(Run.java:1752)
      17:01:07     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      17:01:07     at hudson.model.ResourceController.execute(ResourceController.java:97)
      17:01:07     at hudson.model.Executor.run(Executor.java:429)

       

      How do I find more information on this and the cause of this error?
      The build failed without any configuration changes or updates on jenkins.

          [JENKINS-49112] Get more information of 'java.nio.charset.UnmappableCharacterException'

          Patrick Feistel created issue -
          Patrick Feistel made changes -
          Description Original: When building with Jenkins the PostBuildStep fails with an Exception
          *17:01:07* ERROR: Step ‘Post build task’ aborted due to exception: *17:01:07* java.nio.charset.UnmappableCharacterException: Input length = 1*17:01:07* at java.nio.charset.CoderResult.throwException(CoderResult.java:282)*17:01:07* at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)*17:01:07* at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)*17:01:07* at java.io.InputStreamReader.read(InputStreamReader.java:184)*17:01:07* at java.io.BufferedReader.fill(BufferedReader.java:161)*17:01:07* at java.io.BufferedReader.read1(BufferedReader.java:212)*17:01:07* at java.io.BufferedReader.read(BufferedReader.java:286)*17:01:07* at hudson.Util.loadFile(Util.java:199)*17:01:07* at hudson.model.Run.getLog(Run.java:1953)*17:01:07* at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)*17:01:07* at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)*17:01:07* at hudson.model.Build$BuildExecution.post2(Build.java:186)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)*17:01:07* at hudson.model.Run.execute(Run.java:1752)*17:01:07* at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)*17:01:07* at hudson.model.ResourceController.execute(ResourceController.java:97)*17:01:07* at hudson.model.Executor.run(Executor.java:429)


          How do I find more information on this and the cause of this error?

          The build failed without any configuration changes or updates on jenkins.
          New: When building with Jenkins the PostBuildStep fails with an Exception
          *17:01:07* ERROR: Step ‘Post build task’ aborted due to exception: *17:01:07* java.nio.charset.UnmappableCharacterException: Input length = 1*17:01:07* at java.nio.charset.CoderResult.throwException(CoderResult.java:282)*17:01:07* at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)*17:01:07* at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)*17:01:07* at java.io.InputStreamReader.read(InputStreamReader.java:184)*17:01:07* at java.io.BufferedReader.fill(BufferedReader.java:161)*17:01:07* at java.io.BufferedReader.read1(BufferedReader.java:212)*17:01:07* at java.io.BufferedReader.read(BufferedReader.java:286)*17:01:07* at hudson.Util.loadFile(Util.java:199)*17:01:07* at hudson.model.Run.getLog(Run.java:1953)*17:01:07* at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)*17:01:07* at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)*17:01:07* at hudson.model.Build$BuildExecution.post2(Build.java:186)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)*17:01:07* at hudson.model.Run.execute(Run.java:1752)*17:01:07* at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)*17:01:07* at hudson.model.ResourceController.execute(ResourceController.java:97)*17:01:07* at hudson.model.Executor.run(Executor.java:429)
          How do I find more information on this and the cause of this error?

          The build failed without any configuration changes or updates on jenkins.
          Patrick Feistel made changes -
          Description Original: When building with Jenkins the PostBuildStep fails with an Exception
          *17:01:07* ERROR: Step ‘Post build task’ aborted due to exception: *17:01:07* java.nio.charset.UnmappableCharacterException: Input length = 1*17:01:07* at java.nio.charset.CoderResult.throwException(CoderResult.java:282)*17:01:07* at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)*17:01:07* at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)*17:01:07* at java.io.InputStreamReader.read(InputStreamReader.java:184)*17:01:07* at java.io.BufferedReader.fill(BufferedReader.java:161)*17:01:07* at java.io.BufferedReader.read1(BufferedReader.java:212)*17:01:07* at java.io.BufferedReader.read(BufferedReader.java:286)*17:01:07* at hudson.Util.loadFile(Util.java:199)*17:01:07* at hudson.model.Run.getLog(Run.java:1953)*17:01:07* at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)*17:01:07* at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)*17:01:07* at hudson.model.Build$BuildExecution.post2(Build.java:186)*17:01:07* at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)*17:01:07* at hudson.model.Run.execute(Run.java:1752)*17:01:07* at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)*17:01:07* at hudson.model.ResourceController.execute(ResourceController.java:97)*17:01:07* at hudson.model.Executor.run(Executor.java:429)
          How do I find more information on this and the cause of this error?

          The build failed without any configuration changes or updates on jenkins.
          New: 17:01:07 ERROR: Step ‘Post build task’ aborted due to exception:
          17:01:07 java.nio.charset.UnmappableCharacterException: Input length = 1
          17:01:07     at java.nio.charset.CoderResult.throwException(CoderResult.java:282)
          17:01:07     at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
          17:01:07     at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
          17:01:07     at java.io.InputStreamReader.read(InputStreamReader.java:184)
          17:01:07     at java.io.BufferedReader.fill(BufferedReader.java:161)
          17:01:07     at java.io.BufferedReader.read1(BufferedReader.java:212)
          17:01:07     at java.io.BufferedReader.read(BufferedReader.java:286)
          17:01:07     at hudson.Util.loadFile(Util.java:199)
          17:01:07     at hudson.model.Run.getLog(Run.java:1953)
          17:01:07     at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)
          17:01:07     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
          17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          17:01:07     at hudson.model.Build$BuildExecution.post2(Build.java:186)
          17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          17:01:07     at hudson.model.Run.execute(Run.java:1752)
          17:01:07     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          17:01:07     at hudson.model.ResourceController.execute(ResourceController.java:97)
          17:01:07     at hudson.model.Executor.run(Executor.java:429)

           

          {{When building with Jenkins the PostBuildStep fails with an Exception}}

          {{ How do I find more information on this and the cause of this error?}}

          The build failed without any configuration changes or updates on jenkins.
          Patrick Feistel made changes -
          Description Original: 17:01:07 ERROR: Step ‘Post build task’ aborted due to exception:
          17:01:07 java.nio.charset.UnmappableCharacterException: Input length = 1
          17:01:07     at java.nio.charset.CoderResult.throwException(CoderResult.java:282)
          17:01:07     at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
          17:01:07     at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
          17:01:07     at java.io.InputStreamReader.read(InputStreamReader.java:184)
          17:01:07     at java.io.BufferedReader.fill(BufferedReader.java:161)
          17:01:07     at java.io.BufferedReader.read1(BufferedReader.java:212)
          17:01:07     at java.io.BufferedReader.read(BufferedReader.java:286)
          17:01:07     at hudson.Util.loadFile(Util.java:199)
          17:01:07     at hudson.model.Run.getLog(Run.java:1953)
          17:01:07     at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)
          17:01:07     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
          17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          17:01:07     at hudson.model.Build$BuildExecution.post2(Build.java:186)
          17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          17:01:07     at hudson.model.Run.execute(Run.java:1752)
          17:01:07     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          17:01:07     at hudson.model.ResourceController.execute(ResourceController.java:97)
          17:01:07     at hudson.model.Executor.run(Executor.java:429)

           

          {{When building with Jenkins the PostBuildStep fails with an Exception}}

          {{ How do I find more information on this and the cause of this error?}}

          The build failed without any configuration changes or updates on jenkins.
          New: When building with Jenkins the PostBuildStep fails with an Exception

          17:01:07 ERROR: Step ‘Post build task’ aborted due to exception:
           17:01:07 java.nio.charset.UnmappableCharacterException: Input length = 1
           17:01:07     at java.nio.charset.CoderResult.throwException(CoderResult.java:282)
           17:01:07     at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
           17:01:07     at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
           17:01:07     at java.io.InputStreamReader.read(InputStreamReader.java:184)
           17:01:07     at java.io.BufferedReader.fill(BufferedReader.java:161)
           17:01:07     at java.io.BufferedReader.read1(BufferedReader.java:212)
           17:01:07     at java.io.BufferedReader.read(BufferedReader.java:286)
           17:01:07     at hudson.Util.loadFile(Util.java:199)
           17:01:07     at hudson.model.Run.getLog(Run.java:1953)
           17:01:07     at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)
           17:01:07     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
           17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           17:01:07     at hudson.model.Build$BuildExecution.post2(Build.java:186)
           17:01:07     at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
           17:01:07     at hudson.model.Run.execute(Run.java:1752)
           17:01:07     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           17:01:07     at hudson.model.ResourceController.execute(ResourceController.java:97)
           17:01:07     at hudson.model.Executor.run(Executor.java:429)

           

          How do I find more information on this and the cause of this error?
          The build failed without any configuration changes or updates on jenkins.

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - CC dtrebbien . Maybe it's another follow-up to https://github.com/jenkinsci/jenkins/commit/67076834a24f03b832ab03b1bf9b96e05a5da81e#diff-7bec82f0a647b1592b682a66e7cc6bcf

          Oleg, yes, it appears so. Until charset handling is really fixed (e.g. by JENKINS-48923), I think the best course of action here is to revert the change to Util.loadFile(), add an exception block similar to https://github.com/jenkinsci/jenkins/pull/3255, and add a comment within Util.loadFile() explaining why Files.newBufferedReader() is not used.

          I will prepare a pull request...

          Daniel Trebbien added a comment - Oleg, yes, it appears so. Until charset handling is really fixed (e.g. by JENKINS-48923 ), I think the best course of action here is to revert the change to Util.loadFile(), add an exception block similar to https://github.com/jenkinsci/jenkins/pull/3255 , and add a comment within Util.loadFile() explaining why Files.newBufferedReader() is not used. I will prepare a pull request...
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: all-changes-plugin [ 15911 ]
          Component/s Original: analysis-collector-plugin [ 15710 ]
          Component/s Original: ant-plugin [ 15488 ]
          Component/s Original: apache-httpcomponents-client-4-api-plugin [ 23052 ]
          Component/s Original: audit-trail-plugin [ 15599 ]
          Component/s Original: backup-plugin [ 15696 ]
          Component/s Original: bouncycastle-api-plugin [ 21482 ]
          Component/s Original: ccm-plugin [ 15753 ]
          Component/s Original: changes-since-last-success-plugin [ 17324 ]
          Component/s Original: collapsing-console-sections-plugin [ 15763 ]
          Component/s Original: compact-columns-plugin [ 15735 ]
          Component/s Original: console-column-plugin [ 15790 ]
          Component/s Original: cvs-plugin [ 15486 ]
          Component/s Original: email-ext-plugin [ 15538 ]
          Component/s Original: git-client-plugin [ 17423 ]
          Component/s Original: greenballs-plugin [ 15603 ]
          Component/s Original: htmlpublisher-plugin [ 15681 ]
          Component/s Original: icon-shim-plugin [ 19825 ]
          Component/s Original: log-parser-plugin [ 15726 ]
          Component/s Original: mail-watcher-plugin [ 17450 ]
          Component/s Original: msbuild-plugin [ 15559 ]
          Component/s Original: nunit-plugin [ 15562 ]
          Component/s Original: ranorex-integration-plugin [ 22422 ]
          Component/s Original: redmine-plugin [ 15570 ]
          Component/s Original: translation-plugin [ 16085 ]
          Component/s Original: xunit-plugin [ 15636 ]
          Oleg Nenashev made changes -
          Assignee Original: Suresh Kumar [ pskumar448 ]
          Oleg Nenashev made changes -
          Issue Type Original: Task [ 3 ] New: Bug [ 1 ]

          Oleg Nenashev added a comment -

          dtrebbien thanks!

          Oleg Nenashev added a comment - dtrebbien thanks!

            dtrebbien Daniel Trebbien
            pedde Patrick Feistel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: