RSS 2.0 Parsing error

  • ben

    ben - 2007-04-27


    I'm using informa (with Hibernate) and I met an error when parsing an RSS 2.0 file which have items with category:

    org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of
        at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(
        at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(
        at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(
        at org.hibernate.engine.ForeignKeys.isTransient(
        at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(
        at org.hibernate.type.EntityType.getIdentifier(
        at org.hibernate.type.ManyToOneType.nullSafeSet(
        at org.hibernate.persister.collection.AbstractCollectionPersister.writeElement(
        at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(
        at org.hibernate.action.CollectionRecreateAction.execute(
        at org.hibernate.engine.ActionQueue.execute(
        at org.hibernate.engine.ActionQueue.executeActions(
        at org.hibernate.engine.ActionQueue.executeActions(
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(
        at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(
        at org.hibernate.impl.SessionImpl.autoFlushIfRequired(
        at org.hibernate.impl.SessionImpl.list(
        at org.hibernate.impl.QueryImpl.list(
        at org.hibernate.impl.AbstractQueryImpl.uniqueResult(
        at de.nava.informa.impl.hibernate.ChannelBuilder.createItem(
        at de.nava.informa.parsers.RSS_2_0_Parser.parse(
        at de.nava.informa.parsers.FeedParser.parse(
        at de.nava.informa.parsers.FeedParser.parse(
        at de.nava.informa.parsers.FeedParser.parse(

    Do you have an idea of this issue?

    Thanks for all.

    • ben

      ben - 2007-04-27

      I found a solution by adding a method in which is then called by the parse one:

      private CategoryIF getCategoryList(ChannelBuilderIF cBuilder, CategoryIF parent, String title,
                Hashtable children) {
              // Assuming category hierarchy for each category element
              // is already mapped out into Hashtable tree;  Hense the children Hashtable

              // create current CategoryIF object; Parent may be null if at top level
              CategoryIF cat = cBuilder.createCategory(parent, title);
              // iterate off list of keys from children list
              Enumeration itChild = children.keys();
              while (itChild.hasMoreElements()) {
                String childKey = (String) itChild.nextElement();
                // don't need to keep track of return CategoryIF since it will be added as child of another instance
                getCategoryList(cat, childKey, (Hashtable) children.get(childKey));
              return cat;

      Hope it will be helpfull.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks