ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fedor Nikolaev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CTAKES-388) URI is not hierarchical when attempting to obtain LookupDesc_Db.xml within JAR
Date Fri, 27 Nov 2015 03:16:11 GMT

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

Fedor Nikolaev commented on CTAKES-388:

How this is supposed to work?
      InputStream lookUpStream = UmlsDictionaryLookupAnnotator.class.getClassLoader().getResourceAsStream("org/apache/ctakes/dictionary/lookup/LookupDesc_Db.xml");{code}
when resources are not copied to jar in ctakes-dictionary-lookup-res?
			          <!-- Dictionary lookup Resources that are unpacked
			          automatically by maven
			          	are not jar'd and included in the bin distro
			          	by default please download them from SF if needed. 
Right now I am having NullPointerException when I am running {{mvn exec:java -Dexec.mainClass=org.apache.ctakes.clinicalpipeline.ClinicalPipelineFactory}}
because of this.

> URI is not hierarchical when attempting to obtain LookupDesc_Db.xml within JAR
> ------------------------------------------------------------------------------
>                 Key: CTAKES-388
>                 URL: https://issues.apache.org/jira/browse/CTAKES-388
>             Project: cTAKES
>          Issue Type: Improvement
>          Components: ctakes-dictionary-lookup
>    Affects Versions: 3.2.2
>         Environment: MacOSX 10.9.5, cTAKES 3.2.3-SNAPSHOT, Apache Spark 1.5.1, Apache
Hadoop 2.4.0
>            Reporter: Lewis John McGibbney
>             Fix For: 3.2.3
>         Attachments: CTAKES-388.patch
> This issue is extremely similar to CTAKES-385 where the is an attempt to load a resource
(in this case LookupDesc_Db.xml) as a File instead of an InputStream.

This message was sent by Atlassian JIRA

View raw message