Hi all,
I have the following code...
Right now this is failing with the exception...Code:String GET_AGENTS_FOR_CYCLE = "select AGENTSURROGATECODE from SETTLEMENT.AGENT_DETAILS where CYCLE = ?"; List agentsList = jdbcTemplate.queryForList(GET_AGENTS_FOR_CYCLE, new Object [] {getCycle()}); Iterator agentItr = agentsList.iterator(); while (agentItr.hasNext()) { String agentCode = (String) agentItr.next();
So it looks like AgentList is made up of LinkedCaseInsensitiveMap objects instead of String objects. Why is this?Code:java.lang.ClassCastException: org.springframework.util.LinkedCaseInsensitiveMap cannot be cast to java.lang.String at com.wu.interstream.advising.loaders.AgentsRetriever.execute(AgentsRetriever.java:54)
Thanks in advance for any help.


Reply With Quote