Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4970

Struts 2.3.36 - InvalidPathException: Illegal char <:> on JDK 9,10,11 on windows

    XMLWordPrintableJSON

Details

    Description

      This issue was fixed in Struts 2.5.14 but the fix never made it to the Struts 2.3 branch.

      java.nio.file.InvalidPathException: Illegal char <:> at index 3: jar:file:\C:\development\projects\AcademyIntegration\AcademyIntegration\target\AcademyIntegration-0.1\WEB-INF\lib\struts2-core-2.3.36.jar
          java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
          java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
          java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
          java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
          java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
          java.base/java.io.File.toPath(File.java:2290)
          java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1222)
          java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
          java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
          java.base/java.util.zip.ZipFile.<init>(ZipFile.java:246)
          java.base/java.util.zip.ZipFile.<init>(ZipFile.java:176)
          java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
          java.base/java.util.jar.JarFile.<init>(JarFile.java:317)
          java.base/java.util.jar.JarFile.<init>(JarFile.java:256)
          com.opensymphony.xwork2.util.fs.JarEntryRevision.needsReloading(JarEntryRevision.java:76)
          com.opensymphony.xwork2.util.fs.DefaultFileManager.fileNeedsReloading(DefaultFileManager.java:66)
          com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:397)
          org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:169)
          com.opensymphony.xwork2.config.ConfigurationManager.needReloadContainerProviders(ConfigurationManager.java:215)
          com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:179)
          com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:73)
          org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:978)
          org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:81)
          org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:89)
          org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
          org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
          org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:186)
          org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
          org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
          org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
          org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)
          org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
      
      

       

      Running on JDK 11

      C:\>java -version
      openjdk version "11" 2018-09-25
      OpenJDK Runtime Environment 18.9 (build 11+28)
      OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              broncace Brice Roncace
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: