abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "NIcolas Maisonneuve (JIRA)" <j...@apache.org>
Subject [jira] Created: (ABDERA-40) entry.getSource().getId() cast exception
Date Wed, 07 Mar 2007 10:43:24 GMT
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