hudson.util.IOException2: Failed to read C:\Documents and Settings\3167 \.hudson\jobs\Nunit\workspace\temporary-junit- reports\TEST.HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.xml

Jenkins JIRA | evb | 9 years ago
  1. 0

    The use of a non-ascii character will give a exception : started Transforming NUnit tests results Recording test results FATAL: Failed to read C:\Documents and Settings\3167 \.hudson\jobs\Nunit\workspace\temporary-junit- reports\TEST.HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.xml hudson.util.IOException2: Failed to read C:\Documents and Settings\3167 \.hudson\jobs\Nunit\workspace\temporary-junit- reports\TEST.HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.xml at hudson.tasks.junit.TestResult.parse(TestResult.java:119) at hudson.tasks.junit.TestResult.parse(TestResult.java:83) at hudson.tasks.junit.TestResult.<init>(TestResult.java:66) at hudson.tasks.junit.JUnitResultArchiver$1.invoke (JUnitResultArchiver.java:67) at hudson.tasks.junit.JUnitResultArchiver$1.invoke (JUnitResultArchiver.java:52) at hudson.FilePath.act(FilePath.java:280) at hudson.tasks.junit.JUnitResultArchiver.perform (JUnitResultArchiver.java:52) at hudson.plugins.nunit.NUnitArchiver.performJUnitArchiver (NUnitArchiver.java:115) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:73) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:33) at hudson.FilePath.act(FilePath.java:280) at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:53) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post (AbstractBuild.java:243) at hudson.model.Run.run(Run.java:595) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:62) Caused by: org.dom4j.DocumentException: Invalid byte 1 of 1-byte UTF-8 sequence. Nested exception: Invalid byte 1 of 1-byte UTF-8 sequence. at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:264) at hudson.tasks.junit.SuiteResult.<init>(SuiteResult.java:38) at hudson.tasks.junit.TestResult.parse(TestResult.java:111) ... 17 more This extract of the complete nunit result xml file is the cause of the exception : <test-case name="HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.AutoCompute_0000 01" executed="True" success="False" time="0.172" asserts="7"> <failure> <message><![CDATA[Test 'VM01' n°1, Clockin #0 (at 1/2/2006 7:45:00 AM) on field ClDttDate. Expected: 'this.myDateNullValue'. Have: '1/01/0001 0:00:00' expected:<1/01/1900 0:00:00> but was:<1/01/0001 0:00:00>]]> </message> <stack-trace><![CDATA[ at HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.AutoCompute_000001() in C:\DevTree\src\trunk\TestCenter.root\HRATestCenter\HRABusinessLayer\Process\Comp uteDayAutoTest.cs:line 103 ]]> </stack-trace> </failure> </test-case> We have the character 'n°1' in the xml! If I replace for example the 'n°1' by 'nr.1', then all will work like expected. Regards, Eric

    Jenkins JIRA | 9 years ago | evb
    hudson.util.IOException2: Failed to read C:\Documents and Settings\3167 \.hudson\jobs\Nunit\workspace\temporary-junit- reports\TEST.HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.xml
  2. 0

    The use of a non-ascii character will give a exception : started Transforming NUnit tests results Recording test results FATAL: Failed to read C:\Documents and Settings\3167 \.hudson\jobs\Nunit\workspace\temporary-junit- reports\TEST.HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.xml hudson.util.IOException2: Failed to read C:\Documents and Settings\3167 \.hudson\jobs\Nunit\workspace\temporary-junit- reports\TEST.HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.xml at hudson.tasks.junit.TestResult.parse(TestResult.java:119) at hudson.tasks.junit.TestResult.parse(TestResult.java:83) at hudson.tasks.junit.TestResult.<init>(TestResult.java:66) at hudson.tasks.junit.JUnitResultArchiver$1.invoke (JUnitResultArchiver.java:67) at hudson.tasks.junit.JUnitResultArchiver$1.invoke (JUnitResultArchiver.java:52) at hudson.FilePath.act(FilePath.java:280) at hudson.tasks.junit.JUnitResultArchiver.perform (JUnitResultArchiver.java:52) at hudson.plugins.nunit.NUnitArchiver.performJUnitArchiver (NUnitArchiver.java:115) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:73) at hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:33) at hudson.FilePath.act(FilePath.java:280) at hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:53) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post (AbstractBuild.java:243) at hudson.model.Run.run(Run.java:595) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:62) Caused by: org.dom4j.DocumentException: Invalid byte 1 of 1-byte UTF-8 sequence. Nested exception: Invalid byte 1 of 1-byte UTF-8 sequence. at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:264) at hudson.tasks.junit.SuiteResult.<init>(SuiteResult.java:38) at hudson.tasks.junit.TestResult.parse(TestResult.java:111) ... 17 more This extract of the complete nunit result xml file is the cause of the exception : <test-case name="HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.AutoCompute_0000 01" executed="True" success="False" time="0.172" asserts="7"> <failure> <message><![CDATA[Test 'VM01' n°1, Clockin #0 (at 1/2/2006 7:45:00 AM) on field ClDttDate. Expected: 'this.myDateNullValue'. Have: '1/01/0001 0:00:00' expected:<1/01/1900 0:00:00> but was:<1/01/0001 0:00:00>]]> </message> <stack-trace><![CDATA[ at HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.AutoCompute_000001() in C:\DevTree\src\trunk\TestCenter.root\HRATestCenter\HRABusinessLayer\Process\Comp uteDayAutoTest.cs:line 103 ]]> </stack-trace> </failure> </test-case> We have the character 'n°1' in the xml! If I replace for example the 'n°1' by 'nr.1', then all will work like expected. Regards, Eric

    Jenkins JIRA | 9 years ago | evb
    TEST.HRATestCenter.HRABusinessLayer.Process.ComputeDayAutoTest.xml
  3. 0

    Liferay 6.2 maven theme - what about liferay-look-and-feel.xml?

    Stack Overflow | 3 years ago | jhohlfeld
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-RC5:theme-merge (default) on project test-theme: www.liferay.com Nested exception: www.liferay.com
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    2.0.0-GA1: Plugin Project type Theme - Maven liferay:deploy fails - Forums | Liferay

    liferay.com | 1 year ago
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-RC5:theme-merge (default) on project square-theme: www.liferay.com Nested exception: www.liferay.com
  6. 0

    2.0.0-GA1: Plugin Project type Theme - Maven liferay:deploy fails - Forums | Liferay

    liferay.com | 1 year ago
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-RC5:theme-merge (default) on project square-theme: www.liferay.com Nested exception: www.liferay.com

    41 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.dom4j.DocumentException

      Invalid byte 1 of 1-byte UTF-8 sequence. Nested exception: Invalid byte 1 of 1-byte UTF-8 sequence.

      at org.dom4j.io.SAXReader.read()
    2. dom4j
      SAXReader.read
      1. org.dom4j.io.SAXReader.read(SAXReader.java:484)
      2. org.dom4j.io.SAXReader.read(SAXReader.java:264)
      2 frames
    3. Hudson
      JUnitResultArchiver.perform
      1. hudson.tasks.junit.SuiteResult.<init>(SuiteResult.java:38)
      2. hudson.tasks.junit.TestResult.parse(TestResult.java:111)
      3. hudson.tasks.junit.TestResult.parse(TestResult.java:83)
      4. hudson.tasks.junit.TestResult.<init>(TestResult.java:66)
      5. hudson.tasks.junit.JUnitResultArchiver$1.invoke(JUnitResultArchiver.java:67)
      6. hudson.tasks.junit.JUnitResultArchiver$1.invoke(JUnitResultArchiver.java:52)
      7. hudson.FilePath.act(FilePath.java:280)
      8. hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:52)
      8 frames
    4. hudson.plugins.nunit
      NUnitArchiver.invoke
      1. hudson.plugins.nunit.NUnitArchiver.performJUnitArchiver(NUnitArchiver.java:115)
      2. hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:73)
      3. hudson.plugins.nunit.NUnitArchiver.invoke(NUnitArchiver.java:33)
      3 frames
    5. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:280)
      1 frame
    6. hudson.plugins.nunit
      NUnitPublisher.perform
      1. hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:53)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.Build$RunnerImpl.post2(Build.java:138)
      2. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:243)
      3. hudson.model.Run.run(Run.java:595)
      4. hudson.model.Build.run(Build.java:103)
      5. hudson.model.ResourceController.execute(ResourceController.java:66)
      6. hudson.model.Executor.run(Executor.java:62)
      6 frames