Hi,

I am testing the ext-scripting module, which is really a great time saver :)
However, there seems to be some problems with Spring bean proxies that I use
in my project as managed beans.

For instance, I have a PublicationController, that extends an
AnnotationController. Spring creates a CGLIB proxy of the former, and then I
get this exception when using ext-scripting. Any ideas?

    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Cannot convert
uk.ac.ebi.intact.editor.controller.publication.publicationcontrol...@3d3bd50eof
type class
uk.ac.ebi.intact.editor.controller.publication.PublicationController$$EnhancerByCGLIB$$e33d8a6b
to class uk.ac.ebi.intact.editor.controller.shared.AnnotatedObjectController
    at com.sun.el.lang.ELSupport.coerceToType(ELSupport.java:397)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:222)
    at
org.apache.myfaces.view.facelets.el.TagValueExpression.getValue(TagValueExpression.java:84)
    at
javax.faces.component._ComponentAttributesMap.get(_ComponentAttributesMap.java:246)
    at
org.apache.myfaces.el.unified.resolver.CompositeComponentELResolver$CompositeComponentAttributesMapWrapper.get(CompositeComponentELResolver.java:236)
    at javax.el.MapELResolver.getValue(MapELResolver.java:196)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
    at
org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:142)
    at
org.apache.myfaces.extensions.scripting.jsf.dynamicdecorators.implemetations.ELResolverProxy.getValue(ELResolverProxy.java:49)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
    at
org.apache.myfaces.view.facelets.el.LocationValueExpression.getValue(LocationValueExpression.java:89)
    at
org.apache.myfaces.view.facelets.el.TagValueExpression.getValue(TagValueExpression.java:84)
    at
javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:243)
    at javax.faces.component.UIData.getValue(UIData.java:1085)
    at javax.faces.component.UIData.createDataModel(UIData.java:1033)
    at javax.faces.component.UIData.getDataModel(UIData.java:1010)
    at javax.faces.component.UIData.getRowCount(UIData.java:442)
    at
org.apache.myfaces.renderkit.ErrorPageWriter$ExtendedComponentTreeVisitCallback.visit(ErrorPageWriter.java:905)
    at
org.apache.myfaces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:139)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:750)
    at javax.faces.component.UIData.visitTree(UIData.java:1224)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:763)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:763)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at javax.faces.component.UIComponent.visitTree(UIComponent.java:770)
    at
org.apache.myfaces.renderkit.ErrorPageWriter._writeExtendedComponentTree(ErrorPageWriter.java:678)
    at
org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:324)
    at
org.apache.myfaces.view.facelets.tag.ui.UIDebug.writeDebugOutput(UIDebug.java:127)
    at
org.apache.myfaces.view.facelets.tag.ui.UIDebug.encodeBegin(UIDebug.java:114)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:605)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
    at
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1139)
    at
org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:231)
    at
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:86)
    at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:210)
    ... 62 more

Any ideas? Thanks!

Bruno

Reply via email to