You should debug StringType to see what actually happened.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Joined: May 17, 2001
I got past this, not sure if this is the only solution as I am so new to this, but I do know that what I changed did make the error go away.
The problem appeared to be here :
The object patients was a java.util.List. It looks like the find method of getHibernateTmeplate looks for an array there. I took my list of Strings, created an array of Strings ( String ) and passed that instead. This worked.
subject: Getting a ClassCastException upon executing getHibernateTemplate().find(