cobertura — ver.0.8.4 - Exceptions thrown

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

cobertura — ver.0.8.4 - Exceptions thrown

chirag.j.mehta

Hi guys,

I am getting a lot of the below exceptions thrown on cobertura 0.8.4 working with Hudson version 1.147.

I get them even if I disable corbertura reporting on configure projects.

This seems the most important line:
Caused by: org.xml.sax.SAXParseException: The element type "LINK" must be termin
ated by the matching end-tag "</LINK>".

Does anyone have any idea?

Thanks in advance,

Chirag Mehta

WARNING: Failed to load C:\Documents and Settings\MehtaC\.hudson\jobs\Services\b
uilds\2007-09-21_15-10-47\coverage593.xml
hudson.util.IOException2: Cannot parse coverage results
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
ageParser.java:85)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
ageParser.java:48)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
ageParser.java:39)
        at hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
dAction.java:146)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
r.java:123)
        at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
l.invoke(UberspectImpl.java:311)
        at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
cess.java:183)
        at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
va:73)
        at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
:82)
        at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
6)
        at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
nceExpression.java:50)
        at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
9)
        at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
Expression.java:69)
        at org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
        at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
50)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:112)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
g.java:91)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
g.java:91)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:112)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:112)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:112)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:112)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:112)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
        at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
        at org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
arOff.java:78)
        at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
sTearOff.java:93)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
        at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
        at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
        at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
        at hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
ava:79)
        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
        at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
        at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
a:244)
        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: The element type "LINK" must be termin
ated by the matching end-tag "</LINK>".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
ageParser.java:77)
        ... 110 more

This communication is confidential, may be privileged and is meant only for the intended recipient.  If you are 
not the intended recipient, please notify the sender by reply and delete this message from your system.  Any 
unauthorised dissemination, distribution or copying hereof is prohibited.
BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by 
the Financial Services Authority.
BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI 
and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK 
business.  BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.

Reply | Threaded
Open this post in threaded view
|

Re: cobertura — ver.0.8.4 - Exceptions thrown

Stephen Connolly-2
any chance you can send us a/the offending coverage.xml file

[hidden email] wrote:

