I though of that (add the problem long time ago with a pom file) but that's not the issue, I've tried several things (-Dproject.reporting.outputEncoding=UTF-8 and stuff like that). Anyway, I've looked more closely at the file which contains tons of test results and some of them are a big mess of misencoded data. I'll try to look further why would maven just stop its building process later on but I have to solve another issue first.

Thank you very much for your help,
Alexis.

Le 27/04/2012 17:52, Matt Walsh a écrit :
D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
reports\result.xml
Invalid byte 2 of 3-byte UTF-8 sequence.
This would lead me to believe there's a BOM (Byte-Order-Mark) error in the 
result.xml file.

Does the surefire plugin generate BOMs??


-----Original Message-----
From: Alexis Morelle [mailto:[email protected]]
Sent: Friday, April 27, 2012 9:42 AM
To: Maven Users List
Subject: Re: Maven failed with error while reading test results

The thing is that if I add -fn for example (never fail), the build ends
successfully.
Anyway I just saw something even more strange with the following log.

It says: [INFO] Error for project: CMS - XML Engine Implementation
(during install)
But then: [INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test

see this log with the -fn option.

[ERROR] There are test failures.

Please refer to
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-reports
for the individual test results.
[JENKINS] Recording test results
[JENKINS] Archiving
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
Deploy_All_Inc15mn\xmlengine\cms-xmlengine\pom.xml
to
/opt/jenkins/projects/jobs/OT_1.2-OAMP-CMS-
Deploy_All_Inc15mn/modules/com.alcatel_lucent.ice.oamp.cms.xmlengine$cm
s-xmlengine/builds/2012-04-27_17-14-
12/archive/com.alcatel_lucent.ice.oamp.cms.xmlengine/cms-
xmlengine/2.1.020.000-SNAPSHOT/cms-xmlengine-2.1.020.000-SNAPSHOT.pom
[INFO] Error for project: CMS - XML Engine Implementation (during
install)
[INFO]
-----------------------------------------------------------------------
-
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
read
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
reports\result.xml
Invalid byte 2 of 3-byte UTF-8 sequence.
[INFO]
-----------------------------------------------------------------------
-
[INFO] For more information, run Maven with the -e switch
[INFO]
-----------------------------------------------------------------------
-
[INFO]  + Ignoring failures
[INFO]
-----------------------------------------------------------------------
-
[INFO] BUILD SUCCESSFUL
[INFO]
-----------------------------------------------------------------------
-
[INFO] Total time: 30 seconds
[INFO] Finished at: Fri Apr 27 17:14:44 CEST 2012
[INFO] Final Memory: 72M/371M
[INFO]
-----------------------------------------------------------------------
-
Waiting for Jenkins to finish collecting data
Finished: SUCCESS


thx very much
Alexis.

Le 27/04/2012 17:26, Matt Walsh a écrit :
Doesn't look like maven failed. Your tests failed, which caused your
build to fail, then Jenkins failed looking for results.

Maybe you've configured your Jenkins build to do it's post processing
even on failure?

Matt

-----Original Message-----
From: Alexis Morelle [mailto:[email protected]]
Sent: Friday, April 27, 2012 9:22 AM
To: [email protected]
Subject: Maven failed with error while reading test results

Hi,

I have this weird error that keep coming up after a simple "mvn
clean
install".
Maven goes out on this error while reading test results and never
goes
to the package, install etc goal...

Would you guys know what this could come from?

Thank you very much for your help,
Alexis.


Tests run: 311, Failures: 4, Errors: 0, Skipped: 0

[ERROR] There are test failures.

Please refer to
D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
reports for
the individual test results.
[JENKINS] Recording test results
[JENKINS] Archiving
D:\Jenkins-slave\workspace\<jobname>\<modulename>\pom.xml to

/opt/jenkins/projects/jobs/<jobname>/modules/<gpId>$<artId>/builds/2012
-04-27_16-16-40/archive/<gpId>/<artId>/2.1.020.000-SNAPSHOT/cms-
xmlengine-2.1.020.000-SNAPSHOT.pom
[INFO]

---------------------------------------------------------------------
--
-
[ERROR] BUILD ERROR
[INFO]

---------------------------------------------------------------------
--
-
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
read
D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
reports\result.xml
Invalid byte 2 of 3-byte UTF-8 sequence.
[INFO]

---------------------------------------------------------------------
--
-
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal
error
in the plugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Failed to
read
D:\Jenkins-slave\workspace\<jobname>\<modulename>\target\surefire-
reports\result.xml
       at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
tLifecycleExecutor.java:698)
       at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
