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

Hibernate JIRA | Jay Goldman | 1 decade ago
  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)
  2. 0

    Using this mapping (removed additional info for version and key): <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="Project" > <id name="id" /> <version name="hbmVersion" /> <component name="projectData" class="Data" access="field" > <!-- left empty for later implementatio --> </component> </class> I get the following exception while loading the mappings: 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.propertiesFromXML(Binder.java:1041) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:361) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285) at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:351) at nl.sogeti.glazenhuis.dashboard.InitializeDatabaseMain.<init>(HibernateStandaloneMain.java:102) at nl.sogeti.glazenhuis.dashboard.InitializeDatabaseMain.main(HibernateStandaloneMain.java:66) The strangest thing is that if I load these same mapping from a hibernate.cfg.xml I get no error and everything works as expected. Adding at least one property to the component tag also solves the problem. As does commenting the whole tag ofcourse.

    Hibernate JIRA | 1 decade ago | Jesse Houwing
    java.lang.NoSuchFieldError: EMPTY_ITERATOR
  3. 0

    Using this mapping (removed additional info for version and key): <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="Project" > <id name="id" /> <version name="hbmVersion" /> <component name="projectData" class="Data" access="field" > <!-- left empty for later implementatio --> </component> </class> I get the following exception while loading the mappings: 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.propertiesFromXML(Binder.java:1041) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:361) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285) at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:351) at nl.sogeti.glazenhuis.dashboard.InitializeDatabaseMain.<init>(HibernateStandaloneMain.java:102) at nl.sogeti.glazenhuis.dashboard.InitializeDatabaseMain.main(HibernateStandaloneMain.java:66) The strangest thing is that if I load these same mapping from a hibernate.cfg.xml I get no error and everything works as expected. Adding at least one property to the component tag also solves the problem. As does commenting the whole tag ofcourse.

    Hibernate JIRA | 1 decade ago | Jesse Houwing
    java.lang.NoSuchFieldError: EMPTY_ITERATOR
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GWT Designer m_selectedModuleFile error

    Stack Overflow | 5 years ago | user963070
    java.lang.NoSuchFieldError: m_selectedModuleFile at com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.selectedModuleChanged(De loyModuleAction.java:63)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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