[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-2088) Infinite loop when edit banner portlet with invalid value
Thomas Heute (JIRA)
jira-events at lists.jboss.org
Fri Sep 9 10:13:26 EDT 2011
[ https://issues.jboss.org/browse/GTNPORTAL-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627539#comment-12627539 ]
Thomas Heute commented on GTNPORTAL-2088:
-----------------------------------------
Indeed, with an invalid URI:
It loops over
public ResourceResolver getResourceResolver(String uri)
{
Application app = getApplication();
while (app != null)
{
ApplicationResourceResolver appResolver = app.getResourceResolver();
ResourceResolver resolver = appResolver.getResourceResolver(uri);
if (resolver != null)
return resolver;
RequestContext pcontext = getParentAppRequestContext();
if (pcontext != null)
app = pcontext.getApplication();
else
app = null;
}
return null;
since pcontext.getApplication() returns the same value for app as before.
> Infinite loop when edit banner portlet with invalid value
> ---------------------------------------------------------
>
> Key: GTNPORTAL-2088
> URL: https://issues.jboss.org/browse/GTNPORTAL-2088
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.1.0-GA, 3.2.0-M01
> Environment: verified with EPP 5.2.0 DEV03 and 5.1.1 GA
> Reporter: Michal Vanco
> Fix For: 3.2.0-M02
>
> Attachments: epp52.jps
>
>
> When you edit banner portlet with invalid value, close & open browser -> you are not able to access portal.
> With each refresh it takes another database connection and after 20 attempts you end up with:
> 13:20:10,748 ERROR [JDBCExceptionReporter] Unable to get managed connection for gatein-idm; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for gatein-idm)
> I'm also attaching thread dump where you can see that 20 threads are running in following classes:
> at java.util.HashMap.get(HashMap.java:300)
> at org.exoplatform.resolver.ApplicationResourceResolver.getResourceResolver(ApplicationResourceResolver.java:70)
> at org.exoplatform.webui.application.WebuiRequestContext.getResourceResolver(WebuiRequestContext.java:184)
> I think there is problem with while loop in WebuiRequestContext.getResourceResolver method.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list