Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-15608

When debug through webtier compiler, it generates the file not found exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Web Compilers
    • None
    • Affected OS(s): Windows
      Language Found: English

    Description

      Steps to reproduce:
      1. deploy the latest webtier.war to a tomcat server
      2. add any simple mxml

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF">
      <mx:Button label="Login" />
      </mx:Application>

      3. request the mxml from the browser, such as Sample.mxml and make sure it works

      4. request the same mxml but append "?debug=true", like Sample.mxml?debug=true

      Actual Results: error from the server console

      09/09 12:15:03 ERROR File not found: C:\Programs\Apache\apache-tomcat-6.0.14\webapps\webtier\Sample.mxml.swf.swf
      java.io.FileNotFoundException: File not found: C:\Programs\Apache\apache-tomcat-6.0.14\webapps\webtier\Sample.mxml.swf.swf
      at flex.webtier.server.j2ee.PathValidator.checkFileExists(PathValidator.java:30)
      at flex.webtier.server.j2ee.PrecompileFilter.invoke(PrecompileFilter.java:45)
      at flex.webtier.server.j2ee.BrowserCacheFilter.invoke(BrowserCacheFilter.java:33)
      at flex.webtier.server.j2ee.RecompileFilter.invoke(RecompileFilter.java:29)
      at flex.webtier.server.j2ee.SwfServlet.handlePrecompiledSwfRequest(SwfServlet.java:169)
      at flex.webtier.server.j2ee.SwfServlet.doGet(SwfServlet.java:129)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:106)

      notice the "Sample.mxml.swf.swf" file name

      Expected Results: the request file should be "Sample.mxml.swf" instead

      Workaround (if any): request Sample.mxml.swf?debug=true

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: