Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-2088

Infinite loop when edit banner portlet with invalid value

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.0-GA, 3.2.0-M01
    • Fix Version/s: 3.2.0-Beta01
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      • open browser & portal
      • sign in & edit layout
      • edit banner portlet - add some invalid value (e.g. url to some image) & save (it's successfully saved)
      • close browser
      • open browser & portal - you can't access portal anymore
      Show
      open browser & portal sign in & edit layout edit banner portlet - add some invalid value (e.g. url to some image) & save (it's successfully saved) close browser open browser & portal - you can't access portal anymore

      Description

      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.

        Gliffy Diagrams

          Attachments

          1. epp52.jps
            431 kB
            Michal Vanco

            Issue Links

              Activity

                People

                • Assignee:
                  theute Thomas Heute
                  Reporter:
                  mvanco Michal Vanco
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: