struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Klein (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4970) Struts 2.3.36 - InvalidPathException: Illegal char <:> on JDK 9,10,11 on windows
Date Tue, 23 Apr 2019 18:25:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16824407#comment-16824407
] 

Kevin Klein commented on WW-4970:
---------------------------------

This is a huge support issue because it prevents you from running any Struts 2.3 application
under Java 11 on Windows. Our production Linux servers run Java 11 & Struts 2.3 just fine,
but due to this bug, debugging any problems with that configuration is impossible.

We do have plans to eventually migrate everything to Struts 2.5, but that will take time.
In the meantime, we'd rather not have to hold up our Java upgrades due to this.

 

 

> Struts 2.3.36 - InvalidPathException: Illegal char <:> on JDK 9,10,11 on windows
> --------------------------------------------------------------------------------
>
>                 Key: WW-4970
>                 URL: https://issues.apache.org/jira/browse/WW-4970
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.3.36
>            Reporter: Brice Roncace
>            Priority: Major
>              Labels: Java10, Java11, java9
>             Fix For: 2.3.37
>
>
> This issue was fixed in Struts 2.5.14 but the fix never made it to the Struts 2.3 branch.
> {code:java}
> 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)
> {code}
>  
> Running on JDK 11
> {code:java}
> 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){code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message