You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ctakes.apache.org by "Yuriy Toropov (JIRA)" <ji...@apache.org> on 2017/09/03 10:40:02 UTC

[jira] [Commented] (CTAKES-445) java.lang.IllegalArgumentException: URI is not hierarchical - org.apache.ctakes.lvg.resource.LvgCmdApiResourceImpl.load

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

Yuriy Toropov commented on CTAKES-445:
--------------------------------------

Here is a fix which worked for me 

in LvgCmdApiResourceImpl.java in 
public void load(DataResource dr) throws ResourceInitializationException
    {

change  File configFile = new File(dr.getUri());

to

File configFile = new File(dr.getUrl().toExternalForm());

> java.lang.IllegalArgumentException: URI is not hierarchical - org.apache.ctakes.lvg.resource.LvgCmdApiResourceImpl.load
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CTAKES-445
>                 URL: https://issues.apache.org/jira/browse/CTAKES-445
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-lvg
>    Affects Versions: 4.0.0
>            Reporter: James Joseph Masanz
>            Assignee: James Joseph Masanz
>             Fix For: 4.0.1
>
>
> Dima reported this on the dev@ list:
> http://markmail.org/message/l6mct3btk3nb43ld
> http://mail-archives.apache.org/mod_mbox/ctakes-dev/201704.mbox/%3CF00347B9-4228-4407-B566-4EB2774B21B5%40luc.edu%3E
> When using cTAKES as maven dependency and invoking his (Dima's) program using:
> mvn exec:java -Dexec.mainClass=“org.apache.ctakes.pipelines.UmlsLookupPipeline” 
> Not sure which release this originated in. reproduced it in 4.0



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)