>
> Hi guys,
>
> I am getting a lot of the below exceptions thrown on cobertura 0.8.4
> working with Hudson version 1.147.
>
> I get them even if I disable corbertura reporting on configure projects.
>
> This seems the most important line:
> Caused by: org.xml.sax.SAXParseException: The element type "LINK" must
> be termin
> ated by the matching end-tag "</LINK>".
>
> Does anyone have any idea?
>
> Thanks in advance,
>
> Chirag Mehta
>
> WARNING: Failed to load C:\Documents and
> Settings\MehtaC\.hudson\jobs\Services\b
> uilds\2007-09-21_15-10-47\coverage593.xml
> hudson.util.IOException2: Cannot parse coverage results
>         at
> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> ageParser.java:85)
>         at
> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> ageParser.java:48)
>         at
> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> ageParser.java:39)
>         at
> hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
> dAction.java:146)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
> r.java:123)
>         at
> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
> l.invoke(UberspectImpl.java:311)
>         at
> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
> cess.java:183)
>         at
> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
> va:73)
>         at
> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
> :82)
>         at
> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
> 6)
>         at
> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
> nceExpression.java:50)
>         at
> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
> 9)
>         at
> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
> Expression.java:69)
>         at
> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
> sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
>         at
> org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
> 50)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>         at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> a:112)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
> g.java:91)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
> g.java:91)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>         at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> a:112)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>         at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> a:112)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>         at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> a:112)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>         at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> a:112)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>         at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> a:112)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>         at
> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>         at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>         at
> org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
> arOff.java:78)
>         at
> org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
> sTearOff.java:93)
>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
>         at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>         at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
> java:30)
>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
>         at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>         at
> winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>         at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>         at
> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>         at
> hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
> ava:79)
>         at
> winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>         at
> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>         at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>         at
> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
> a:244)
>         at
> winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: org.xml.sax.SAXParseException: The element type "LINK" must
> be termin
> ated by the matching end-tag "</LINK>".
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
> ParseException(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
> r(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
> nknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l.scanEndElement(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l$FragmentContentDriver.next(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
> nknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l.scanDocument(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
> nknown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
> nknown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
> urce)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
> known Source)
>         at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
> arse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at
> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> ageParser.java:77)
>         ... 110 more
> This communication is confidential, may be privileged and is meant only for the intended recipient.  If you are
> not the intended recipient, please notify the sender by reply and delete this message from your system.  Any
> unauthorised dissemination, distribution or copying hereof is prohibited.
> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited,
> BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by
> the Financial Services Authority.
> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI
> and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas
> Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK
> business.  BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.
>
>  

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

Reply | Threaded
Open this post in threaded view
|

Re: cobertura — ver.0.8.4 - Exceptions thrown

Stephen Connolly-2
I have a feeling that you had a filter that included the HTML reports

Stephen Connolly wrote:

> any chance you can send us a/the offending coverage.xml file
>
> [hidden email] wrote:
>>
>> Hi guys,
>>
>> I am getting a lot of the below exceptions thrown on cobertura 0.8.4
>> working with Hudson version 1.147.
>>
>> I get them even if I disable corbertura reporting on configure projects.
>>
>> This seems the most important line:
>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>> must be termin
>> ated by the matching end-tag "</LINK>".
>>
>> Does anyone have any idea?
>>
>> Thanks in advance,
>>
>> Chirag Mehta
>>
>> WARNING: Failed to load C:\Documents and
>> Settings\MehtaC\.hudson\jobs\Services\b
>> uilds\2007-09-21_15-10-47\coverage593.xml
>> hudson.util.IOException2: Cannot parse coverage results
>>         at
>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>> ageParser.java:85)
>>         at
>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>> ageParser.java:48)
>>         at
>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>> ageParser.java:39)
>>         at
>> hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
>> dAction.java:146)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at
>> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
>> r.java:123)
>>         at
>> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
>> l.invoke(UberspectImpl.java:311)
>>         at
>> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
>> cess.java:183)
>>         at
>> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
>> va:73)
>>         at
>> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
>> :82)
>>         at
>> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
>> 6)
>>         at
>> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
>> nceExpression.java:50)
>>         at
>> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
>> 9)
>>         at
>> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
>> Expression.java:69)
>>         at
>> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
>> sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
>>         at
>> org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
>> 50)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>         at
>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>> a:112)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>> g.java:91)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>> g.java:91)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>         at
>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>> a:112)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>         at
>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>> a:112)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>         at
>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>> a:112)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>         at
>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>> a:112)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>         at
>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>> a:112)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>         at
>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>         at
>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>         at
>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>         at
>> org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
>> arOff.java:78)
>>         at
>> org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
>> sTearOff.java:93)
>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
>>         at
>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>>         at
>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
>> java:30)
>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
>>         at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>>         at
>> winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>>         at
>> winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>>         at
>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>>         at
>> hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
>> ava:79)
>>         at
>> winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>         at
>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>         at
>> winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>>         at
>> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
>> a:244)
>>         at
>> winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>>         at java.lang.Thread.run(Unknown Source)
>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>> must be termin
>> ated by the matching end-tag "</LINK>".
>>         at
>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
>> ParseException(Unknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
>> r(Unknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
>> Unknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
>> nknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>> l.scanEndElement(Unknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>> l$FragmentContentDriver.next(Unknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
>> nknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>> l.scanDocument(Unknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>> nknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>> nknown Source)
>>         at
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
>> urce)
>>         at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
>> known Source)
>>         at
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
>> arse(Unknown Source)
>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>         at
>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>> ageParser.java:77)
>>         ... 110 more
>> This communication is confidential, may be privileged and is meant
>> only for the intended recipient.  If you are not the intended
>> recipient, please notify the sender by reply and delete this message
>> from your system.  Any unauthorised dissemination, distribution or
>> copying hereof is prohibited.
>> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation
>> UK Limited, BNP Paribas UK Limited, BNP Paribas Commodity Futures Ltd
>> and Investment Fund Services Limited are authorised and regulated by
>> the Financial Services Authority.
>> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
>> Bank are authorised by the CECEI and AMF.  BNP Paribas London Branch,
>> BNP Paribas Securities Services London Branch and BNP Paribas Private
>> Bank London Branch are regulated by the Financial Services Authority
>> for the conduct of their UK business.  BNP Paribas Securities
>> Services London Branch is also a member of the London Stock Exchange.
>>
>>  
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

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

Reply | Threaded
Open this post in threaded view
|

Re: cobertura — ver.0.8.4 - Exceptions thrown

Kohsuke Kawaguchi
Administrator
I think it would be good if you add the file name when throwing an exception.

Also, form validation might help prevent this kind of user error.

2007/10/22, Stephen Connolly <[hidden email]>:

> I have a feeling that you had a filter that included the HTML reports
>
> Stephen Connolly wrote:
> > any chance you can send us a/the offending coverage.xml file
> >
> > [hidden email] wrote:
> >>
> >> Hi guys,
> >>
> >> I am getting a lot of the below exceptions thrown on cobertura 0.8.4
> >> working with Hudson version 1.147.
> >>
> >> I get them even if I disable corbertura reporting on configure projects.
> >>
> >> This seems the most important line:
> >> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
> >> must be termin
> >> ated by the matching end-tag "</LINK>".
> >>
> >> Does anyone have any idea?
> >>
> >> Thanks in advance,
> >>
> >> Chirag Mehta
> >>
> >> WARNING: Failed to load C:\Documents and
> >> Settings\MehtaC\.hudson\jobs\Services\b
> >> uilds\2007-09-21_15-10-47\coverage593.xml
> >> hudson.util.IOException2: Cannot parse coverage results
> >>         at
> >> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> >> ageParser.java:85)
> >>         at
> >> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> >> ageParser.java:48)
> >>         at
> >> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> >> ageParser.java:39)
> >>         at
> >> hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
> >> dAction.java:146)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> >> Source)
> >>         at java.lang.reflect.Method.invoke(Unknown Source)
> >>         at
> >> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
> >> r.java:123)
> >>         at
> >> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
> >> l.invoke(UberspectImpl.java:311)
> >>         at
> >> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
> >> cess.java:183)
> >>         at
> >> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
> >> va:73)
> >>         at
> >> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
> >> :82)
> >>         at
> >> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
> >> 6)
> >>         at
> >> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
> >> nceExpression.java:50)
> >>         at
> >> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
> >> 9)
> >>         at
> >> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
> >> Expression.java:69)
> >>         at
> >> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
> >> sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
> >>         at
> >> org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
> >> 50)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> >> a:112)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
> >> g.java:91)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
> >> g.java:91)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> >> a:112)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> >> a:112)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> >> a:112)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> >> a:112)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
> >>         at
> >> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
> >> a:112)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> >>         at
> >> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> >>         at
> >> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
> >>         at
> >> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
> >>         at
> >> org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
> >> arOff.java:78)
> >>         at
> >> org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
> >> sTearOff.java:93)
> >>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
> >>         at
> >> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
> >>         at
> >> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
> >> java:30)
> >>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
> >>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
> >>         at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
> >>         at
> >> winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
> >>         at
> >> winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
> >>         at
> >> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
> >>         at
> >> hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
> >> ava:79)
> >>         at
> >> winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
> >>         at
> >> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
> >>         at
> >> winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
> >>         at
> >> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
> >> a:244)
> >>         at
> >> winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
> >>         at java.lang.Thread.run(Unknown Source)
> >> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
> >> must be termin
> >> ated by the matching end-tag "</LINK>".
> >>         at
> >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
> >> ParseException(Unknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
> >> r(Unknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> >> Unknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
> >> nknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> >> l.scanEndElement(Unknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> >> l$FragmentContentDriver.next(Unknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
> >> nknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> >> l.scanDocument(Unknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
> >> nknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
> >> nknown Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
> >> urce)
> >>         at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
> >> known Source)
> >>         at
> >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
> >> arse(Unknown Source)
> >>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
> >>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
> >>         at
> >> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
> >> ageParser.java:77)
> >>         ... 110 more
> >> This communication is confidential, may be privileged and is meant
> >> only for the intended recipient.  If you are not the intended
> >> recipient, please notify the sender by reply and delete this message
> >> from your system.  Any unauthorised dissemination, distribution or
> >> copying hereof is prohibited.
> >> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation
> >> UK Limited, BNP Paribas UK Limited, BNP Paribas Commodity Futures Ltd
> >> and Investment Fund Services Limited are authorised and regulated by
> >> the Financial Services Authority.
> >> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
> >> Bank are authorised by the CECEI and AMF.  BNP Paribas London Branch,
> >> BNP Paribas Securities Services London Branch and BNP Paribas Private
> >> Bank London Branch are regulated by the Financial Services Authority
> >> for the conduct of their UK business.  BNP Paribas Securities
> >> Services London Branch is also a member of the London Stock Exchange.
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Kohsuke Kawaguchi

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

Reply | Threaded
Open this post in threaded view
|

Re: cobertura ― ver.0.8.4 - Exceptions thrown

Stephen Connolly-2
The giveaway for me that the ANT fileset is incorrect is as follows,

each matching file is copied into the build directory with a filename
coverage###.xml where ### is an increasing number.

The file he's getting the error for is number 593... I'm not sure that
you'd have a build process where you'd have 593 cobertura coverage
reports, so I suspect that the ant fileset included the HTML report
generated by cobertura...

Kohsuke Kawaguchi wrote:
> I think it would be good if you add the file name when throwing an exception.
>
>  
Look at the first line of the exception stacktrace...
> Also, form validation might help prevent this kind of user error.
>  

I don't have any control over what people call their cobertura xml
reports, plus the reports will not be generated until build time, so
it's not like I can pre-parse them

> 2007/10/22, Stephen Connolly <[hidden email]>:
>  
>> I have a feeling that you had a filter that included the HTML reports
>>
>> Stephen Connolly wrote:
>>    
>>> any chance you can send us a/the offending coverage.xml file
>>>
>>> [hidden email] wrote:
>>>      
>>>> Hi guys,
>>>>
>>>> I am getting a lot of the below exceptions thrown on cobertura 0.8.4
>>>> working with Hudson version 1.147.
>>>>
>>>> I get them even if I disable corbertura reporting on configure projects.
>>>>
>>>> This seems the most important line:
>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>> must be termin
>>>> ated by the matching end-tag "</LINK>".
>>>>
>>>> Does anyone have any idea?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Chirag Mehta
>>>>
>>>> WARNING: Failed to load C:\Documents and
>>>> Settings\MehtaC\.hudson\jobs\Services\b
>>>> uilds\2007-09-21_15-10-47\coverage593.xml
>>>>        
This ^^^^^ is the file that is malformed

>>>> hudson.util.IOException2: Cannot parse coverage results
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:85)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:48)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:39)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
>>>> dAction.java:146)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>> Source)
>>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>>         at
>>>> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
>>>> r.java:123)
>>>>         at
>>>> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
>>>> l.invoke(UberspectImpl.java:311)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
>>>> cess.java:183)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
>>>> va:73)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
>>>> :82)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
>>>> 6)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
>>>> nceExpression.java:50)
>>>>         at
>>>> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
>>>> 9)
>>>>         at
>>>> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
>>>> Expression.java:69)
>>>>         at
>>>> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
>>>> sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
>>>> 50)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>> g.java:91)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>> g.java:91)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
>>>> arOff.java:78)
>>>>         at
>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
>>>> sTearOff.java:93)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
>>>>         at
>>>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>>>>         at
>>>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
>>>> java:30)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
>>>>         at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
>>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>>>>         at
>>>> winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>>>>         at
>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>>>>         at
>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>>>>         at
>>>> hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
>>>> ava:79)
>>>>         at
>>>> winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>>>         at
>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>>>         at
>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>>>>         at
>>>> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
>>>> a:244)
>>>>         at
>>>> winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>>>>         at java.lang.Thread.run(Unknown Source)
>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>> must be termin
>>>> ated by the matching end-tag "</LINK>".
>>>>        
The SAXParser ^^^^^ does not know the file name, only the stream it's
reading from

>>>>         at
>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
>>>> ParseException(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
>>>> r(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
>>>> Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l.scanEndElement(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l$FragmentContentDriver.next(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l.scanDocument(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
>>>> urce)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
>>>> known Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
>>>> arse(Unknown Source)
>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:77)
>>>>         ... 110 more
>>>> This communication is confidential, may be privileged and is meant
>>>> only for the intended recipient.  If you are not the intended
>>>> recipient, please notify the sender by reply and delete this message
>>>> from your system.  Any unauthorised dissemination, distribution or
>>>> copying hereof is prohibited.
>>>> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation
>>>> UK Limited, BNP Paribas UK Limited, BNP Paribas Commodity Futures Ltd
>>>> and Investment Fund Services Limited are authorised and regulated by
>>>> the Financial Services Authority.
>>>> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
>>>> Bank are authorised by the CECEI and AMF.  BNP Paribas London Branch,
>>>> BNP Paribas Securities Services London Branch and BNP Paribas Private
>>>> Bank London Branch are regulated by the Financial Services Authority
>>>> for the conduct of their UK business.  BNP Paribas Securities
>>>> Services London Branch is also a member of the London Stock Exchange.
>>>>
>>>>
>>>>        
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>    
>
>
>  

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

Reply | Threaded
Open this post in threaded view
|

Re: cobertura ― ver.0.8.4 - Exceptions thrown

chirag.j.mehta

Thanks for the replies guys. Looking at your comments, I think I might have configured the reports incorrectly. I am getting over 1000 coverage reports. I would like to create the coverage report for the mvn site and the xml files for the Hudson plugin.

The coverage file is attached below.

Also, my Maven config is as follows:
<build>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemProperties>
                        <property>
                            <name>net.sourceforge.cobertura.datafile</name>
                            <value>target/cobertura/cobertura.ser</value>
                        </property>
                    </systemProperties>
                </configuration>
            </plugin>
</build>

<reporting>

         <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <configuration>
                    <formats>
                        <format>xml</format>
                        <format>html</format>
                    </formats>
                </configuration>
            </plugin>

Any ideas?

Thanks!!!




Chirag Mehta



Internet
[hidden email]

23/10/2007 07:03

Please respond to
[hidden email]

To
users
cc
Subject
Re: cobertura ― ver.0.8.4 - Exceptions thrown





The giveaway for me that the ANT fileset is incorrect is as follows,

each matching file is copied into the build directory with a filename
coverage###.xml where ### is an increasing number.

The file he's getting the error for is number 593... I'm not sure that
you'd have a build process where you'd have 593 cobertura coverage
reports, so I suspect that the ant fileset included the HTML report
generated by cobertura...

Kohsuke Kawaguchi wrote:
> I think it would be good if you add the file name when throwing an exception.
>
>  
Look at the first line of the exception stacktrace...
> Also, form validation might help prevent this kind of user error.
>  

I don't have any control over what people call their cobertura xml
reports, plus the reports will not be generated until build time, so
it's not like I can pre-parse them
> 2007/10/22, Stephen Connolly <[hidden email]>:
>  
>> I have a feeling that you had a filter that included the HTML reports
>>
>> Stephen Connolly wrote:
>>    
>>> any chance you can send us a/the offending coverage.xml file
>>>
>>> [hidden email] wrote:
>>>      
>>>> Hi guys,
>>>>
>>>> I am getting a lot of the below exceptions thrown on cobertura 0.8.4
>>>> working with Hudson version 1.147.
>>>>
>>>> I get them even if I disable corbertura reporting on configure projects.
>>>>
>>>> This seems the most important line:
>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>> must be termin
>>>> ated by the matching end-tag "</LINK>".
>>>>
>>>> Does anyone have any idea?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Chirag Mehta
>>>>
>>>> WARNING: Failed to load C:\Documents and
>>>> Settings\MehtaC\.hudson\jobs\Services\b
>>>> uilds\2007-09-21_15-10-47\coverage593.xml
>>>>        
This ^^^^^ is the file that is malformed
>>>> hudson.util.IOException2: Cannot parse coverage results
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:85)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:48)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:39)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
>>>> dAction.java:146)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>> Source)
>>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>>         at
>>>> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
>>>> r.java:123)
>>>>         at
>>>> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
>>>> l.invoke(UberspectImpl.java:311)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
>>>> cess.java:183)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
>>>> va:73)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
>>>> :82)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
>>>> 6)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
>>>> nceExpression.java:50)
>>>>         at
>>>> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
>>>> 9)
>>>>         at
>>>> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
>>>> Expression.java:69)
>>>>         at
>>>> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
>>>> sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
>>>> 50)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>> g.java:91)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>> g.java:91)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
>>>> arOff.java:78)
>>>>         at
>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
>>>> sTearOff.java:93)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
>>>>         at
>>>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>>>>         at
>>>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
>>>> java:30)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
>>>>         at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
>>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>>>>         at
>>>> winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>>>>         at
>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>>>>         at
>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>>>>         at
>>>> hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
>>>> ava:79)
>>>>         at
>>>> winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>>>         at
>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>>>         at
>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>>>>         at
>>>> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
>>>> a:244)
>>>>         at
>>>> winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>>>>         at java.lang.Thread.run(Unknown Source)
>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>> must be termin
>>>> ated by the matching end-tag "</LINK>".
>>>>        
The SAXParser ^^^^^ does not know the file name, only the stream it's
reading from
>>>>         at
>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
>>>> ParseException(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
>>>> r(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
>>>> Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l.scanEndElement(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l$FragmentContentDriver.next(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l.scanDocument(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
>>>> urce)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
>>>> known Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
>>>> arse(Unknown Source)
>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:77)
>>>>         ... 110 more
>>>> This communication is confidential, may be privileged and is meant
>>>> only for the intended recipient.  If you are not the intended
>>>> recipient, please notify the sender by reply and delete this message
>>>> from your system.  Any unauthorised dissemination, distribution or
>>>> copying hereof is prohibited.
>>>> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation
>>>> UK Limited, BNP Paribas UK Limited, BNP Paribas Commodity Futures Ltd
>>>> and Investment Fund Services Limited are authorised and regulated by
>>>> the Financial Services Authority.
>>>> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
>>>> Bank are authorised by the CECEI and AMF.  BNP Paribas London Branch,
>>>> BNP Paribas Securities Services London Branch and BNP Paribas Private
>>>> Bank London Branch are regulated by the Financial Services Authority
>>>> for the conduct of their UK business.  BNP Paribas Securities
>>>> Services London Branch is also a member of the London Stock Exchange.
>>>>
>>>>
>>>>        
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>    
>
>
>  

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


This message and any attachments (the "message") is 
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified. 

**********************************************************************************************

BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.

BNP Paribas Securities Services London Branch is authorised 
by CECEI & AMF and is regulated by the Financial Services 
Authority for the conduct of its investment business in 
the United Kingdom.
  
BNP Paribas Fund Services UK Limited is authorised and 
regulated by the Financial Services Authority


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

coverage.xml (50K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: cobertura ― ver.0.8.4 - Exceptions thrown

Stephen Connolly-2
The attached file is one of the HTML reports.

You probably want to set the fileset for cobertura reports to the example given in the description of the field, i.e.

**/target/site/cobertura/coverage.xml

That should match only the XML coverage reports.

You might need to force the cobertura plugin to
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.2-SNAPSHOT</version>

In order to get the XMl report to work.  I think I documented all this on the wiki.

-Stephen
 
chirag.j.mehta wrote
Thanks for the replies guys. Looking at your comments, I think I might
have configured the reports incorrectly. I am getting over 1000 coverage
reports. I would like to create the coverage report for the mvn site and
the xml files for the Hudson plugin.

The coverage file is attached below.

Also, my Maven config is as follows:
<build>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemProperties>
                        <property>
 <name>net.sourceforge.cobertura.datafile</name>
                            <value>target/cobertura/cobertura.ser</value>
                        </property>
                    </systemProperties>
                </configuration>
            </plugin>
</build>

<reporting>

         <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <configuration>
                    <formats>
                        <format>xml</format>
                        <format>html</format>
                    </formats>
                </configuration>
            </plugin>

Any ideas?

Thanks!!!




Chirag Mehta




Internet
stephenconnolly@one-dash.com

23/10/2007 07:03
Please respond to
users@hudson.dev.java.net


To
users
cc

Subject
Re: cobertura ― ver.0.8.4 - Exceptions thrown






The giveaway for me that the ANT fileset is incorrect is as follows,

each matching file is copied into the build directory with a filename
coverage###.xml where ### is an increasing number.

The file he's getting the error for is number 593... I'm not sure that
you'd have a build process where you'd have 593 cobertura coverage
reports, so I suspect that the ant fileset included the HTML report
generated by cobertura...

Kohsuke Kawaguchi wrote:
> I think it would be good if you add the file name when throwing an
exception.
>
>
Look at the first line of the exception stacktrace...
> Also, form validation might help prevent this kind of user error.
>

I don't have any control over what people call their cobertura xml
reports, plus the reports will not be generated until build time, so
it's not like I can pre-parse them
> 2007/10/22, Stephen Connolly <stephenconnolly@one-dash.com>:
>
>> I have a feeling that you had a filter that included the HTML reports
>>
>> Stephen Connolly wrote:
>>
>>> any chance you can send us a/the offending coverage.xml file
>>>
>>> chirag.j.mehta@uk.bnpparibas.com wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I am getting a lot of the below exceptions thrown on cobertura 0.8.4
>>>> working with Hudson version 1.147.
>>>>
>>>> I get them even if I disable corbertura reporting on configure
projects.
>>>>
>>>> This seems the most important line:
>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>> must be termin
>>>> ated by the matching end-tag "</LINK>".
>>>>
>>>> Does anyone have any idea?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Chirag Mehta
>>>>
>>>> WARNING: Failed to load C:\Documents and
>>>> Settings\MehtaC\.hudson\jobs\Services\b
>>>> uilds\2007-09-21_15-10-47\coverage593.xml
>>>>
This ^^^^^ is the file that is malformed
>>>> hudson.util.IOException2: Cannot parse coverage results
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:85)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:48)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:39)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
>>>> dAction.java:146)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
>>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>> Source)
>>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>>         at
>>>> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
>>>> r.java:123)
>>>>         at
>>>> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
>>>> l.invoke(UberspectImpl.java:311)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
>>>> cess.java:183)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
>>>> va:73)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
>>>> :82)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
>>>> 6)
>>>>         at
>>>> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
>>>> nceExpression.java:50)
>>>>         at
>>>> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
>>>> 9)
>>>>         at
>>>> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
>>>> Expression.java:69)
>>>>         at
>>>> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
>>>> sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
>>>> 50)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>> g.java:91)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>> g.java:91)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>         at
>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>> a:112)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>         at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>         at
>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>         at
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>         at
>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
>>>> arOff.java:78)
>>>>         at
>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
>>>> sTearOff.java:93)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
>>>>         at
>>>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>>>>         at
>>>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
>>>> java:30)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
>>>>         at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
>>>>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>>>>         at
>>>> winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>>>>         at
>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>>>>         at
>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>>>>         at
>>>> hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
>>>> ava:79)
>>>>         at
>>>> winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>>>         at
>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>>>         at
>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>>>>         at
>>>> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
>>>> a:244)
>>>>         at
>>>> winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>>>>         at java.lang.Thread.run(Unknown Source)
>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>> must be termin
>>>> ated by the matching end-tag "</LINK>".
>>>>
The SAXParser ^^^^^ does not know the file name, only the stream it's
reading from
>>>>         at
>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
>>>> ParseException(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
>>>> r(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
>>>> Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l.scanEndElement(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l$FragmentContentDriver.next(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>> l.scanDocument(Unknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>> nknown Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
>>>> urce)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
>>>> known Source)
>>>>         at
>>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
>>>> arse(Unknown Source)
>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>         at
>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>> ageParser.java:77)
>>>>         ... 110 more
>>>> This communication is confidential, may be privileged and is meant
>>>> only for the intended recipient.  If you are not the intended
>>>> recipient, please notify the sender by reply and delete this message
>>>> from your system.  Any unauthorised dissemination, distribution or
>>>> copying hereof is prohibited.
>>>> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation
>>>> UK Limited, BNP Paribas UK Limited, BNP Paribas Commodity Futures Ltd
>>>> and Investment Fund Services Limited are authorised and regulated by
>>>> the Financial Services Authority.
>>>> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
>>>> Bank are authorised by the CECEI and AMF.  BNP Paribas London Branch,
>>>> BNP Paribas Securities Services London Branch and BNP Paribas Private
>>>> Bank London Branch are regulated by the Financial Services Authority
>>>> for the conduct of their UK business.  BNP Paribas Securities
>>>> Services London Branch is also a member of the London Stock Exchange.
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
>>> For additional commands, e-mail: users-help@hudson.dev.java.net
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
>> For additional commands, e-mail: users-help@hudson.dev.java.net
>>
>>
>>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: users-help@hudson.dev.java.net




This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.

**********************************************************************************************

BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.

BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
 
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority


 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: users-help@hudson.dev.java.net
Reply | Threaded
Open this post in threaded view
|

Re: cobertura ― ver.0.8.4 - Exceptions thrown

Kohsuke Kawaguchi
Administrator
In reply to this post by Stephen Connolly-2
Stephen Connolly wrote:
>> I think it would be good if you add the file name when throwing an exception.
>>
>>  
> Look at the first line of the exception stacktrace...

My bad.

>> Also, form validation might help prevent this kind of user error.
>>  
>
> I don't have any control over what people call their cobertura xml
> reports, plus the reports will not be generated until build time, so
> it's not like I can pre-parse them

I see. How about if you issue a warning during a build if you find out
that the file set is matching too many files? I wonder if it's also
pretty safe to raise a warning if it matches files with extensions other
than .xml?



>> 2007/10/22, Stephen Connolly <[hidden email]>:
>>  
>>> I have a feeling that you had a filter that included the HTML reports
>>>
>>> Stephen Connolly wrote:
>>>    
>>>> any chance you can send us a/the offending coverage.xml file
>>>>
>>>> [hidden email] wrote:
>>>>      
>>>>> Hi guys,
>>>>>
>>>>> I am getting a lot of the below exceptions thrown on cobertura 0.8.4
>>>>> working with Hudson version 1.147.
>>>>>
>>>>> I get them even if I disable corbertura reporting on configure projects.
>>>>>
>>>>> This seems the most important line:
>>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>>> must be termin
>>>>> ated by the matching end-tag "</LINK>".
>>>>>
>>>>> Does anyone have any idea?
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> Chirag Mehta
>>>>>
>>>>> WARNING: Failed to load C:\Documents and
>>>>> Settings\MehtaC\.hudson\jobs\Services\b
>>>>> uilds\2007-09-21_15-10-47\coverage593.xml
>>>>>        
> This ^^^^^ is the file that is malformed
>>>>> hudson.util.IOException2: Cannot parse coverage results
>>>>>         at
>>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>>> ageParser.java:85)
>>>>>         at
>>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>>> ageParser.java:48)
>>>>>         at
>>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>>> ageParser.java:39)
>>>>>         at
>>>>> hudson.plugins.cobertura.CoberturaBuildAction.getResult(CoberturaBuil
>>>>> dAction.java:146)
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>>> Source)
>>>>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>         at
>>>>> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecuto
>>>>> r.java:123)
>>>>>         at
>>>>> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImp
>>>>> l.invoke(UberspectImpl.java:311)
>>>>>         at
>>>>> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAc
>>>>> cess.java:183)
>>>>>         at
>>>>> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.ja
>>>>> va:73)
>>>>>         at
>>>>> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
>>>>> :82)
>>>>>         at
>>>>> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:5
>>>>> 6)
>>>>>         at
>>>>> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTRefere
>>>>> nceExpression.java:50)
>>>>>         at
>>>>> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:7
>>>>> 9)
>>>>>         at
>>>>> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(Jexl
>>>>> Expression.java:69)
>>>>>         at
>>>>> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Expres
>>>>> sionSupportLocal.evaluate(JexlExpressionFactory.java:122)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:1
>>>>> 50)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>>> a:112)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:82)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>>> g.java:91)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTa
>>>>> g.java:91)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>>> a:112)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>>> a:112)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>>> a:112)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>>> a:112)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
>>>>> a:112)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>>>>>         at
>>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>>>>>         at
>>>>> org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>>>>>         at
>>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>>>>>         at
>>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTe
>>>>> arOff.java:78)
>>>>>         at
>>>>> org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClas
>>>>> sTearOff.java:93)
>>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:274)
>>>>>         at
>>>>> org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240)
>>>>>         at
>>>>> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.
>>>>> java:30)
>>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
>>>>>         at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
>>>>>         at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
>>>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>>>>>         at
>>>>> winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>>>>>         at
>>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>>>>>         at
>>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>>>>>         at
>>>>> hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.j
>>>>> ava:79)
>>>>>         at
>>>>> winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>>>>         at
>>>>> winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>>>>         at
>>>>> winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>>>>>         at
>>>>> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.jav
>>>>> a:244)
>>>>>         at
>>>>> winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>>>>>         at java.lang.Thread.run(Unknown Source)
>>>>> Caused by: org.xml.sax.SAXParseException: The element type "LINK"
>>>>> must be termin
>>>>> ated by the matching end-tag "</LINK>".
>>>>>        
> The SAXParser ^^^^^ does not know the file name, only the stream it's
> reading from
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
>>>>> ParseException(Unknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
>>>>> r(Unknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
>>>>> Unknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
>>>>> nknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>>> l.scanEndElement(Unknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>>> l$FragmentContentDriver.next(Unknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
>>>>> nknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>>>>> l.scanDocument(Unknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>>> nknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
>>>>> nknown Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
>>>>> urce)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
>>>>> known Source)
>>>>>         at
>>>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
>>>>> arse(Unknown Source)
>>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>>>>         at
>>>>> hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCover
>>>>> ageParser.java:77)
>>>>>         ... 110 more
>>>>> This communication is confidential, may be privileged and is meant
>>>>> only for the intended recipient.  If you are not the intended
>>>>> recipient, please notify the sender by reply and delete this message
>>>>> from your system.  Any unauthorised dissemination, distribution or
>>>>> copying hereof is prohibited.
>>>>> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation
>>>>> UK Limited, BNP Paribas UK Limited, BNP Paribas Commodity Futures Ltd
>>>>> and Investment Fund Services Limited are authorised and regulated by
>>>>> the Financial Services Authority.
>>>>> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
>>>>> Bank are authorised by the CECEI and AMF.  BNP Paribas London Branch,
>>>>> BNP Paribas Securities Services London Branch and BNP Paribas Private
>>>>> Bank London Branch are regulated by the Financial Services Authority
>>>>> for the conduct of their UK business.  BNP Paribas Securities
>>>>> Services London Branch is also a member of the London Stock Exchange.
>>>>>
>>>>>
>>>>>        
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>>      
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>>    
>>
>>
>>  
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment