[ https://issues.apache.org/jira/browse/JENA-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962468#comment-16962468 ]
Andy Seaborne commented on JENA-1775: ------------------------------------- Workaround: 1/ Add the Java: {{LocationMapper.setGlobalLocationMapper(new LocationMapper());}} 2/ Set the system property: (must not be the empty string) {{-DLocationMap=abc}} > java.nio.file.InvalidPathException: Illegal char <:> at index 4: > file:location-mapping.rdf > ------------------------------------------------------------------------------------------ > > Key: JENA-1775 > URL: https://issues.apache.org/jira/browse/JENA-1775 > Project: Apache Jena > Issue Type: Improvement > Reporter: Andy Seaborne > Assignee: Andy Seaborne > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > Report from [users on > 2019-10-29|https://lists.apache.org/thread.html/b27196cc51fc526c8938740b4b8b6fc697d8c83a3e4749352abf4a18@%3Cusers.jena.apache.org%3E] > This is on Java13, on MS Windows. > {noformat} > ... > Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 4: > file:location-mapping.rdf > at > java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) > at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) > at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) > at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) > at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229) > at java.base/jdk.internal.module.Resources.toSafeFilePath(Resources.java:143) > at java.base/jdk.internal.module.Resources.toFilePath(Resources.java:97) > at > java.base/jdk.internal.module.ModuleReferences$ExplodedModuleReader.find(ModuleReferences.java:382) > at > java.base/jdk.internal.loader.BuiltinClassLoader$2.run(BuiltinClassLoader.java:430) > at > java.base/jdk.internal.loader.BuiltinClassLoader$2.run(BuiltinClassLoader.java:425) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:554) > at > java.base/jdk.internal.loader.BuiltinClassLoader.findMiscResource(BuiltinClassLoader.java:424) > at > java.base/jdk.internal.loader.BuiltinClassLoader.findResource(BuiltinClassLoader.java:311) > at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1400) > at java.base/java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1736) > at > org.apache.jena.core@3.13.1/org.apache.jena.util.LocatorClassLoader.open(LocatorClassLoader.java:63) > at > org.apache.jena.core@3.13.1/org.apache.jena.util.FileManager.openNoMapOrNull(FileManager.java:523) > at > org.apache.jena.core@3.13.1/org.apache.jena.util.FileManager.openNoMap(FileManager.java:506) > at > org.apache.jena.core@3.13.1/org.apache.jena.util.LocationMapper.initFromPath(LocationMapper.java:141) > at > org.apache.jena.core@3.13.1/org.apache.jena.util.LocationMapper.get(LocationMapper.java:70) > at > org.apache.jena.core@3.13.1/org.apache.jena.util.FileManager.makeGlobal(FileManager.java:130) > at > org.apache.jena.core@3.13.1/org.apache.jena.util.FileManager.get(FileManager.java:96) > at > org.apache.jena.arq@3.13.1/org.apache.jena.riot.system.IO_JenaReaders.wireIntoJena(IO_JenaReaders.java:40) > at > org.apache.jena.arq@3.13.1/org.apache.jena.riot.IO_Jena.wireIntoJena(IO_Jena.java:34) > at org.apache.jena.arq@3.13.1/org.apache.jena.riot.RIOT.init(RIOT.java:79) > at > org.apache.jena.arq@3.13.1/org.apache.jena.riot.system.InitRIOT.start(InitRIOT.java:29) > at > org.apache.jena.core@3.13.1/org.apache.jena.sys.JenaSystem.lambda$init$2(JenaSystem.java:117) > at java.base/java.util.ArrayList.forEach(ArrayList.java:1507) > at > org.apache.jena.core@3.13.1/org.apache.jena.sys.JenaSystem.forEach(JenaSystem.java:192) > at > org.apache.jena.core@3.13.1/org.apache.jena.sys.JenaSystem.forEach(JenaSystem.java:169) > at > org.apache.jena.core@3.13.1/org.apache.jena.sys.JenaSystem.init(JenaSystem.java:115) > at > org.apache.jena.core@3.13.1/org.apache.jena.rdf.model.ModelFactory.<clinit>(ModelFactory.java:49) > ... 59 more > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)