[
https://issues.apache.org/jira/browse/ABDERA-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James M Snell closed ABDERA-40.
-------------------------------
> entry.getSource().getId() cast exception
> -----------------------------------------
>
> Key: ABDERA-40
> URL: https://issues.apache.org/jira/browse/ABDERA-40
> Project: Abdera
> Issue Type: Bug
> Environment: windows xp, jdk 6
> Reporter: NIcolas Maisonneuve
>
> Code:
>
> List<Entry> entries = feed.getEntries();
> // send to consumers
> for (Entry entry : entries) {
> entry.setSource(feed);
>
> try{
> System.out.println("source:
> "+entry.getSource().getIdElement());
> }catch(Exception e){
> e.printStackTrace();
> }
> }
> }
> Error:
> java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl
> cannot be cast to org.apache.abdera.model.IRIElement
> at
> org.apache.abdera.parser.stax.FOMSource.getIdElement(FOMSource.java:194)
> at
> org.atgentive.perception.source.rss.AtomObserver.process(AtomObserver.java:73)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.