Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8071954

assertion error in StreamEncoder

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      The test java/util/Spliterator/SpliteratorTraversingAndSplittingTest.java encountered the assertion error appended below.

      Note that the test itself seems to have run successfully to completion; its output summary line says,

         Total tests run: 6512, Failures: 0, Skips: 0

      The assertion failure stack trace comes from the JTreg test harness and TestNG when writing the output. Note that the full output log has been truncated by JTreg because it had reached its output limit. This might cause stuff to be stranded in the encoder's output buffer, leading to the assertion error.

      ----------System.err:(32/2095)----------
      java.lang.AssertionError: 62877
      at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:273)
      at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
      at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:135)
      at java.io.OutputStreamWriter.write(OutputStreamWriter.java:220)
      at java.io.Writer.write(Writer.java:157)
      at java.io.Writer.append(Writer.java:227)
      at org.testng.reporters.FileStringBuffer.flushToFile(FileStringBuffer.java:117)
      at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:48)
      at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:28)
      at org.testng.reporters.XMLStringBuffer.addCDATA(XMLStringBuffer.java:312)
      at org.testng.reporters.XMLSuiteResultWriter.addParameter(XMLSuiteResultWriter.java:266)
      at org.testng.reporters.XMLSuiteResultWriter.addTestMethodParams(XMLSuiteResultWriter.java:250)
      at org.testng.reporters.XMLSuiteResultWriter.addTestResult(XMLSuiteResultWriter.java:154)
      at org.testng.reporters.XMLSuiteResultWriter.addTestResults(XMLSuiteResultWriter.java:130)
      at org.testng.reporters.XMLSuiteResultWriter.writeAllToBuffer(XMLSuiteResultWriter.java:74)
      at org.testng.reporters.XMLSuiteResultWriter.writeSuiteResult(XMLSuiteResultWriter.java:52)
      at org.testng.reporters.XMLReporter.writeSuiteToBuffer(XMLReporter.java:120)
      at org.testng.reporters.XMLReporter.writeSuite(XMLReporter.java:86)
      at org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:63)
      at org.testng.TestNG.generateReports(TestNG.java:1115)
      at org.testng.TestNG.run(TestNG.java:1074)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:161)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:776)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                smarks Stuart Marks
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: