[
https://issues.apache.org/jira/browse/ABDERA-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
perry he updated ABDERA-434:
----------------------------
Description:
We are going to replace Abdera 0.4.0 with 1.1.3, there is an exception thrown
out in code below, is this a known issue, a bug or something wrong to invoke
the method? The same code works well with Abdera 0.4.0 and axiom-api-1.2.5.jar.
- code to call:
Line 1: Content contentElement = atomEntry.getContentElement();
Line 2: if (contentElement != null && contentElement.getSrc() == null)
Line 3: entryText = contentElement.getValue();
Line 4: String updatedContent = MentionsUtil.checkMentions(entryText, id);
Line 5: contentElement.setValue(updatedContent);
- exception:
java.util.ConcurrentModificationException: The current node has been removed
using a method other than Iterator#remove()
at
org.apache.axiom.om.impl.traverse.OMAbstractIterator.hasNext(OMAbstractIterator.java:67)
at
org.apache.abdera.parser.stax.FOMElement._removeAllChildren(FOMElement.java:559)
at
org.apache.abdera.parser.stax.FOMContent.setValue(FOMContent.java:255)
at ...
- runtime values when to throw exception:
a) contentElement in Line1:
<content xmlns="http://www.w3.org/2005/Atom" type="html"><?xml version="1.0"
encoding="UTF-8"?><div>testSaveAppDataDraftToMedia1</div></content>
b) updatedContent in Line4:
<?xml version="1.0" encoding="UTF-8"?><div>testSaveAppDataDraftToMedia1</div>
- our code depends on other jars involved:
abdera-parser-1.1.3.jar
axiom-api-1.2.14.jar
downloaded from https://abdera.apache.org/
was:
We are going to replace Abdera 0.4.0 with 1.1.3, there is an exception thrown
out in code below, is this a known issue, a bug or something wrong to invoke
the method?
- code to call:
Line 1: Content contentElement = atomEntry.getContentElement();
Line 2: if (contentElement != null && contentElement.getSrc() == null)
Line 3: entryText = contentElement.getValue();
Line 4: String updatedContent = MentionsUtil.checkMentions(entryText, id);
Line 5: contentElement.setValue(updatedContent);
- exception:
java.util.ConcurrentModificationException: The current node has been removed
using a method other than Iterator#remove()
at
org.apache.axiom.om.impl.traverse.OMAbstractIterator.hasNext(OMAbstractIterator.java:67)
at
org.apache.abdera.parser.stax.FOMElement._removeAllChildren(FOMElement.java:559)
at
org.apache.abdera.parser.stax.FOMContent.setValue(FOMContent.java:255)
at ...
- runtime values when to throw exception:
* contentElement in Line1:
<content xmlns="http://www.w3.org/2005/Atom" type="html"><?xml version="1.0"
encoding="UTF-8"?><div>testSaveAppDataDraftToMedia1</div></content>
* updatedContent in Line4:
<?xml version="1.0" encoding="UTF-8"?><div>testSaveAppDataDraftToMedia1</div>
- our code depends on other jars involved:
abdera-parser-1.1.3.jar
axiom-api-1.2.14.jar
downloaded from https://abdera.apache.org/
> java.util.ConcurrentModificationException when to call
> org.apache.abdera.parser.stax.FOMContent.setValue()
> ----------------------------------------------------------------------------------------------------------
>
> Key: ABDERA-434
> URL: https://issues.apache.org/jira/browse/ABDERA-434
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 1.1.3
> Reporter: perry he
>
> We are going to replace Abdera 0.4.0 with 1.1.3, there is an exception thrown
> out in code below, is this a known issue, a bug or something wrong to invoke
> the method? The same code works well with Abdera 0.4.0 and
> axiom-api-1.2.5.jar.
> - code to call:
> Line 1: Content contentElement = atomEntry.getContentElement();
> Line 2: if (contentElement != null && contentElement.getSrc() == null)
> Line 3: entryText = contentElement.getValue();
> Line 4: String updatedContent = MentionsUtil.checkMentions(entryText, id);
> Line 5: contentElement.setValue(updatedContent);
> - exception:
> java.util.ConcurrentModificationException: The current node has been removed
> using a method other than Iterator#remove()
> at
> org.apache.axiom.om.impl.traverse.OMAbstractIterator.hasNext(OMAbstractIterator.java:67)
> at
> org.apache.abdera.parser.stax.FOMElement._removeAllChildren(FOMElement.java:559)
> at
> org.apache.abdera.parser.stax.FOMContent.setValue(FOMContent.java:255)
> at ...
> - runtime values when to throw exception:
> a) contentElement in Line1:
> <content xmlns="http://www.w3.org/2005/Atom" type="html"><?xml
> version="1.0"
> encoding="UTF-8"?><div>testSaveAppDataDraftToMedia1</div></content>
> b) updatedContent in Line4:
> <?xml version="1.0" encoding="UTF-8"?><div>testSaveAppDataDraftToMedia1</div>
> - our code depends on other jars involved:
> abdera-parser-1.1.3.jar
> axiom-api-1.2.14.jar
> downloaded from https://abdera.apache.org/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)