You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2011/01/20 16:19:47 UTC

[jira] Created: (UIMA-2012) Handling of imported type systems causes error

Handling of imported type systems causes error
----------------------------------------------

                 Key: UIMA-2012
                 URL: https://issues.apache.org/jira/browse/UIMA-2012
             Project: UIMA
          Issue Type: Bug
          Components: CasEditor
            Reporter: Peter Klügl
            Priority: Minor


When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Nils Reiter (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012395#comment-13012395 ] 

Nils Reiter commented on UIMA-2012:
-----------------------------------

I can confirm this even if the type systems are imported by name.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann closed UIMA-2012.
-------------------------------


> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021508#comment-13021508 ] 

Jörn Kottmann commented on UIMA-2012:
-------------------------------------

It should be fixed now. The type system relative path was set incorrectly to new File(""), instead of the actual type system file in the workspace.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023187#comment-13023187 ] 

Jörn Kottmann commented on UIMA-2012:
-------------------------------------

Yes, I believe it would also be nice if that code can be shared between CDE and the Cas Editor.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann updated UIMA-2012:
--------------------------------

    Fix Version/s: 2.3.2SDK

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022714#comment-13022714 ] 

Richard Eckart de Castilho commented on UIMA-2012:
--------------------------------------------------

Seems to work for me as well for the import-by-location case.

It would still be helpful if the CAS Viewer would also look up import-by-name via the Java Build Path and Java Dependencies of the project containing the XMI file if it is a Java project. Do you want to open a new issue on that as you already want to close this one?

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023182#comment-13023182 ] 

Jörn Kottmann commented on UIMA-2012:
-------------------------------------

It is a big issue actually if the Cas Editor depends on JDT, because then RCP applications which reuse it also need to depend on JDT, etc. We would need to find a nice solution to this problem.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015455#comment-13015455 ] 

Jörn Kottmann commented on UIMA-2012:
-------------------------------------

"It's a Cas Editor project. Looks to me (without knowing the code) that the "resolve imports" is missing and therefore the first problem occurs." (Peter Klügl)

I checked that and it looks like resolveImports is called, I will try to reproduce the problem and report back here.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020980#comment-13020980 ] 

Jörn Kottmann commented on UIMA-2012:
-------------------------------------

I would like to look at your import. Maybe you can post it here.

Do you use an absolute or relative import?

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023185#comment-13023185 ] 

Richard Eckart de Castilho commented on UIMA-2012:
--------------------------------------------------

It'd probably be a good idea to close this issue then and track this in a new issue. I could imagine that the CAS Editor provides an extension point where resource resolves could register themselves. A second plugin could then act as an adapter between JDT projects and the CAS Editor by hooking up to that extension point.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann resolved UIMA-2012.
---------------------------------

    Resolution: Fixed
      Assignee: Jörn Kottmann

Should be tested by someone else, and then the issue can be closed.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021012#comment-13021012 ] 

Richard Eckart de Castilho commented on UIMA-2012:
--------------------------------------------------

In the case of the import-by-location, it is a relative import:

{code}
<imports>
    <import location="../../../../../../BasicTypeSystem.xml"/>
</imports>
{code}

I can open the type system that contains this import nicely in the Component Description Editor.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023145#comment-13023145 ] 

Jörn Kottmann commented on UIMA-2012:
-------------------------------------

The type system is searched for on the data path and the class path in the import for name case. Both are currently not set. CDE defines a property page to set the data path per project, that could be done by the Cas Editor also.

I would like to avoid to use the java project class path, because that means that the Cas Editor needs to depend on the JDT plugin, right? 

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (UIMA-2012) Handling of imported type systems causes error

Posted by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020615#comment-13020615 ] 

Richard Eckart de Castilho edited comment on UIMA-2012 at 4/16/11 2:32 PM:
---------------------------------------------------------------------------

I have a similar - possibly the same problem:

I try to open an XMI which uses a type system that imports another type system. To me it looks like the imports are resolved relative to the Eclipse home directory (instead of relative to the actual descriptor file) for import-by-location and that source paths on a Java project are also ignored.

There the error message for an import-by-location:

Could not open the editor: Import failed.  Could not read from URL file:/../../BasicTypeSystem.xml. (Descriptor: file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS

Here for an import-by-name (even though the BasicTypeSystem.xml is in a folder declared as a Java source folder in the same project containing the XMI):

Could not open the editor: An import could not be resolved.  No .xml file with name "BasicTypeSystem" was found in the class path or data path. (Descriptor: file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS)

I am using the 2.3.2-SNAPSHOT version (rev. 1091767) of the UIMA Eclipse Plugins on a non-CAS-editor project.

      was (Author: eckart):
    I have a similar - possibly the same problem:

I try to open an XMI which uses a type system that imports another type system. To me it looks like the imports are resolved relative to the Eclipse home directory (instead of relative to the actual descriptor file) for import-by-location and that source paths on a Java project are also ignored.

There the error message for an import-by-location:

Could not open the editor: Import failed.  Could not read from URL file:/../../BasicTypeSystem.xml. (Descriptor: file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS

Here for an import-by-name (even though the BasicTypeSystem.xml is in a folder declared as a Java source folder in the same project containing the XMI):

Could not open the editor: An import could not be resolved.  No .xml file with name "BasicTypeSystem" was found in the class path or data path. (Descriptor: file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS)


  
> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023177#comment-13023177 ] 

Richard Eckart de Castilho commented on UIMA-2012:
--------------------------------------------------

I would prefer not having to maintain the datapath setting, in particular since I have a large number of Maven projects using UIMA and I rely very much on the dependency resolution of Maven. Also, I believe if I point the datapath to a JAR, it'd might not be able to locate the type system descriptions within.

The Component Description Editor seems to be able to locate descriptors for import-by-name via the classpath of a Java project. E.g. when I navigate to my uimaFIT project, open the NoOpAnnotator.xml in the CDE, go to the type systems tab and press "add", I can see a list of all XML files reachable from the that project via the classpath, i.e. XML files in uimaFIT, uimaj-tools, etc.

The CDE does indeed import JDT packages in its plugin.xml.

> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Assignee: Jörn Kottmann
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (UIMA-2012) Handling of imported type systems causes error

Posted by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020615#comment-13020615 ] 

Richard Eckart de Castilho commented on UIMA-2012:
--------------------------------------------------

I have a similar - possibly the same problem:

I try to open an XMI which uses a type system that imports another type system. To me it looks like the imports are resolved relative to the Eclipse home directory (instead of relative to the actual descriptor file) for import-by-location and that source paths on a Java project are also ignored.

There the error message for an import-by-location:

Could not open the editor: Import failed.  Could not read from URL file:/../../BasicTypeSystem.xml. (Descriptor: file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS

Here for an import-by-name (even though the BasicTypeSystem.xml is in a folder declared as a Java source folder in the same project containing the XMI):

Could not open the editor: An import could not be resolved.  No .xml file with name "BasicTypeSystem" was found in the class path or data path. (Descriptor: file:/Applications/eclipse 3.6.0-cocoa-64/Eclipse.app/Contents/MacOS)



> Handling of imported type systems causes error
> ----------------------------------------------
>
>                 Key: UIMA-2012
>                 URL: https://issues.apache.org/jira/browse/UIMA-2012
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>            Reporter: Peter Klügl
>            Priority: Minor
>             Fix For: 2.3.2SDK
>
>
> When opening a XMI with a type system that imports other type systems (by location), the editor displays an error. This problem occurs, if XMI contains data of types that are specified in the imported type systems. May be related to UIMA-2011.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira