java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

Jenkins JIRA | Stuart Axon | 4 years ago
  1. 0

    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: stuart.axon@jpcreative.co.uk Finished: FAILURE

    Jenkins JIRA | 4 years ago | Stuart Axon
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  2. 0

    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: stuart.axon@jpcreative.co.uk Finished: FAILURE

    Jenkins JIRA | 4 years ago | Stuart Axon
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  3. 0

    Restore Defaults causes ClassCastException

    Eclipse Bugzilla | 8 years ago | euthanasia_waltz
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate issue java.lang.Boolean cannot be cast to java.lang.String Using JDK 1.7

    Stack Overflow | 2 years ago | Ishwar Lal
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
  6. 0

    ClassCastException in OCompositeKey [moved]

    GitHub | 4 years ago | lvca
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

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

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to java.lang.Boolean

      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset()
    2. Java RT
      XMLInputFactoryImpl.createXMLEventReader
      1. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset(Unknown Source)
      2. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.reset(Unknown Source)
      3. com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(Unknown Source)
      4. com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(Unknown Source)
      5. com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(Unknown Source)
      6. com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(Unknown Source)
      7. com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(Unknown Source)
      8. com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLEventReader(Unknown Source)
      8 frames
    3. hudson.plugins.cobertura
      CoberturaPublisher$ParseReportCallable.invoke
      1. hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:546)
      2. hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:529)
      2 frames
    4. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:839)
      2. hudson.FilePath.act(FilePath.java:821)
      2 frames
    5. hudson.plugins.cobertura
      CoberturaPublisher.perform
      1. hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:335)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
      4. hudson.model.Build$RunnerImpl.post2(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
      6. hudson.model.Run.run(Run.java:1463)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:239)
      9 frames