java.lang.NoSuchFieldError: EMPTY_ITERATOR at net.sf.hibernate.util.JoinedIterator.updateCurrentIterator(JoinedIterator.java: 63)

Hibernate JIRA | Jay Goldman | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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)

    Hibernate JIRA | 1 decade ago | Jay Goldman
    java.lang.NoSuchFieldError: EMPTY_ITERATOR at net.sf.hibernate.util.JoinedIterator.updateCurrentIterator(JoinedIterator.java: 63)

    Root Cause Analysis

    1. java.lang.NoSuchFieldError

      EMPTY_ITERATOR at net.sf.hibernate.util.JoinedIterator.updateCurrentIterator(JoinedIterator.java: 63)

      at net.sf.hibernate.util.JoinedIterator.hasNext()
    2. net.sf.hibernate
      Configuration.secondPassCompile
      1. net.sf.hibernate.util.JoinedIterator.hasNext(JoinedIterator.java:42)
      2. net.sf.hibernate.mapping.SimpleValue.setType(SimpleValue.java:55)
      3. net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:911)
      4. net.sf.hibernate.cfg.Binder.bindCollectionSecondPass(Binder.java:1205)
      5. net.sf.hibernate.cfg.Binder.bindListSecondPass(Binder.java:1093)
      6. net.sf.hibernate.cfg.Binder$ListSecondPass.secondPass(Binder.java:1396)
      7. net.sf.hibernate.cfg.Binder$SecondPass.doSecondPass(Binder.java:1342)
      8. net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:618)
      8 frames