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

FAQ section without question ends up in NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0-alpha-10
    • Fix Version/s: None
    • Component/s: Module - Fml
    • Labels:
      None

      Description

      This happened during a release:perform

      [INFO] [site:site]
      [WARNING] Unable to load parent project from repository: Could not find the model file '/home/jerome/Code/OSS/m2/mojo/keytool-maven-plugin/target/checkout/../pom.xml'.
      [INFO] Skipped "Maven Surefire Report" report, file "surefire-report.html" already exists for the English version.
      [INFO] Skipped "About" report, file "index.html" already exists for the English version.
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at org.apache.maven.doxia.module.fml.FmlParser.createSink(FmlParser.java:270)
      at org.apache.maven.doxia.module.fml.FmlParser.parse(FmlParser.java:61)
      at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52)
      at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:264)
      at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:43)
      at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239)
      at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115)
      at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
      at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6 minutes 48 seconds
      [INFO] Finished at: Wed Jan 30 22:46:46 GMT+01:00 2008
      [INFO] Final Memory: 35M/108M
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      This faq should help reproducing the pb:

      <?xml version="1.0"?>
      <faqs id="FAQ" title="Frequently Asked Questions">

      <part id="General">

      <!--faq id="dummy_question">
      <question>Why this question ?</question>
      <answer>
      <p>
      To avoid an NPE in the FAQ site renderer...
      </p>
      </answer>
      </faq-->
      </part>

      </faqs>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ltheussl Lukas Theussl
                Reporter:
                lacostej Jerome Lacoste
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: