jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Harsch <harschw...@yahoo.com>
Subject Re: bug in FileManager
Date Tue, 08 Mar 2011 18:10:40 GMT
That was what I was able to garner from it as well.  My question now is: why did leaving of
the "file:" scheme work for other files and fail on just one?  It seems inconsistent.

Thanks,
Tim



________________________________
From: Andy Seaborne <andy.seaborne@epimorphics.com>
>To: jena-users@incubator.apache.org
>Sent: Tuesday, March 8, 2011 8:57 AM
>Subject: Re: bug in FileManager
>
>It's because
>
>"C:\wspaces\eclipse\..."
>
>looks like an URI, with scheme name "C".  So adding "file:" works 
>because it moves that off the front of the string.
>
>    Andy
>
>On 08/03/11 16:13, Tim Harsch wrote:
>> FileManager.loadModel has this in the javadoc
>> @param filenameOrURI The filename or a URI (file:, http:)
>>
>> So I added the "file:" to my absolute path and lo and behold it works ;-)  But I
guess my question becomes: if the scheme "file:" is required then why doesn't the method fail
fast?
>>
>>
>>
>> ________________________________
>> From: Tim Harsch<harschware@yahoo.com>
>>> To: JENA-USERS<jena-users@incubator.apache.org>
>>> Sent: Tuesday, March 8, 2011 7:44 AM
>>> Subject: bug in FileManager
>>>
>>>
>>>
>>> Hi,
>>> I have some code which calls:
>>> FileManager.get().readModel(curModel, file);
>>>
>>> where curModel is a Model and file is a String
>>>
>>>
>>> After successfully being called about 5 times with file names built in the same
way it chokes on this particular file.  Note is an absolute pathname of the Windows style.
 I'm using Jena 2.6.4
>>>
>>> I recall Andy posting about some filename and URL processing modifications he
made, could this be related to that?  If so, when will it be released, or should I work from
the latest SNAPSHOT?
>>>
>>> org.openjena.riot.RiotException:<C:\wspaces\eclipse\cray\tests\OntologyExtractor\target\test-classes\data\TestOntologyExtract\Test1d\typesData.nt>
 Code: 11/LOWERCASE_PREFERRED in SCHEME: lowercase is preferred in this component
>>> at org.openjena.riot.system.IRIResolver.exceptions(IRIResolver.java:256)
>>> at org.openjena.riot.system.IRIResolver.access$100(IRIResolver.java:24)
>>> at org.openjena.riot.system.IRIResolver$IRIResolverNormal.resolveToString(IRIResolver.java:380)
>>> at org.openjena.riot.system.IRIResolver.resolveGlobalToString(IRIResolver.java:78)
>>> at org.openjena.riot.system.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)
>>> at org.openjena.riot.system.JenaReaderRIOT.read(JenaReaderRIOT.java:79)
>>> at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
>>> at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2148)
>>> at com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:395)
>>> at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:335)
>>> at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:319)
>>> at com.cray.km.drivers.OntologySearch.createComprehensiveOntology(OntologySearch.java:52)
>>> at com.cray.km.tests.drivers.TestOntologyExtract.Test1d(TestOntologyExtract.java:62)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>>> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>>> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>>> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>>> at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
>>> at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
>>> at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
>>> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
>>> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>>> at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
>>> at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>>> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
>>> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
>>> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>>> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message