abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James M Snell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (ABDERA-40) entry.getSource().getId() cast exception
Date Thu, 15 Mar 2007 04:47:09 GMT

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


Mime
View raw message