java.lang.NoSuchFieldError: EMPTY_ORDERED_MAP_ITERATOR

AppFuse JIRA | Ashish Jain | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ================================Stack Trace================================= DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] com.jframeworks.web.admin.filters.SideMenuFilter - destroy called DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] net.sf.navigator.menu.MenuContextListener - destroying struts-menu... ERROR ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.session.ManagerBase - Exception unloading sessions to persi stent storage java.lang.NoSuchFieldError: EMPTY_ORDERED_MAP_ITERATOR at org.apache.commons.collections.map.AbstractLinkedMap.mapIterator(AbstractLinkedMap.java:345) at org.apache.commons.collections.map.AbstractHashedMap.doWriteObject(AbstractHashedMap.java:1138) at org.apache.commons.collections.map.LinkedMap.writeObject(LinkedMap.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1478) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:948) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4363) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3019) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) at java.lang.Thread.run(Thread.java:595) ========================================================================================================== This error doesn't come if I put this line in my Filter (responsible for building MenuRepo from DB) public void destroy() { if (LOG.isDebugEnabled()) LOG.debug("destroy called"); this.getServletContext().removeAttribute("sideMenuRepository"); } I think, there is some problem in serializing MenuRepository, not sure whether it is mismatch of collection API?

    AppFuse JIRA | 9 years ago | Ashish Jain
    java.lang.NoSuchFieldError: EMPTY_ORDERED_MAP_ITERATOR
  2. 0

    ================================Stack Trace================================= DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] com.jframeworks.web.admin.filters.SideMenuFilter - destroy called DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] net.sf.navigator.menu.MenuContextListener - destroying struts-menu... ERROR ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.session.ManagerBase - Exception unloading sessions to persi stent storage java.lang.NoSuchFieldError: EMPTY_ORDERED_MAP_ITERATOR at org.apache.commons.collections.map.AbstractLinkedMap.mapIterator(AbstractLinkedMap.java:345) at org.apache.commons.collections.map.AbstractHashedMap.doWriteObject(AbstractHashedMap.java:1138) at org.apache.commons.collections.map.LinkedMap.writeObject(LinkedMap.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1478) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:948) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4363) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3019) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) at java.lang.Thread.run(Thread.java:595) ========================================================================================================== This error doesn't come if I put this line in my Filter (responsible for building MenuRepo from DB) public void destroy() { if (LOG.isDebugEnabled()) LOG.debug("destroy called"); this.getServletContext().removeAttribute("sideMenuRepository"); } I think, there is some problem in serializing MenuRepository, not sure whether it is mismatch of collection API?

    AppFuse JIRA | 9 years ago | Ashish Jain
    java.lang.NoSuchFieldError: EMPTY_ORDERED_MAP_ITERATOR

    Root Cause Analysis

    1. java.lang.NoSuchFieldError

      EMPTY_ORDERED_MAP_ITERATOR

      at org.apache.commons.collections.map.AbstractLinkedMap.mapIterator()
    2. Commons Collections
      LinkedMap.writeObject
      1. org.apache.commons.collections.map.AbstractLinkedMap.mapIterator(AbstractLinkedMap.java:345)
      2. org.apache.commons.collections.map.AbstractHashedMap.doWriteObject(AbstractHashedMap.java:1138)
      3. org.apache.commons.collections.map.LinkedMap.writeObject(LinkedMap.java:157)
      3 frames
    3. Java RT
      ObjectOutputStream.writeObject
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      5. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      6. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      7. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      8. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      9. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      10. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      11. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      12. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      13. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      13 frames
    4. Glassfish Core
      ContainerBase$ContainerBackgroundProcessor.run
      1. org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1478)
      2. org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:948)
      3. org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
      4. org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
      5. org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
      6. org.apache.catalina.core.StandardContext.stop(StandardContext.java:4363)
      7. org.apache.catalina.core.StandardContext.reload(StandardContext.java:3019)
      8. org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
      9. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
      10. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
      11. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
      12. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
      13. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
      13 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame