commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COLLECTIONS-355) class cast exception in common collection-3.2 jar
Date Wed, 26 May 2010 14:35:39 GMT

     [ https://issues.apache.org/jira/browse/COLLECTIONS-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated COLLECTIONS-355:
-----------------------------

    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

  was:
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



Reformat to make stacktrace easier to read

> class cast exception in common collection-3.2  jar
> --------------------------------------------------
>
>                 Key: COLLECTIONS-355
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-355
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Map
>    Affects Versions: 3.2
>         Environment: Unix, jdk 1.5.0.06
>            Reporter: maneesh
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message