You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ctakes.apache.org by "Hadrian Zbarcea (JIRA)" <ji...@apache.org> on 2017/06/27 22:53:00 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=16065630#comment-16065630 ]
Hadrian Zbarcea commented on CTAKES-445:
----------------------------------------
I just wanted to report this, but I see that it's already been reported. I see the same issue.
The problem is in LvgCmdApiResourceImpl.load(DataResource) and it happens when File.getPath is called for a resource embedded in a jar. FWIW, the file in question is: {{file:/home/hadrian/.m2/repository/net/sourceforge/ctakesresources/ctakes-resources-lvg2008/4.0.0/ctakes-resources-lvg2008-4.0.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties}}
There are a few fixes, none of the quick ones I really like. The correct approach (and the more elaborate fix) would have been to use getResource(), but I am not familiar enough to cTakes to understand the ramifications of that. By looking at the code it kinda looks to me that {{lvg.properties}} was only intended to be read from a file system.
I'll dig a bit more and come up with at least a temporary fix.
> 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)