You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2014/11/01 19:01:33 UTC

[jira] [Created] (UIMA-4080) NPE when limiting to project and importing descriptor from dependency

Richard Eckart de Castilho created UIMA-4080:
------------------------------------------------

             Summary: 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)