Andy,

While working on generating my own FileManager, I tried to print the 
LocatorFile in the default FileManager (FileManager.get()). Its 
Object.hashCode() implementation doesn't check for there not being an altDir, 
which apparently is the case for the default instance. Result: 
NullPointerException, LocatorFile.java, line 95.

Dave

-----Original Message-----
From: Andy Seaborne [mailto:[email protected]] On Behalf Of Andy 
Seaborne
Sent: Monday, September 10, 2012 4:27 PM

> 3. A request, rather than a comment. During my debugging, one thing 
> Iwas seeing is a long, long pause while Jena goes out to the web after 
> unsuccessfully looking for a local ontology cached in the 
> OntDocumentManager (via loadImport). It would have helped during 
> debugging this if I knew how to set either the OntDocumentManager or 
> the FileManager to say "all my ontologies are cached in the 
> OntDocumentManager, so if you see yourself going out to the web, throw 
> an exception immediately, rather than even trying to connect." The 
> users of this software will be in an environment where every ontology 
> used is locally cached.

Is this from code?  You can build your own FileManager and not include the URL 
locator, then it will not go to the web (c.f. Fuseki protects local files by 
creating a FileManger that does not access local files).

        Andy

Reply via email to