Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2257

[REGRESSION] NPEx: Cannot invoke "Object.toString()" because "value" is null

    XMLWordPrintableJSON

Details

    Description

      On upgrading from 3.4.0 to 3.5.0 (so it works fine in 3.4.0), build breaks with following:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.20.0:site (default-site) on project X: Failed to render site: Error generating maven-surefire-report-plugin:3.5.0:report-only report: Cannot invoke "Object.toString()" because "value" is null -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.20.0:site (default-site) on project X: Failed to render site
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
          at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
          at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
          at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
          at java.lang.reflect.Method.invoke (Method.java:580)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to render site
          at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:119)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
          at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
          at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
          at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
          at java.lang.reflect.Method.invoke (Method.java:580)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
      Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error generating maven-surefire-report-plugin:3.5.0:report-only report
          at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:210)
          at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render (DefaultSiteRenderer.java:300)
          at org.apache.maven.plugins.site.render.SiteMojo.renderNonDoxiaDocuments (SiteMojo.java:282)
          at org.apache.maven.plugins.site.render.SiteMojo.renderLocale (SiteMojo.java:147)
          at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:112)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
          at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
          at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
          at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
          at java.lang.reflect.Method.invoke (Method.java:580)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
      Caused by: java.lang.NullPointerException: Cannot invoke "Object.toString()" because "value" is null
          at org.apache.maven.doxia.sink.impl.SinkUtils.getAttributeString (SinkUtils.java:188)
          at org.apache.maven.doxia.sink.impl.AbstractXmlSink.writeStartTag (AbstractXmlSink.java:126)
          at org.apache.maven.doxia.sink.impl.Xhtml5BaseSink.writeStartTag (Xhtml5BaseSink.java:1647)
          at org.apache.maven.doxia.sink.impl.AbstractXmlSink.writeStartTag (AbstractXmlSink.java:95)
          at org.apache.maven.doxia.sink.impl.Xhtml5BaseSink.anchor (Xhtml5BaseSink.java:1204)
          at org.apache.maven.doxia.sink.impl.AbstractSink.anchor (AbstractSink.java:354)
          at org.apache.maven.reporting.AbstractMavenReportRenderer.startSection (AbstractMavenReportRenderer.java:132)
          at org.apache.maven.reporting.AbstractMavenReportRenderer.startSection (AbstractMavenReportRenderer.java:116)
          at org.apache.maven.plugins.surefire.report.SurefireReportRenderer.renderSectionPackages (SurefireReportRenderer.java:220)
          at org.apache.maven.plugins.surefire.report.SurefireReportRenderer.renderBody (SurefireReportRenderer.java:119)
          at org.apache.maven.reporting.AbstractMavenReportRenderer.render (AbstractMavenReportRenderer.java:93)
          at org.apache.maven.plugins.surefire.report.AbstractSurefireReport.executeReport (AbstractSurefireReport.java:159)
          at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:354)
          at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:199)
          at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render (DefaultSiteRenderer.java:300)
          at org.apache.maven.plugins.site.render.SiteMojo.renderNonDoxiaDocuments (SiteMojo.java:282)
          at org.apache.maven.plugins.site.render.SiteMojo.renderLocale (SiteMojo.java:147)
          at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:112)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
          at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
          at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
          at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
          at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
          at java.lang.reflect.Method.invoke (Method.java:580)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
      

      maven 3.9.3, jdk 21

      # only skipped commits left to test
      # possible first bad commit: [05e4681f38f53c2a54b7671291ca02dc63586a98] [SUREFIRE-2227] Dynamically calculate xrefTestLocation
      # possible first bad commit: [f1a419a1457e5a83f9deb07a700a1376487f72ed] [SUREFIRE-2228] Upgrade to Doxia 2.0.0 Milestone Stack
      

      (f1a419a1 failed to compile)

      Attachments

        1. surefire-3.5.0-2-g69c1b46d8.png
          17 kB
          Piotr Zygielo
        2. screenshot-2.png
          80 kB
          Michael Osipov
        3. screenshot-1.png
          155 kB
          Michael Osipov
        4. 3.4.0-surefire-report.png
          19 kB
          Piotr Zygielo

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              pzygielo Piotr Zygielo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: