Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-355

class cast exception in common collection-3.2 jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.2
    • None
    • Map
    • None
    • Unix, jdk 1.5.0.06

    Description

      Recently I have upgraded common collection jar to 3.2 version. After that I got a class cast exception in the following code java code
      String checkedInStation = (String)(((HashMap)lstQueuedPsgrs.get(startIndex))
      .get("PSGRCHECKEDINSTATION"));

      The exception detail as below

      java.lang.ClassCastException: org.apache.commons.collections.map.ListOrderedMap
      at sun.reflect.GeneratedMethodAccessor279.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation

      Attachments

        Activity

          People

            Unassigned Unassigned
            manu004 maneesh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: