[
https://jira.jboss.org/jira/browse/GTNPORTAL-301?page=com.atlassian.jira....
]
Work on GTNPORTAL-301 stopped by LiemNC.
ClassCastException when drag & drop dashboard in create/edit
page
-----------------------------------------------------------------
Key: GTNPORTAL-301
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-301
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-Beta03
Reporter: Hang Nguyen
Assignee: LiemNC
Fix For: 3.0.0-Beta04
Attachments: 2.jpg
- Go to Group Navigation --> Group Navigation --> Add/Edit page --> at step 3:
drag & drop dashboard --> Show exception
Caused by: org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template
exception at DataT
ext[pos=Position[col=1,line=7],data= uicomponent.renderChildren(); ]
for template
classpath:groovy/dashboard/webui/component/UIDashboard.gtmpl
at
org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:160)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:103)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:108)
at
org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:74)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:126)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:79)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:135)
at org.exoplatform.webui.core.UIContainer.renderChild(UIContainer.java:291)
at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoe
rce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at UIDashboardPortlet.run(UIDashboardPortlet.gtmpl:12)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:93)
... 193 more
Caused by: java.lang.ClassCastException: Could not cast context
ObjectContext[status=ObjectStatus[id
=2e9118afc0a8015e01031b7c9e4f1253,status=PERSISTENT],mapper=NodeTypeMapper[class=class
org.gatein.mo
p.core.api.workspace.UIWindowImpl,nodeTypeName=mop:uiwindow]] with class
org.gatein.mop.core.api.wor
kspace.UIWindowImpl_Chromattic to class
org.gatein.mop.core.api.workspace.UIContainerImpl
at org.chromattic.core.DomainSessionImpl._findById(DomainSessionImpl.java:373)
at org.chromattic.core.DomainSession.findById(DomainSession.java:243)
at org.gatein.mop.core.api.ModelImpl.findObjectById(ModelImpl.java:219)
at
org.exoplatform.portal.pom.config.POMSession.findObjectById(POMSession.java:202)
at
org.exoplatform.portal.pom.config.tasks.DashboardTask$Load.run(DashboardTask.java:52)
at org.exoplatform.portal.pom.config.POMSession.execute(POMSession.java:373)
at
org.exoplatform.portal.pom.config.ExecutorDispatcher.execute(ExecutorDispatcher.java:41)
at
org.exoplatform.portal.pom.config.TaskExecutionDecorator.execute(TaskExecutionDecorator.j
ava:36)
at org.exoplatform.portal.pom.config.cache.DataCache.execute(DataCache.java:69)
at
org.exoplatform.portal.pom.config.POMDataStorage.execute(POMDataStorage.java:122)
at
org.exoplatform.portal.pom.config.POMDataStorage.loadDashboard(POMDataStorage.java:334)
at
org.exoplatform.portal.config.DataStorageImpl.loadDashboard(DataStorageImpl.java:270)
at
org.exoplatform.dashboard.webui.component.UIDashboardContainer.processRender(UIDashboardC
ontainer.java:127)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:321)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:312)
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoe
rce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
at UIDashboard.run(UIDashboard.gtmpl:7)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:93)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:108)
at
org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:74)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:126)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:79)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:135)
at org.exoplatform.webui.core.UIContainer.renderChild(UIContainer.java:291)
at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoe
rce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at UIDashboardPortlet.run(UIDashboardPortlet.gtmpl:14)
... 194 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira