You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Chaplin (JIRA)" <ji...@apache.org> on 2019/05/15 06:13:00 UTC

[jira] [Commented] (WW-4970) Struts 2.3.36 - InvalidPathException: Illegal char <:> on JDK 9,10,11 on windows

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

James Chaplin commented on WW-4970:
-----------------------------------

Hello [~broncace] and [~kkleinwi] .

As per the announcements and statements by [~lukaszlenart] and [~yasser.zamani] , it appears there will not be an official fix for the Struts 2.3.x series with respect to this Jira's issue (Java 9-11 and Windows).

A *DEVELOPMENT-ONLY back-port* of relevant "com.opensymphony.xwork2.util.fs" package changes from 2.5.x has been attempted in order to produce a 2.3.38-SNAPSHOT of the xwork-core.jar.  *It is NOT an official build, so +any-and-all-risks of its usage must be accepted by any individuals or organizations that use the unofficial xwork-core.jar+* (+contained in WW-4970_xwork-core-2.3.38-SNAPSHOT-DEVELOPMENT-ONLY.zip attached to this Jira+).  *It is clearly identified as a "SNAPSHOT" release and it must NOT be used in any Production applications - it is only intended for debugging purposes on Windows as per* [~kkleinwi]*'s comment above*.

Using this *development-only* xwork-core-2.3.38-SNAPSHOT.jar to replace the standard one it was possible to launch the Struts 2.3.37 Showcase Application and navigate successfully using Tomcat 8.5/OpenJDK 11.0.2 on Windows 10.  It may or may not help with Windows development debugging needs while migrating from Struts 2.3.x to 2.5.x.

> 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
>
>         Attachments: WW-4970_xwork-core-2.3.38-SNAPSHOT-DEVELOPMENT-ONLY.zip
>
>
> 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)