Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
5.4
-
Unknown
-
N/A
-
N/A
-
Description
Parsing following content throws exception.
<property name="content" class="Page" package="com.atlassian.confluence.pages"><id name="id">20217883</id> </property> <property name="bodyType">2</property> </object> <object class="BodyContent" package="com.atlassian.confluence.core"> <id name="id">20250648</id> <property name="body"><![CDATA[<ul><li>Base on DEX Image v1.1</li><li>User-Data script for self provisioning</li></ul><ac:macro ac:name="code"><ac:parameter ac:name="language"> bash</ac:parameter><ac:plain-text-body><![CDATA[#!/bin/sh # change the following variables for this instance EC2_NAME="DEX OpenIDM" EC2_VOLUME_ID=vol-08c34851 EC2_USER=ec2-user # ------ # -- instance region export AWS_DEFAULT_REGION=us-east-1 # -- instance id INSTANCE_ID=$(curl -s -X GET http://169.254.169.254/latest/meta-data/instance-id) # -- add boot time to instance tags BOOT_TIME=$(date +%F-%T) BOOT_TIME_TAG={\"key\":\"BootTime\",\"value\":\"$BOOT_TIME\"} aws ec2 create-tags --resources $INSTANCE_ID --tags $START_TIME_TAG 2>&1 > /tmp/boot_script.3 # -- export environment variables used by different scripts echo "export AWS_DEFAULT_REGION=us-east-1" > /etc/profile.d/dexit.sh echo "export INSTANCE_ID=$INSTANCE_ID" >> /etc/profile.d/dexit.sh # -- assign Name tag to the instance aws ec2 create-tags --resources $INSTANCE_ID --tags "{\"key\":\"Name\",\"value\":\"$EC2_NAME\"}" 2>&1 > /tmp/boot_script.2 # -- attach volume aws ec2 attach-volume --instance-id $INSTANCE_ID --device xvdf --volume-id $EC2_VOLUME_ID 2>&1 > /tmp/boot_script.3 # -- setup mountpoint mkdir /opt/forgerock mount /dev/xvdf /opt/forgerock/ /bin/su -l -c "cd /opt/forgerock/openidm;rm -Rf felix-cache;./startup.sh&" -s /bin/sh $EC2_USER]] ></ac:plain-text-body></ac:macro>]]></property>
---- XML document structures must start and end within the same entity. class org.xwiki.wikistream.WikiStreamException: Failed parser content [<ul><li>Base on DEX Image v1.1</li><li>User-Data script for self provisioning</li></ul><ac:macro ac:name="code"><ac:parameter ac:name="language">bash</ac:parame ....
Progress Starting job of type [wikistream.converter] with identifier [wikistream/converter/confluence+xml/xwiki+xar/1.1] Unparseable date: "2012-08-31 17:23:31.477" class java.text.ParseException: Unparseable date: "2012-08-31 17:23:31.477" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:292) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:243) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2012-08-31 17:23:31.477" class java.text.ParseException: Unparseable date: "2012-08-31 17:23:31.477" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:354) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:332) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:313) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:243) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2012-09-03 15:32:39.726" class java.text.ParseException: Unparseable date: "2012-09-03 15:32:39.726" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:292) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2012-09-03 15:32:39.726" class java.text.ParseException: Unparseable date: "2012-09-03 15:32:39.726" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:354) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:332) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:313) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2013-04-22 10:56:22.566" class java.text.ParseException: Unparseable date: "2013-04-22 10:56:22.566" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:292) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2013-04-22 10:56:22.566" class java.text.ParseException: Unparseable date: "2013-04-22 10:56:22.566" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:354) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:332) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:308) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2013-05-07 11:23:51.047" class java.text.ParseException: Unparseable date: "2013-05-07 11:23:51.047" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:354) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:332) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:313) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2013-04-22 10:43:05.894" class java.text.ParseException: Unparseable date: "2013-04-22 10:43:05.894" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:292) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Unparseable date: "2013-04-22 22:10:34.198" class java.text.ParseException: Unparseable date: "2013-04-22 22:10:34.198" at java.text.DateFormat.parse(DateFormat.java:357) at org.xwiki.wikistream.confluence.xml.internal.ConfluenceXMLPackage.getDate(ConfluenceXMLPackage.java:224) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:354) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:332) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:308) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) XML document structures must start and end within the same entity. class org.xwiki.wikistream.WikiStreamException: Failed parser content [<ul><li>Base on DEX Image v1.1</li><li>User-Data script for self provisioning</li></ul><ac:macro ac:name="code"><ac:parameter ac:name="language">bash</ac:parameter><ac:plain-text-body><![CDATA[#!/bin/sh # change the following variables for this instance EC2_NAME="DEX OpenIDM" EC2_VOLUME_ID=vol-08c34851 EC2_USER=ec2-user SCRIPT_LOG=/tmp/user-data.log # ------ echo > $SCRIPT_LOG # -- instance region export AWS_DEFAULT_REGION=us-east-1 # -- instance id INSTANCE_ID=$(curl -s -X GET http://169.254.169.254/latest/meta-data/instance-id) # -- assign Name tag to the instance echo "# -- create-tags" >> $SCRIPT_LOG aws ec2 create-tags --resources $INSTANCE_ID --tags "{\"key\":\"Name\",\"value\":\"$EC2_NAME\"}" 2>&1 >> $SCRIPT_LOG # -- add boot time to instance tags BOOT_TIME=$(date +%F-%T) BOOT_TIME_TAG={\"key\":\"BootTime\",\"value\":\"$BOOT_TIME\"} echo "# -- create-tags" >> $SCRIPT_LOG aws ec2 create-tags --resources $INSTANCE_ID --tags $BOOT_TIME_TAG 2>&1 >> $SCRIPT_LOG # -- export environment variables used by different scripts echo "export AWS_DEFAULT_REGION=us-east-1" > /etc/profile.d/dexit.sh echo "export INSTANCE_ID=$INSTANCE_ID" >> /etc/profile.d/dexit.sh echo "export EC2_VOLUME_ID=$EC2_VOLUME_ID" >> /etc/profile.d/dexit.sh # -- attach volume echo -e "import sys,json\nrsp=''\nfor line in sys.stdin:rsp+= line\njsonObj=json.loads(rsp)\nprint jsonObj['Volumes'][0]['State']" > parse_json.py VOLUME_STATE=$(aws ec2 describe-volumes --volume-id $EC2_VOLUME_ID | python parse_json.py) echo "volume state: $VOLUME_STATE" >> $SCRIPT_LOG if [ "$VOLUME_STATE" != "available" ]; then echo "# -- detach-volume" >> $SCRIPT_LOG aws ec2 detach-volume --force --volume-id vol-08c34851 2>&1 >> $SCRIPT_LOG count=0 until [ "$VOLUME_STATE" == "available" -o $count -gt "20" ]; do sleep 1 count=$(expr $count + 1) VOLUME_STATE=$(aws ec2 describe-volumes --volume-id $EC2_VOLUME_ID | python parse_json.py) echo "volume state: $VOLUME_STATE" >> $SCRIPT_LOG done fi echo "# -- attach-volume" >> $SCRIPT_LOG aws ec2 attach-volume --instance-id $INSTANCE_ID --device xvdf --volume-id $EC2_VOLUME_ID 2>&1 >> $SCRIPT_LOG count=0 until [ "$VOLUME_STATE" == "in-use" -o $count -gt "20" ]; do sleep 1 count=$(expr $count + 1) VOLUME_STATE=$(aws ec2 describe-volumes --volume-id $EC2_VOLUME_ID | python parse_json.py) echo "volume state: $VOLUME_STATE" >> $SCRIPT_LOG done # -- setup mountpoint mkdir -p /opt/forgerock 2>&1 >> $SCRIPT_LOG mount /dev/xvdf /opt/forgerock/ 2>&1 >> $SCRIPT_LOG /bin/su -l -c "cd /opt/forgerock/openidm;rm -Rf felix-cache;./startup.sh&" -s /bin/sh $EC2_USER 2>&1 >> $SCRIPT_LOG]] ></ac:plain-text-body></ac:macro>] at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:388) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPageRevision(ConfluenceInputWikiStream.java:332) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.readPage(ConfluenceInputWikiStream.java:308) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:248) at org.xwiki.wikistream.confluence.xml.internal.input.ConfluenceInputWikiStream.read(ConfluenceInputWikiStream.java:56) at org.xwiki.wikistream.internal.input.AbstractBeanInputWikiStream.read(AbstractBeanInputWikiStream.java:78) at org.xwiki.wikistream.internal.job.WikiStreamConverterJob.runInternal(WikiStreamConverterJob.java:82) at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154) at org.xwiki.wikistream.script.internal.ScriptWikiStreamConverterJob.run(ScriptWikiStreamConverterJob.java:75) at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113) at java.lang.Thread.run(Thread.java:744) Caused by: class org.xwiki.rendering.parser.ParseException: Failed to parse input source
Attachments
Issue Links
- duplicates
-
XWIKI-9803 ConfluenceXHTMLParser does not repair CDATA containing square brackets
- Closed