[JBoss JIRA] (GTNPC-82) Potential concurency issues in FederatingPortletInvokerService and ContainerPortletInvoker
by Nicolas Filotto (JIRA)
Nicolas Filotto created GTNPC-82:
------------------------------------
Summary: Potential concurency issues in FederatingPortletInvokerService and ContainerPortletInvoker
Key: GTNPC-82
URL: https://issues.jboss.org/browse/GTNPC-82
Project: GateIn Portlet Container
Issue Type: Quality Risk
Affects Versions: 2.3.0-GA
Reporter: Nicolas Filotto
While debugging to undestand why the PC could not find my portlets, I found the next potential concurrency issues :
# In FederatingPortletInvokerService.getOrResolveFederatedInvoker() the invokerCache is directly modified instead of being recreated from scratch an reassigned which could cause HashMap corruptions under heavy load
# In ContainerPortletInvoker: The methods addPortletContainer and removePortletContainer should be synchronized to prevent any modification loss in case of concurrent modifications. Moreover the variable portlets should be volatile for the same reason
This must be seen as a feedback you are free to resolve it as won't fix if you don't find it relevant.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] (GTNPORTAL-2385) Failure when a node has a long name
by Thomas Heute (JIRA)
Thomas Heute created GTNPORTAL-2385:
---------------------------------------
Summary: Failure when a node has a long name
Key: GTNPORTAL-2385
URL: https://issues.jboss.org/browse/GTNPORTAL-2385
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Thomas Heute
the console drop this
15:54:27,115 INFO [STDOUT] Creating a new session of the 'sample-ext'
15:54:31,263 ERROR [PortletApplicationController] Error while rendering the porlet
org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=117],data= if(node.getResol
vedLabel().length() > 30) label = EntityEncoder.encode(node.getResolvedLavel().substring(0,27) + "...");] for template app:/groovy/portal/webui/component/UIPortalNavigation.gtmpl
at org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:178)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:121)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:119)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:125)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:83)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
at org.exoplatform.webui.core.UIPortletApplication.renderChildren(UIPortletApplication.java:90)
at org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processRender(UIApplicationLifecycle.java:73)
at org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processRender(UIApplicationLifecycle.java:31)
.
.
.
.
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
Caused by: groovy.lang.MissingMethodException: No signature of method: org.exoplatform.portal.mop.user.UserNode.getResolvedLavel() is applicable for argument types: () values: []
Possible solutions: getResolvedLabel()
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at UIPortalNavigation.run(UIPortalNavigation.gtmpl:117)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)
... 225 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months