[ 
https://issues.apache.org/jira/browse/AXIOM-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15067658#comment-15067658
 ] 

perry he commented on AXIOM-477:
--------------------------------

There is another issue found in Abdera 1.1.3, AtomDate.parse(String) throws up 
exception "java.lang.IllegalArgumentException: Invalid Date Format", but the 
same case worked in Abdera 0.4.0, could you please take a look at it? thanks 
again!
- same code to call in our case:
Timestamp ts = new Timestamp(AtomDate.parse(value).getTime());
- when to run Abdera 0.4.0, set value="Tue Dec 22 14:33:17 CST 2015" and ts 
will be set as "2015-01-01 08:00:00.0", with no issue;
- when to run Abdera 1.1.3, set value="Tue Dec 22 12:13:33 IST 2015" and 
AtomDate will throw "java.lang.IllegalArgumentException: Invalid Date Format";
- there is some code change in class org.apache.abdera.model.AtomDate.java from 
abdera-core-0.4.0-incubating.jar to abdera-core-1.1.3.jar.

If better to track this issue in another ticket, I will create a new one.

> fom-impl-1.2.16.jar causes regression with respect to Abdera 0.4.0 and 1.1.3
> ----------------------------------------------------------------------------
>
>                 Key: AXIOM-477
>                 URL: https://issues.apache.org/jira/browse/AXIOM-477
>             Project: Axiom
>          Issue Type: Bug
>          Components: FOM
>    Affects Versions: 1.2.16
>            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: 
> {noformat}
> <content xmlns="http://www.w3.org/2005/Atom"; type="html">&lt;?xml 
> version="1.0" 
> encoding="UTF-8"?&gt;&lt;div&gt;testSaveAppDataDraftToMedia1&lt;/div&gt;</content>
> {noformat}
>  b) updatedContent in Line4:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?><div>testSaveAppDataDraftToMedia1</div>
> {noformat}
> - 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to