ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Kurdyumov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CTAKES-361) "URI is not hierarchical" Dependency Parser test failure
Date Thu, 15 Dec 2016 10:45:58 GMT

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

Andrey Kurdyumov commented on CTAKES-361:
-----------------------------------------

During investigation, I find that issue is related to {{ctakes-lvg}} project, in the {{org.apache.ctakes.lvg.resource.LvgCmdApiResourceImpl}}
class.
Method load has following line {{File configFile = new File(dr.getUri());}} which try to resolve
file from {{DataResource.getUrl()}} method.

When running {{mvn package}} value {{jar:file:/C:/Users/my_user/.m2/repository/net/sourceforge/ctakesresources/ctakes-resources-lvg2008/3.2.1.1/ctakes-resources-lvg2008-3.2.1.1.jar!/org/apache/ctakes/lvg/data/config/lvg.properties}}
is returned. This is lead to mentioned exception. From my very shallow understanding of cTakes
I should use {{FileLocator}} class for resolving URL

> "URI is not hierarchical" Dependency Parser test failure
> --------------------------------------------------------
>
>                 Key: CTAKES-361
>                 URL: https://issues.apache.org/jira/browse/CTAKES-361
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-dependency-parser
>    Affects Versions: 3.2.2
>         Environment: java version "1.7.0_55"
> OpenJDK Runtime Environment (IcedTea 2.4.8) (suse-24.17.1-x86_64)
>            Reporter: Jeremy Yang
>
> Today tried both 3.2.2-rc2 and fresh trunk pull, same error.  If I am missing something
obvious, sorry!  Not using pre-built apache-ctakes-3.2.1 due to licensing bug (IsValidUmlsUser
check) confirmed via UMLS Customer Support.
> Log:
> $ cat org.apache.ctakes.dependency.parser.ae.util.TestClearNLPAnalysisEngines.txt
> -------------------------------------------------------------------------------
> Test set: org.apache.ctakes.dependency.parser.ae.util.TestClearNLPAnalysisEngines
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.619 sec <<<
FAILURE!
> TestClearNLPPipeLine(org.apache.ctakes.dependency.parser.ae.util.TestClearNLPAnalysisEngines)
 Time elapsed: 1.573 sec  <<< ERROR!
> java.lang.IllegalArgumentException: URI is not hierarchical
>         at java.io.File.<init>(File.java:418)
>         at org.apache.ctakes.lvg.resource.LvgCmdApiResourceImpl.load(LvgCmdApiResourceImpl.java:65)
>         at org.apache.uima.resource.impl.ResourceManager_impl.registerResource(ResourceManager_impl.java:603)
>         at org.apache.uima.resource.impl.ResourceManager_impl.initializeExternalResources(ResourceManager_impl.java:442)
>         at org.apache.uima.resource.Resource_ImplBase.initialize(Resource_ImplBase.java:153)
>         at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:157)
>         at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:123)
>         at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>         at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>         at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:269)
>         at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:387)
>         at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:254)
>         at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:431)
>         at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:375)
>         at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:185)
>         at org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine(AnalysisEngineFactory.java:711)
>         at org.apache.uima.fit.factory.AggregateBuilder.createAggregate(AggregateBuilder.java:207)
>         at org.apache.ctakes.dependency.parser.ae.util.TestClearNLPAnalysisEngines.TestClearNLPPipeLine(TestClearNLPAnalysisEngines.java:113)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message