[ https://issues.apache.org/jira/browse/JENA-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345720#comment-14345720 ]
Andy Seaborne commented on JENA-889: ------------------------------------ I have tried 2.12.1 with success. What's the exact stacktrace you get? A slightly modified program: {noformat} static { LogCtl.setCmdLogging();} public static void main(String[] args) { System.out.println("Jena="+Jena.VERSION) ; System.out.println("ARQ="+ARQ.VERSION) ; System.out.println("RIOT="+RIOT.VERSION) ; Model m = RDFDataMgr.loadModel("location-mapping.ttl") ; FileManager.get().getLocationMapper().processConfig(m); Model m2 = ModelFactory.createDefaultModel() ; FileManager.get().readModel(m2, "file:foo.n3") ; System.out.println("DONE") ; } {noformat} If "foo.ttl", exists in the current directory, I get: {noformat} Jena=2.12.1 ARQ=2.12.1 RIOT=2.12.1 DONE {noformat} with either "file:foo.ttl" or "foo.ttl". If "foo.ttl" does not exist, I get: {noformat} Jena=2.12.1 ARQ=2.12.1 RIOT=2.12.1 Exception in thread "main" org.apache.jena.riot.RiotNotFoundException: Not found: file:foo.ttl at org.apache.jena.riot.RDFDataMgr.open(RDFDataMgr.java:870) at org.apache.jena.riot.RDFDataMgr.open(RDFDataMgr.java:852) at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:684) at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:210) at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:143) at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:132) at org.apache.jena.riot.adapters.AdapterFileManager.readModelWorker(AdapterFileManager.java:283) at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:344) at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:328) at dev.Report.main(Report.java:40) {noformat} which is correct. Having "foo.ttl" for "file:foo.ttl" in location mapping changes the "Not found" accordingly. I do have to align the "file:foo.n3" with the location mapping file. Ubuntu 14.10 openjdk version "1.8.0_40-internal" OpenJDK Runtime Environment (build 1.8.0_40-internal-b09) OpenJDK 64-Bit Server VM (build 25.40-b13, mixed mode) > FileManager/LocationMapper does not work with file: prefix for > LocatorClassLoader > --------------------------------------------------------------------------------- > > Key: JENA-889 > URL: https://issues.apache.org/jira/browse/JENA-889 > Project: Apache Jena > Issue Type: Bug > Components: Jena > Affects Versions: Jena 2.12.1 > Reporter: Jan Vlug > > I tried to use a LocationMapper configuration file as described at: > https://jena.apache.org/documentation/notes/file-manager.html. This worked > fine in an old Jena version. But now I upgraded to 2.12.1 it seems that I > have to omit the file: prefix in the mapped URL. -- This message was sent by Atlassian JIRA (v6.3.4#6332)