My project is using Java5 and we're trying to use JBpm with it. I created a Delegation to Actionhandler that accepts a HashMap as a field.
The definition had; | <requestParams> | <entity><key>somekey</key><value>someValue</value></entity> | </requestParams> | This caused an exception. After looking into the code I found that in getValue, lines 134 to 141 else if (type.isAssignableFrom(List.class)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (type.isAssignableFrom(Set.class)) { | value = getCollection(propertyElement, new HashSet()); | } else if (type.isAssignableFrom(Collection.class)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (type.isAssignableFrom(Map.class)) { | value = getMap(propertyElement, new HashMap()); In java 5 there is a problem with such check and thus this code should be: | else if (List.class.isAssignableFrom(type)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (Set.class.isAssignableFrom(type)) { | value = getCollection(propertyElement, new HashSet()); | } else if (Collection.class.isAssignableFrom(type)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (Map.class.isAssignableFrom(type)) { | value = getMap(propertyElement, new HashMap()); | After changing the code it worked for me.... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955352#3955352 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955352 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user