You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org> on 2008/10/22 13:24:44 UTC

[jira] Created: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

XmiCollectionReader fails when it encounters unknown types
----------------------------------------------------------

                 Key: UIMA-1210
                 URL: https://issues.apache.org/jira/browse/UIMA-1210
             Project: UIMA
          Issue Type: New Feature
          Components: Examples
    Affects Versions: 2.2.2
         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
            Reporter: Fabien POULARD
            Priority: Trivial


When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Commented: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650748#action_12650748 ] 

Marshall Schor commented on UIMA-1210:
--------------------------------------

My other problems are probably caused by the patch being generated on a linux platform, and my applying them on a Windows platform.  I can apply them if I download the file, and then tell the system to apply the patch represented by the file.  My usual practice has been

# click on the patch in Firefox - usually this opens the patch in a browser window, but for these patches (I'm guessing due to new lines) it doesn't - instead it gives a "save as" dialog.
# do a "select-all" and "copy to clipboard"
# apply patch from clipboard in Eclipse

To get this to work I did:
# save as some temp file
# apply patch from file, specifying the file saved to.

I'll take a look at the patch (now that I can apply it)  in the next few days as time permits.

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-unknown-types.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Commented: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650543#action_12650543 ] 

Fabien POULARD commented on UIMA-1210:
--------------------------------------

Like UIMA-1206, I generated the patch from the uimaj/trunk/uimaj-examples directory. The patch should work applied from this directory.

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-desc.patch, xmicollectionreader-java.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Updated: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabien POULARD updated UIMA-1210:
---------------------------------

    Attachment:     (was: xmicollectionreader-desc.patch)

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-unknown-types.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Updated: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabien POULARD updated UIMA-1210:
---------------------------------

    Attachment: xmicollectionreader-java.patch
                xmicollectionreader-desc.patch

The two patches attached modify the java class and the descriptor to offer a boolean parameter "FailOnUnknownType" set to true as default.

If the parameter "FailOnUnknownType" is set to true the if the collection reader encounters an unknown type it will fail, otherwise it will silently ignore them.

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-desc.patch, xmicollectionreader-java.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Commented: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650460#action_12650460 ] 

Marshall Schor commented on UIMA-1210:
--------------------------------------

I cannot get the patch applied for the Java file - comparing to other patch files, this one looks like it may be missing a header line?  Can anyone else make this work or figure out what's wrong?

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-desc.patch, xmicollectionreader-java.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Updated: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabien POULARD updated UIMA-1210:
---------------------------------

    Attachment: xmicollectionreader-unknown-types.patch

My bad, the previous patch for the Java file was not the good one. Here is a newly generated patch compiling the two previous as one and that should correctly work if applied from uimaj/trunk/uimaj-examples

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-unknown-types.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Resolved: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor resolved UIMA-1210.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
         Assignee: Fabien POULARD

Thanks for the patch, Fabien.  I applied it with some minor changes.  Can you verify it works?  After you do, please update this issue to closed.

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Assignee: Fabien POULARD
>            Priority: Trivial
>             Fix For: 2.3
>
>         Attachments: xmicollectionreader-unknown-types.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Updated: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabien POULARD updated UIMA-1210:
---------------------------------

    Attachment:     (was: xmicollectionreader-java.patch)

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-unknown-types.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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


[jira] Commented: (UIMA-1210) XmiCollectionReader fails when it encounters unknown types

Posted by "Burn Lewis (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650712#action_12650712 ] 

Burn Lewis commented on UIMA-1210:
----------------------------------

Looks like the patch was computed against the wrong file ... XmiWriterCasConsumer

> XmiCollectionReader fails when it encounters unknown types
> ----------------------------------------------------------
>
>                 Key: UIMA-1210
>                 URL: https://issues.apache.org/jira/browse/UIMA-1210
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: GNU/Linux Ubuntu Hardy Heron 8.04
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Fabien POULARD
>            Priority: Trivial
>         Attachments: xmicollectionreader-desc.patch, xmicollectionreader-java.patch
>
>
> When XmiCollectionReader is used as CollectionReader and it encounters types that are not present in the TypeSystems provided with the analysis engines, then it fails. There should be an option to silently ignore those errors and still load the CAS.

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