[
https://issues.apache.org/jira/browse/UIMA-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Eckart de Castilho resolved UIMA-4080.
----------------------------------------------
Resolution: Fixed
> NPE when limiting to project and importing descriptor from dependency
> ---------------------------------------------------------------------
>
> Key: UIMA-4080
> URL: https://issues.apache.org/jira/browse/UIMA-4080
> Project: UIMA
> Issue Type: Bug
> Components: jcasgen-maven-plugin
> Affects Versions: 2.6.0SDK
> Reporter: Richard Eckart de Castilho
> Assignee: Richard Eckart de Castilho
> Fix For: 2.6.1SDK
>
>
> When a project has limitToProject enabled and a type system descriptor
> imports another descriptor from a JAR file that is a dependency of the
> project, then an NPE is triggered:
> {noformat}
> Caused by: java.lang.NullPointerException
> at org.apache.uima.tools.jcasgen.Jg.isOutOfScope(Jg.java:723)
> at
> org.apache.uima.tools.jcasgen.Jg.generateAllTypesFromTemplates(Jg.java:630)
> at org.apache.uima.tools.jcasgen.Jg.main1(Jg.java:565)
> at org.apache.uima.tools.jcasgen.Jg.main0(Jg.java:418)
> at
> org.apache.uima.tools.jcasgen.maven.JCasGenMojo.execute(JCasGenMojo.java:198)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
> ... 20 more
> {noformat}
> The reason is that the imported type system has a URI like
> "jar:file:.../third-party.jar!/desc/type/ImportedTypeSystem.xml" which
> translates to a path value of "null" because it does not reside on the file
> system.
> In such a case, the TSD should simply be considered to be out-of-project.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)