[Building Sakai] ClassCastException: Cannot cast org.sakaiproject.site.impl.BaseSite (id=260) to org.sakaiproject.site.impl.BaseSite
Jose Morell
jose.morell.at.sakai at gmail.com
Tue Mar 10 04:43:46 PDT 2009
Hi list,
I'm trying to extend Site with a new attribute visitedTime.
This new class VisitedSite has this constructor:
public VisitedSiteImpl(BaseSiteService arg0, Site arg1) {
super(arg0, arg1);
// TODO Auto-generated constructor stub
}
The argument arg1 is a BaseSite from the site-manage-tool site list, but
when calling the superclass constructor:
public BaseSite(BaseSiteService siteService, Site other)
{
this.siteService = siteService;
BaseSite bOther = (BaseSite) other;
set(bOther, true);
}
(BaseSite) other throws this class cast exception:
ClassCastException: Cannot cast org.sakaiproject.site.impl.BaseSite (id=260)
to org.sakaiproject.site.impl.BaseSite
Any idea about this?
Regards.
Jose Morell Rama
SETIVAL S.L.
http://www.setival.com/
jose.morell at setival.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090310/565120e8/attachment.html
More information about the sakai-dev
mailing list