cycle(DefaultLifecycleExecutor.java:556)
       at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
LifecycleExecutor.java:535)
       at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
eFailures(DefaultLifecycleExecutor.java:387)
       at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:348)
       at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
cycleExecutor.java:180)
       at

org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(Lifecyc
leExecutorInterceptor.java:65)
       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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39)
       at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at hudson.maven.agent.Main.launch(Main.java:185)
       at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
       at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
       at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
       at hudson.remoting.UserRequest.perform(UserRequest.java:118)
       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
       at hudson.remoting.Request$2.run(Request.java:287)
       at

hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutor
Service.java:72)
       at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
       at

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut
or.java:886)
       at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
ava:908)
       at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.maven.plugin.PluginManagerException: Failed to
read
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
reports\result.xml
       at

hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
terceptor.java:196)
       at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
tLifecycleExecutor.java:694)
       ... 28 more
Caused by: hudson.util.IOException2: Failed to read
D:\Jenkins-slave\workspace\OT_1.2-OAMP-CMS-
Deploy_All_Inc15mn\xmlengine\cms-xmlengine\target\surefire-
reports\result.xml
       at hudson.tasks.junit.TestResult.parse(TestResult.java:244)
       at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
       at

hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.ja
va:141)
       at
hudson.maven.Maven2Builder.postExecute(Maven2Builder.java:155)
       at
hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:310)
       at

hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPo
st(PluginManagerInterceptor.java:170)
       at

hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerIn
terceptor.java:183)
       ... 29 more
Caused by: org.dom4j.DocumentException: Invalid byte 2 of 3-byte
UTF-8
sequence. Nested exception: Invalid byte 2 of 3-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.parse(SuiteResult.java:112)
       at hudson.tasks.junit.TestResult.parse(TestResult.java:227)
       ... 35 more
Caused by:

com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcepti
on:
Invalid byte 2 of 3-byte UTF-8 sequence.
       at

com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8R
eader.java:684)
       at

com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.j
ava:405)
       at

com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntity
Scanner.java:1742)
       at

com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEn
tityScanner.java:1242)
       at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
       at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2986)
       at

com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XML
DocumentScannerImpl.java:648)
       at

com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(X
MLNSDocumentScannerImpl.java:140)
       at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
scanDocument(XMLDocumentFragmentScannerImpl.java:511)
       at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
11Configuration.java:808)
       at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
11Configuration.java:737)
       at

com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja
va:119)
       at

com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst
ractSAXParser.java:1205)
       at

com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.par
se(SAXParserImpl.java:522)
       at org.dom4j.io.SAXReader.read(SAXReader.java:465)
       ... 38 more
[INFO]

---------------------------------------------------------------------
--
-
[INFO] Total time: 7 minutes 27 seconds
[INFO] Finished at: Fri Apr 27 16:24:10 CEST 2012
[INFO] Final Memory: 202M/371M
[INFO]

---------------------------------------------------------------------
--
-
Waiting for Jenkins to finish collecting data
Maven failed with error.

--------------------------------------------------------------------
-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

______________________________________________________________________
This message, including any attachments, is confidential and contains
information intended only for the person(s) named above. Any other
distribution, copying or disclosure is strictly prohibited. If you are
not the intended recipient or have received this message in error,
please notify us immediately by reply email and permanently delete the
original transmission from all of your systems and hard drives,
including any attachments, without making a copy.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

______________________________________________________________________
This message, including any attachments, is confidential and contains 
information intended only for the person(s) named above. Any other 
distribution, copying or disclosure is strictly prohibited. If you are not the 
intended recipient or have received this message in error, please notify us 
immediately by reply email and permanently delete the original transmission 
from all of your systems and hard drives, including any attachments, without 
making a copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to