com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1)

Jenkins JIRA | Damien Nozay | 2 years ago
  1. 0

    [JENKINS-23976] CopyArtifact plugin does not like incorrect build selector. - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1)
  2. 0

    Steps to repro: - add manual promotion process to a dummy job - add copy artifacts from another project to promotion process ** project name = $PROMOTED_JOB_FULL_NAME ** which build = "specified by a build parameter" ** parameter name = $PROMOTED_NUMBER {code} FATAL: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:916) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:907) at hudson.plugins.copyartifact.BuildSelectorParameter.getSelectorFromXml(BuildSelectorParameter.java:80) at hudson.plugins.copyartifact.ParameterizedBuildSelector.getBuild(ParameterizedBuildSelector.java:52) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:263) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:281) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:223) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) at hudson.model.Run.execute(Run.java:1665) at hudson.model.Run.run(Run.java:1612) at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:173) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109) ... 19 more {code} This is a user error, I should have picked "specific build" in order to use $PROMOTED_NUMBER. Validation during the job configuration would have helped in this case make things more fool-proof.

    Jenkins JIRA | 2 years ago | Damien Nozay
    com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1)
  3. 0

    Steps to repro: - add manual promotion process to a dummy job - add copy artifacts from another project to promotion process ** project name = $PROMOTED_JOB_FULL_NAME ** which build = "specified by a build parameter" ** parameter name = $PROMOTED_NUMBER {code} FATAL: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:916) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:907) at hudson.plugins.copyartifact.BuildSelectorParameter.getSelectorFromXml(BuildSelectorParameter.java:80) at hudson.plugins.copyartifact.ParameterizedBuildSelector.getBuild(ParameterizedBuildSelector.java:52) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:263) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:281) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:223) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) at hudson.model.Run.execute(Run.java:1665) at hudson.model.Run.run(Run.java:1612) at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:173) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109) ... 19 more {code} This is a user error, I should have picked "specific build" in order to use $PROMOTED_NUMBER. Validation during the job configuration would have helped in this case make things more fool-proof.

    Jenkins JIRA | 2 years ago | Damien Nozay
    com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The tested job is minimalist: - it defines a Run parameter (named "IFW") to select a build from the job "IFW" - it defines a "copy artifacts from another project" specified by a "build parameter", the parameter name beeing "IFW", and selectif the followinfg artifacts "**/*zip" When manually launching the job, selecting the (succesful) last build of the IFW job, I got the following error: FATAL: : only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1) com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:154) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:147) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:126) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:111) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:856) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:848) at hudson.plugins.copyartifact.BuildSelectorParameter.getSelectorFromXml(BuildSelectorParameter.java:81) at hudson.plugins.copyartifact.ParameterizedBuildSelector.getBuild(ParameterizedBuildSelector.java:52) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:164) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1409) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63) ... 20 more

    Jenkins JIRA | 5 years ago | christopheM
    com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1)
  6. 0

    The tested job is minimalist: - it defines a Run parameter (named "IFW") to select a build from the job "IFW" - it defines a "copy artifacts from another project" specified by a "build parameter", the parameter name beeing "IFW", and selectif the followinfg artifacts "**/*zip" When manually launching the job, selecting the (succesful) last build of the IFW job, I got the following error: FATAL: : only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1) com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:154) at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:147) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:126) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:111) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48) at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:856) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:848) at hudson.plugins.copyartifact.BuildSelectorParameter.getSelectorFromXml(BuildSelectorParameter.java:81) at hudson.plugins.copyartifact.ParameterizedBuildSelector.getBuild(ParameterizedBuildSelector.java:52) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:164) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1409) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63) ... 20 more

    Jenkins JIRA | 5 years ago | christopheM
    com.thoughtworks.xstream.io.StreamException: : only whitespace content allowed before start tag and not h (position: START_DOCUMENT seen h... @1:1)

    3 unregistered visitors
    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. org.xmlpull.v1.XmlPullParserException

      only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:1)

      at org.xmlpull.mxp1.MXParser.parseProlog()
    2. MXP1: Xml Pull Parser 3rd Edition (XPP3)
      MXParser.next
      1. org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
      2. org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
      3. org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
      3 frames
    3. XStream Core
      XStream.fromXML
      1. com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
      2. com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
      3. com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
      4. com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
      5. com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
      6. com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
      7. com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
      8. com.thoughtworks.xstream.XStream.fromXML(XStream.java:916)
      9. com.thoughtworks.xstream.XStream.fromXML(XStream.java:907)
      9 frames
    4. hudson.plugins.copyartifact
      CopyArtifact.perform
      1. hudson.plugins.copyartifact.BuildSelectorParameter.getSelectorFromXml(BuildSelectorParameter.java:80)
      2. hudson.plugins.copyartifact.ParameterizedBuildSelector.getBuild(ParameterizedBuildSelector.java:52)
      3. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:263)
      3 frames
    5. hudson.plugins.promoted_builds
      Promotion$RunnerImpl.doRun
      1. hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:281)
      2. hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:223)
      2 frames
    6. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
      2. hudson.model.Run.execute(Run.java:1665)
      3. hudson.model.Run.run(Run.java:1612)
      3 frames
    7. hudson.plugins.promoted_builds
      Promotion.run
      1. hudson.plugins.promoted_builds.Promotion.run(Promotion.java:173)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:246)
      2 frames