[jboss-user] [Beginners Corner] - Re: Noob in EJB3 :D

Wolfgang Knauf do-not-reply at jboss.com
Thu Aug 6 07:41:57 EDT 2009


Hi,

according to the exception, there is a "java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String" in code called from "com.ca.mailing.ProfileManagerBean.getUsProfileById(ProfileManagerBean.java:73)". So maybe your ID property has type "int" while you try to load some data with a "string" parameter. Take a look at this code, and if you don't see a solution, post "getUsProfileById" and your entity bean.

Best regards

Wolfgang

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248437#4248437

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248437



More information about the jboss-user mailing list