[Building Sakai] DynaBeanAdapter can't be cast to FieldAdapter

Aaron Zeckoski azeckoski at unicon.net
Fri Jun 8 07:05:53 PDT 2012


I haven't see that specifically, but it looks like you have some
classloader issues. That cast failure would indicate that you somehow
have 2 copies of the FieldAdapter class in the classloader resolution
path.
DynaBeanAdapter implements FieldAdapter so it should always be
possible to cast it unless there are 2 instances of the FieldAdapter
class out there.

I would check for something like reflectutils being in shared or maybe
there being 2 copies of the jars (2 versions probably) in the
component or some other mismatch like that.

-AZ


On Fri, Jun 8, 2012 at 9:34 AM, D. Stuart Freeman
<stuart.freeman at et.gatech.edu> wrote:
> When starting up my 2.8 instance I'm seeing the following in the log:
>
> WARN: Failed to instantiate field adapter (class org.azeckoski.reflectutils.beanutils.DynaBeanAdapter), will continue without the dynabean adapter: java.lang.ClassCastException: org.azeckoski.reflectutils.beanutils.DynaBeanAdapter cannot be cast to org.azeckoski.reflectutils.beanutils.FieldAdapter
>
> Which seems reasonable, but then BlogWow gets loaded and we get:
>
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.entitybroker.impl.entityprovider.EntityProviderAutoRegistrar' defined in file [/opt/sakai/tomcat/components/entitybroker-pack/WEB-INF/components.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.blogwow.logic.entity.BlogRssEntityProviderImpl#0' defined in file [/opt/sakai/tomcat/components/sakai-blogwow-pack/WEB-INF/components.xml]: Cannot resolve reference to bean 'org.sakaiproject.blogwow.logic.BlogLogic' while setting bean property 'blogLogic'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.blogwow.logic.BlogLogic' defined in file [/opt/sakai/tomcat/components/sakai-blogwow-pack/WEB-INF/components.xml]: Cannot resolve reference to bean 'org.sakaiproject.blogwow.logic.ExternalLogic' while setting bean property 'externalLogic'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.blogwow.logic.ExternalLogic' defined in file [/opt/sakai/tomcat/components/sakai-blogwow-pack/WEB-INF/components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.sakaiproject.blogwow.logic.ExternalLogicImpl]: Constructor threw exception; nested exception is java.lang.RuntimeException: Failed to instantiate field adapter: class org.azeckoski.reflectutils.beanutils.DynaBeanAdapter
>
> and then a stack trace that I'd be happy to put on pastebin or something
> if necessary. And the failed bean resolution of course stops everything.
>
> Has anyone seen this before, or have an idea of the cause?
>
> --
> D. Stuart Freeman
> Georgia Institute of Technology
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list