Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-483

(SwfMacro) org.apache.maven.plugins:maven-site-plugin:3.2:site: org.apache.maven.doxia.module.apt.AptParser cannot be cast to java.lang.String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.4
    • Core
    • None
    • Patch

    Description

      1. Download the attached tgz file
      2. Open a console
      3. Enter "tar xzf DOXIA-SWF-BUG.tgz"
      4. "cd DOXIA-SWF-BUG"
      5. run "mvn -X site"

      Expected:

      • System should generate a cool maven site with a cool embedded movie

      Actual:

      • Doxia crashes with the following Exception
      Caused by: java.lang.ClassCastException: org.apache.maven.doxia.module.apt.AptParser cannot be cast to java.lang.String
      	at org.apache.maven.doxia.macro.SwfMacro.execute(SwfMacro.java:57)
      	at org.apache.maven.doxia.parser.AbstractParser.executeMacro(AbstractParser.java:120)
      	at org.apache.maven.doxia.module.apt.AptParser$MacroBlock.traverse(AptParser.java:2919)
      	at org.apache.maven.doxia.module.apt.AptParser.traverseSectionBlocks(AptParser.java:861)
      	at org.apache.maven.doxia.module.apt.AptParser.traverseSection(AptParser.java:807)
      	at org.apache.maven.doxia.module.apt.AptParser.traverseBody(AptParser.java:758)
      	at org.apache.maven.doxia.module.apt.AptParser.parse(AptParser.java:228)
      	at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:63)
      	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:401)
      	at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:53)
      	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:319)
      	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:135)
      	at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:175)
      	at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:138)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      	... 20 more

      Some of the plugins that I am using are putting a parser variable into one of the maps. This parser variable should be ignored by the SwfMacro but isn't.

      Attachments

        1. Screen Shot 2013-02-22 at 17.56.12.png
          183 kB
          Manuel Blechschmidt
        2. DOXIA-SWF-BUG.tgz
          2 kB
          Manuel Blechschmidt
        3. DOXIA-SWF-BUG.patch
          3 kB
          Manuel Blechschmidt

        Activity

          People

            olamy Olivier Lamy
            manuel_b Manuel Blechschmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: