java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The externalizableBusinessObjectImplementations setup for the KEW, KIM, and Location modules are not correct given the current inheritance of the BO classes. Per the RemoteModuleServiceBase class, the value of each of those map entries must implement the ExternalizableBusinessObject interface. However most do not. This is causing a number of lookups and inquiries to fail in KFS with exceptions like the following: {noformat} 2012-04-05 09:53:31,681 [http-8080-1] ERROR org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean :: Unable to get property descriptor for org.kuali.kfs.module.cam.businessobject.AssetLocation . postalZipCode.postalCode java.lang.RuntimeException: Error occured while trying to create a new instance for class class org.kuali.rice.location.framework.postalcode.PostalCodeEbo Apr 5, 2012 9:53:31 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: org.kuali.rice.location.impl.postalcode.PostalCodeBo cannot be cast to org.kuali.rice.krad.bo.ExternalizableBusinessObject at org.kuali.rice.krad.service.impl.RemoteModuleServiceBase.createNewObjectFromExternalizableClass(RemoteModuleServiceBase.java:475) at org.kuali.rice.krad.util.ObjectUtils.createNewObjectFromClass(ObjectUtils.java:1057) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getPropertyDescriptor(PojoPropertyUtilsBean.java:391) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getUnreachableNestedProperty(PojoPropertyUtilsBean.java:230) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getNestedProperty(PojoPropertyUtilsBean.java:215) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getProperty(PojoPropertyUtilsBean.java:70) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426) at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:880) at org.apache.struts.taglib.html.BaseFieldTag.prepareValue(BaseFieldTag.java:126) at org.apache.struts.taglib.html.BaseFieldTag.renderInputElement(BaseFieldTag.java:102) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:80) at org.apache.struts.taglib.html.HiddenTag.doStartTag(HiddenTag.java:69) at org.kuali.rice.kns.web.taglib.html.KNSHiddenTag.doStartTag(KNSHiddenTag.java:36) at org.apache.jsp.tag.web.module.cams.assetLocation_tag._jspx_meth_html_005fhidden_005f0(assetLocation_tag.java:613) at org.apache.jsp.tag.web.module.cams.assetLocation_tag.access$20(assetLocation_tag.java:602) at org.apache.jsp.tag.web.module.cams.assetLocation_tag$Helper.invoke3(assetLocation_tag.java:847) at org.apache.jsp.tag.web.module.cams.assetLocation_tag$Helper.invoke(assetLocation_tag.java:897) at org.apache.jsp.tag.web.kr.inquiry_tag.doTag(inquiry_tag.java:136) {noformat}
    via by Jonathan Keller,
  • The externalizableBusinessObjectImplementations setup for the KEW, KIM, and Location modules are not correct given the current inheritance of the BO classes. Per the RemoteModuleServiceBase class, the value of each of those map entries must implement the ExternalizableBusinessObject interface. However most do not. This is causing a number of lookups and inquiries to fail in KFS with exceptions like the following: {noformat} 2012-04-05 09:53:31,681 [http-8080-1] ERROR org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean :: Unable to get property descriptor for org.kuali.kfs.module.cam.businessobject.AssetLocation . postalZipCode.postalCode java.lang.RuntimeException: Error occured while trying to create a new instance for class class org.kuali.rice.location.framework.postalcode.PostalCodeEbo Apr 5, 2012 9:53:31 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: org.kuali.rice.location.impl.postalcode.PostalCodeBo cannot be cast to org.kuali.rice.krad.bo.ExternalizableBusinessObject at org.kuali.rice.krad.service.impl.RemoteModuleServiceBase.createNewObjectFromExternalizableClass(RemoteModuleServiceBase.java:475) at org.kuali.rice.krad.util.ObjectUtils.createNewObjectFromClass(ObjectUtils.java:1057) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getPropertyDescriptor(PojoPropertyUtilsBean.java:391) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getUnreachableNestedProperty(PojoPropertyUtilsBean.java:230) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getNestedProperty(PojoPropertyUtilsBean.java:215) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getProperty(PojoPropertyUtilsBean.java:70) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426) at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:880) at org.apache.struts.taglib.html.BaseFieldTag.prepareValue(BaseFieldTag.java:126) at org.apache.struts.taglib.html.BaseFieldTag.renderInputElement(BaseFieldTag.java:102) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:80) at org.apache.struts.taglib.html.HiddenTag.doStartTag(HiddenTag.java:69) at org.kuali.rice.kns.web.taglib.html.KNSHiddenTag.doStartTag(KNSHiddenTag.java:36) at org.apache.jsp.tag.web.module.cams.assetLocation_tag._jspx_meth_html_005fhidden_005f0(assetLocation_tag.java:613) at org.apache.jsp.tag.web.module.cams.assetLocation_tag.access$20(assetLocation_tag.java:602) at org.apache.jsp.tag.web.module.cams.assetLocation_tag$Helper.invoke3(assetLocation_tag.java:847) at org.apache.jsp.tag.web.module.cams.assetLocation_tag$Helper.invoke(assetLocation_tag.java:897) at org.apache.jsp.tag.web.kr.inquiry_tag.doTag(inquiry_tag.java:136) {noformat}
    via by Jonathan Keller,
    • java.lang.ClassCastException: org.kuali.rice.location.impl.postalcode.PostalCodeBo cannot be cast to org.kuali.rice.krad.bo.ExternalizableBusinessObject at org.kuali.rice.krad.service.impl.RemoteModuleServiceBase.createNewObjectFromExternalizableClass(RemoteModuleServiceBase.java:475) at org.kuali.rice.krad.util.ObjectUtils.createNewObjectFromClass(ObjectUtils.java:1057) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getPropertyDescriptor(PojoPropertyUtilsBean.java:391) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getUnreachableNestedProperty(PojoPropertyUtilsBean.java:230) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getNestedProperty(PojoPropertyUtilsBean.java:215) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.getProperty(PojoPropertyUtilsBean.java:70) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426) at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:880) at org.apache.struts.taglib.html.BaseFieldTag.prepareValue(BaseFieldTag.java:126) at org.apache.struts.taglib.html.BaseFieldTag.renderInputElement(BaseFieldTag.java:102) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:80) at org.apache.struts.taglib.html.HiddenTag.doStartTag(HiddenTag.java:69) at org.kuali.rice.kns.web.taglib.html.KNSHiddenTag.doStartTag(KNSHiddenTag.java:36) at org.apache.jsp.tag.web.module.cams.assetLocation_tag._jspx_meth_html_005fhidden_005f0(assetLocation_tag.java:613) at org.apache.jsp.tag.web.module.cams.assetLocation_tag.access$20(assetLocation_tag.java:602) at org.apache.jsp.tag.web.module.cams.assetLocation_tag$Helper.invoke3(assetLocation_tag.java:847) at org.apache.jsp.tag.web.module.cams.assetLocation_tag$Helper.invoke(assetLocation_tag.java:897) at org.apache.jsp.tag.web.kr.inquiry_tag.doTag(inquiry_tag.java:136)
    No Bugmate found.