You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "James M Snell (JIRA)" <ji...@apache.org> on 2007/03/15 05:47:09 UTC

[jira] Resolved: (ABDERA-40) entry.getSource().getId() cast exception

     [ https://issues.apache.org/jira/browse/ABDERA-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell resolved ABDERA-40.
---------------------------------

    Resolution: Fixed

A fix has been checked into the trunk

> 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.