Tapestry
  1. Tapestry
  2. TAPESTRY-2118

ComponentReport.extractSubpackage throws ArrayOutOfBoundException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.10
    • Component/s: component-report
    • Labels:
      None

      Description

      if the rootPackage contains classes the plugin tries to evaluate this and throws such exception

      org.apache.maven.lifecycle.LifecycleExecutionException: Error during page generation
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
      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:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      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)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page generation
      at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:101)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      ... 16 more
      Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error rendering Maven report: String index out of range: -26
      at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:149)
      at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
      at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
      at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129)
      at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
      ... 18 more
      Caused by: org.apache.maven.reporting.MavenReportException: String index out of range: -26
      at org.apache.tapestry.mojo.ComponentReport.executeReport(ComponentReport.java:231)
      at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
      at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
      ... 22 more
      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -26
      at java.lang.String.substring(String.java:1768)
      at org.apache.tapestry.mojo.ComponentReport.extractSubpackage(ComponentReport.java:241)
      at org.apache.tapestry.mojo.ComponentReport.executeReport(ComponentReport.java:185)
      ... 24 more

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568511 ] jira [ 12591559 ]
        Mark Thomas made changes -
        Workflow jira [ 12422622 ] Default workflow, editable Closed status [ 12568511 ]
        Howard M. Lewis Ship made changes -
        Fix Version/s 5.0.10 [ 12312936 ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Howard M. Lewis Ship made changes -
        Issue Type Improvement [ 4 ] Bug [ 1 ]
        Summary methode ComponentReport.extractSubpackage throws ArrayOutOfBoundException ComponentReport.extractSubpackage throws ArrayOutOfBoundException
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Sven Homburg created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Sven Homburg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development