You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/07/17 10:54:50 UTC

[jira] Resolved: (CLK-712) ConcurrentModificationException during rendering of Css/JsImport element.

     [ https://issues.apache.org/jira/browse/CLK-712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink resolved CLK-712.
-------------------------------

         Assignee: Bob Schellink
    Fix Version/s: 2.3.0-M1
       Resolution: Fixed

fix checked in

> ConcurrentModificationException during rendering of Css/JsImport element.
> -------------------------------------------------------------------------
>
>                 Key: CLK-712
>                 URL: https://issues.apache.org/jira/browse/CLK-712
>             Project: Click
>          Issue Type: Bug
>          Components: core
>            Reporter: Finn Bock
>            Assignee: Bob Schellink
>            Priority: Critical
>             Fix For: 2.3.0-M1
>
>
> In Css/JsImport.render(), the src/href attribute is temporarily removed:
>         // Temporarily remove href attribute while other attributes are rendered
>         setAttribute("href", null);
>         appendAttributes(buffer);
>         // Restore href attribute
>         setAttribute("href", href);
> This cause incorrect rendering and ConcurrentModificationException when other threads rendering the same element. The sharing between threads is common for the CSS & JS elements added to a cached menu.
> It is quite easy to reproduce: Just let jmeter hit localhost:8080/click-examples/home.htm about 40.000 times. After the test is finished use a browser to show the examples homepage. For me, the CSS and JS import elements related to menu is missing or rendered incorrectly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.