Quantcast

[JIRA] (JENKINS-15703) Cobertura ClassCastException

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Affects Versions: current
Assignee: stephenconnolly
Components: cobertura
Created: 02/Nov/12 4:20 PM
Description:

Coverage has generated reports, but covertura gets a ClassCastException

When running I get this error:

Ran 7 tests in 2.875s

OK

Creating test database for alias 'default'...
Creating UserProfiles for users made with createsuperuser or syncdb.
Creating UserProfiles for users made with createsuperuser or syncdb.
Destroying test database for alias 'default'...
Terminating xvnc.
$ vncserver -kill :10
Killing Xvnc4 process ID 3891
Publishing Cobertura coverage report...
ERROR: Publisher hudson.plugins.cobertura.CoberturaPublisher aborted due to exception
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.reset(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(Unknown Source)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(Unknown Source)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(Unknown Source)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLEventReader(Unknown Source)
at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:546)
at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:529)
at hudson.FilePath.act(FilePath.java:839)
at hudson.FilePath.act(FilePath.java:821)
at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:335)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
at hudson.model.Run.run(Run.java:1463)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:239)
Recording test results
Sending e-mails to: [hidden email]

Finished: FAILURE

Environment: django-jenkins on Ubuntu 12.10
Project: Jenkins
Priority: Major Major
Reporter: Stuart Axon
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org

I have the same symptom on Debain Wheezy with jenkins installed directly (not in tomcat)

jenkins 1.447.2+dfsg-2

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 

I am getting the exact same issue here:

Environment:

Ubuntu 12.04
django-jenkins (starting to see a pattern here?? I am also using django-jenkins)

Traceback:

[Cobertura] Publishing Cobertura coverage report...
ERROR: Publisher hudson.plugins.cobertura.CoberturaPublisher aborted due to exception
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset(XMLDocumentScannerImpl.java:281)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.reset(XMLNSDocumentScannerImpl.java:89)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(XMLStreamReaderImpl.java:263)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(XMLStreamReaderImpl.java:237)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XMLStreamReaderImpl.java:187)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInputFactoryImpl.java:262)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:129)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLEventReader(XMLInputFactoryImpl.java:78)
at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:537)
at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:519)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:337)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
at hudson.model.Build$RunnerImpl.post2(Build.java:161)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
at hudson.model.Run.run(Run.java:1400)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:175)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I have also the following exception

[Cobertura] Publishing Cobertura coverage report...
ERROR: Publisher hudson.plugins.cobertura.CoberturaPublisher aborted due to exception
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset(XMLDocumentScannerImpl.java:281)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.reset(XMLNSDocumentScannerImpl.java:89)
	at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(XMLStreamReaderImpl.java:263)
	at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(XMLStreamReaderImpl.java:237)
	at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XMLStreamReaderImpl.java:187)
	at com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInputFactoryImpl.java:262)
	at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:129)
	at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLEventReader(XMLInputFactoryImpl.java:78)
	at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:537)
	at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:519)
	at hudson.FilePath.act(FilePath.java:839)
	at hudson.FilePath.act(FilePath.java:821)
	at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:337)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
	at hudson.model.Build$RunnerImpl.post2(Build.java:162)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
	at hudson.model.Run.run(Run.java:1463)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:239)
Finished: FAILURE

on a

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Same here with Ubuntu 13.04 and jenkins 1.480.3

[Cobertura] Publishing Cobertura coverage report...
ERROR: Publisher hudson.plugins.cobertura.CoberturaPublisher aborted due to exception
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset(XMLDocumentScannerImpl.java:281)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.reset(XMLNSDocumentScannerImpl.java:89)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(XMLStreamReaderImpl.java:263)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(XMLStreamReaderImpl.java:237)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XMLStreamReaderImpl.java:187)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInputFactoryImpl.java:262)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:129)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLEventReader(XMLInputFactoryImpl.java:78)
at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:537)
at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:519)
at hudson.FilePath.act(FilePath.java:852)
at hudson.FilePath.act(FilePath.java:834)
at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:337)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:718)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:693)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:640)
at hudson.model.Run.execute(Run.java:1527)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] [cobertura] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Same on Debian with 1.480.3+dfsg-1~exp1. Did anybody see this when not using the distro packages or OpenJDK? We have another jenkins running the package from jenkins.org which works without problems.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] [cobertura] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
sogabe commented on Bug JENKINS-15703

As far as I can see from stack trace, coverage report style seems to be wrong.
Is your project Java project? python(django) project ?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] [cobertura] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I am getting the same error. This is an example xml file that causes the error for me.

I have even tried removing inner tags, like having no packages, just the coverage tag, but the error stays the same.

Change By: Ignas Mikalajunas (11/Apr/13 5:10 PM)
Attachment: coverage.xml
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] [cobertura] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
sogabe commented on Bug JENKINS-15703

Download from http://bacons.ddo.jp/download/cobertura.hpi and check it. If it works, I'll release fixed one.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] [cobertura] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Yeah, I though it was not working for a couple of days, but after Jenkins restart it started to. So I think the fix is OK

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] [cobertura] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Ignas Mikalajunas edited a comment on Bug JENKINS-15703

Yeah, I though it was not working for a couple of days, but after Jenkins restart it started to. So I think the fix is OK

Thanks!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] [cobertura] (JENKINS-15703) Cobertura ClassCastException

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
sogabe resolved Bug JENKINS-15703 as Fixed

fixed in 1.9.

Change By: sogabe (29/Apr/13 10:51 AM)
Status: Open Resolved
Assignee: stephenconnolly sogabe
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Loading...