Click
  1. Click
  2. CLK-277

Problem with excluded *.htm pages

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Click ver 1.3.1 & svn
      linux java 1.5.0.13 & tomcat 6.0.14

      Description

      I put full tiny_mce distribution to web directory and add <excludes pattern="/tiny_mce/*"></excludes> to the click.xml.
      When I try open any .htm page from /tiny_mce/ (ex /tiny_mce/themes/advanced/about.htm#) click throws exception:

      java.lang.ClassCastException: java.util.ArrayList
      at net.sf.click.ClickApp.getPageFieldArray(ClickApp.java:610)
      at net.sf.click.ClickServlet.processPageFields(ClickServlet.java:1460)
      at net.sf.click.ClickServlet.initPage(ClickServlet.java:1009)
      at net.sf.click.ClickServlet.createPage(ClickServlet.java:925)
      at net.sf.click.ClickServlet.handleRequest(ClickServlet.java:349)
      at net.sf.click.ClickServlet.doGet(ClickServlet.java:281)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at net.sf.click.extras.filter.CompressionFilter.doFilter(CompressionFilter.java:209)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

      When click start i see:
      ....
      [Click] [debug] /tiny_mce/themes/advanced/about.htm -> net.sf.click.ClickApp$ExcludePage
      ....
      so exclude should works.
      Other pages *.htm are correct processed by click servlet.

      Regards
      Sep

        Activity

        Hide
        Malcolm Edgar added a comment -

        Hi Sep,

        do you also get this issue with Click 1.4RC1?

        regards Malcolm Edgar

        Show
        Malcolm Edgar added a comment - Hi Sep, do you also get this issue with Click 1.4RC1? regards Malcolm Edgar
        Hide
        Sep added a comment -

        Yes, 1.3.1, 1.4RC1 and last svn (rev2263).
        I use net.sf.click.ClickServlet - not net.sf.click.extras.spring.SpringClickServlet.

        Regards
        Sep

        Show
        Sep added a comment - Yes, 1.3.1, 1.4RC1 and last svn (rev2263). I use net.sf.click.ClickServlet - not net.sf.click.extras.spring.SpringClickServlet. Regards Sep
        Hide
        Bob Schellink added a comment -

        Hi Malcolm,

        To reproduce this get the latest tiny_mce release, switch RichTextArea to "advanced" theme, and navigate to 'http://localhost:8080/click-examples/tiny_mce/themes/advanced/about.htm'.

        Here are more info on this issue: all the excluded paths are mapped to the same class namely 'ClickApp.ExcludePage'. When retrieving the PageElm for ExcludePage.class, pageByClassMap returns a list of PageElm instead of a single one.

        Something else which seems suspect is that the method ClickApp.loadPages() contains code that creates the above list if a class maps to multiple paths, however the method ClickApp.getPagePath(Class) will throw an exception if a class is mapped to multiple paths.

        Show
        Bob Schellink added a comment - Hi Malcolm, To reproduce this get the latest tiny_mce release, switch RichTextArea to "advanced" theme, and navigate to 'http://localhost:8080/click-examples/tiny_mce/themes/advanced/about.htm'. Here are more info on this issue: all the excluded paths are mapped to the same class namely 'ClickApp.ExcludePage'. When retrieving the PageElm for ExcludePage.class, pageByClassMap returns a list of PageElm instead of a single one. Something else which seems suspect is that the method ClickApp.loadPages() contains code that creates the above list if a class maps to multiple paths, however the method ClickApp.getPagePath(Class) will throw an exception if a class is mapped to multiple paths.
        Hide
        Malcolm Edgar added a comment -

        Hi Bob,

        I have assigned this issue to you if you want to look at it further. Otherwise, just assign it to me.

        regards Malcolm Edgar

        Show
        Malcolm Edgar added a comment - Hi Bob, I have assigned this issue to you if you want to look at it further. Otherwise, just assign it to me. regards Malcolm Edgar
        Hide
        Malcolm Edgar added a comment -

        Fixed with fix for CLK-294

        Show
        Malcolm Edgar added a comment - Fixed with fix for CLK-294

          People

          • Assignee:
            Malcolm Edgar
            Reporter:
            Sep
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development