-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: problems w/ schema gen using commons-collections-3.0 vs 2.1
PostPosted: Sun May 23, 2004 2:51 pm 
Newbie

Joined: Thu Jan 08, 2004 8:53 pm
Posts: 7
Location: massachusetts
I am trying to upgrade to hibernate 2.1.3. It comes with commons-collections-2.1. If i try to use it with commons-collections-3.0 my schema generation fails with an EMPTY ITERATOR. If i switch back to commons-collections-2.1 the schema generation succeeds. Has anyone else experienced this problem? This is using the same hibernate mapping files (or recreating them). I have not tried to figure out what is causing the problem yet - thought i would see if anyone else can reproduce this error:
java.lang.NoSuchFieldError: EMPTY_ITERATOR
at net.sf.hibernate.util.JoinedIterator.updateCurrentIterator(JoinedIterator.java:
63)
at net.sf.hibernate.util.JoinedIterator.hasNext(JoinedIterator.java:42)
at net.sf.hibernate.mapping.SimpleValue.setType(SimpleValue.java:55)
at net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:911)
at net.sf.hibernate.cfg.Binder.bindCollectionSecondPass(Binder.java:1205)
at net.sf.hibernate.cfg.Binder.bindListSecondPass(Binder.java:1093)
at net.sf.hibernate.cfg.Binder$ListSecondPass.secondPass(Binder.java:1396)
at net.sf.hibernate.cfg.Binder$SecondPass.doSecondPass(Binder.java:1342)
at net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:618)
at net.sf.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:
445)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:58)
at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getSchemaExport(SchemaExportTask
.java:209)
at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:13
6)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 2:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Please submit this to JIRA, we will remove the dependency to commons-collections very soon.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 31, 2004 11:13 am 
Beginner
Beginner

Joined: Mon Sep 08, 2003 6:52 am
Posts: 46
I've actually supplied a patch for this, the latest CVS tree works.

H


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 01, 2004 3:21 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Submit it to JIRA from the v21branch

_________________
Emmanuel


Top
 Profile  
 
 Post subject: patch posted
PostPosted: Tue Jun 01, 2004 5:25 am 
Beginner
Beginner

Joined: Mon Sep 08, 2003 6:52 am
Posts: 46
Posted, JIRA issue #HB-997.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.