java.lang.NoSuchFieldError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I am trying to upgrade to hibernate 2.1.3. btw - why does the list above have 2.1.4 instead of 2.1.3? Anyway, 2.1.3 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. 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)
    via by Jay Goldman,
    • 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)
    No Bugmate found.