Uploaded image for project: 'Maven Doxia Sitetools'
  1. Maven Doxia Sitetools
  2. DOXIASITETOOLS-177

Use of commons-lang 2 causes failure with JDK 9 b175+

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.4
    • 1.7.5
    • Site renderer
    • None

    Description

      When doing a release of a Maven project, I get the stacktrace below. Since JDK 9 b175, the java.version system property is simply "9". However, Doxia depends on commons-lang 2.4, which assumes java.version has at least 3 characters.

      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:181)
      	... 21 more
      Caused by: java.lang.ExceptionInInitializerError
      	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.generateDocument(DefaultSiteRenderer.java:732)
      	at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:268)
      	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:337)
      	at org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:178)
      	at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:132)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	... 21 more
      Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
      	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
      	at java.base/java.lang.String.substring(String.java:1885)
      	at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133)
      	at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818)
      	... 27 more

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              anthonyv.be Anthony Vanelverdinghe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: