Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-1123

XMLStreamException on DataManagementToolTest with jdk6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.1-alpha-1
    • None
    • Environmental
    • None

    Description

      Tests on continuum-data-management are failing on jdk6/windows. Work fine with jdk 1.5

      -------------------------------------------------------------------------------
      Test set: org.apache.maven.continuum.management.DataManagementToolTest
      -------------------------------------------------------------------------------
      Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 3.219 sec <<< FAILURE!
      testBackupBuilds(org.apache.maven.continuum.management.DataManagementToolTest) Time elapsed: 1.875 sec <<< ERROR!
      org.apache.maven.continuum.ContinuumRuntimeException: Modello failure: unable to write data to StAX writer
      at org.apache.maven.continuum.management.JdoDataManagementTool.backupBuildDatabase(JdoDataManagementTool.java:92)
      at org.apache.maven.continuum.management.DataManagementToolTest.testBackupBuilds(DataManagementToolTest.java:83)
      Caused by: javax.xml.stream.XMLStreamException: Underlying stream encoding 'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' do not match.
      at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeStartDocument(XMLStreamWriterImpl.java:1182)
      at javanet.staxutils.IndentingXMLStreamWriter.writeStartDocument(IndentingXMLStreamWriter.java:142)
      at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxWriter.write(ContinuumStaxWriter.java:87)
      at org.apache.maven.continuum.management.JdoDataManagementTool.backupBuildDatabase(JdoDataManagementTool.java:88)
      ... 27 more

      testRestoreBuilds(org.apache.maven.continuum.management.DataManagementToolTest) Time elapsed: 0.765 sec <<< ERROR!
      org.apache.maven.continuum.ContinuumRuntimeException: Modello failure: unable to write data to StAX writer
      at org.apache.maven.continuum.management.JdoDataManagementTool.backupBuildDatabase(JdoDataManagementTool.java:92)
      at org.apache.maven.continuum.management.DataManagementToolTest.testRestoreBuilds(DataManagementToolTest.java:124)
      Caused by: javax.xml.stream.XMLStreamException: Underlying stream encoding 'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' do not match.
      at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeStartDocument(XMLStreamWriterImpl.java:1182)
      at javanet.staxutils.IndentingXMLStreamWriter.writeStartDocument(IndentingXMLStreamWriter.java:142)
      at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxWriter.write(ContinuumStaxWriter.java:87)
      at org.apache.maven.continuum.management.JdoDataManagementTool.backupBuildDatabase(JdoDataManagementTool.java:88)
      ... 27 more

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              fgiust Fabrizio Giustina
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: