You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Michael Baessler (JIRA)" <ui...@incubator.apache.org> on 2008/03/12 17:00:47 UTC

[jira] Created: (UIMA-893) annotation viewer throws FileNotFoundException

annotation viewer throws FileNotFoundException
----------------------------------------------

                 Key: UIMA-893
                 URL: https://issues.apache.org/jira/browse/UIMA-893
             Project: UIMA
          Issue Type: Bug
          Components: Tools
    Affects Versions: 2.2.1
            Reporter: Michael Baessler
            Assignee: Adam Lally
             Fix For: 2.2.2



The exception occurred when clicking "Edit Style Map"

The descriptor that the annotation viewer search for was not used within the annotation viewer.

java.io.FileNotFoundException: D:\code\apache\apache-uima\examples\descriptors\analysis_engine\PersonTitleAnnotator.xml (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at java.net.URL.openStream(URL.java:1007)
        at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:114)
        at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:63)
        at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.promptForAE(AnnotationViewerDialog.java:663)
        at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.actionPerformed(AnnotationViewerDialog.java:328)

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


[jira] Closed: (UIMA-893) annotation viewer throws FileNotFoundException

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

Michael Baessler closed UIMA-893.
---------------------------------

    Resolution: Invalid

User error.

The annotation viewer stores some settings using Java Preferences. 

These preferences are stored on windows in the registry at:
HKEY_CURRENT_USER/Software/JavaSoft/Pref

On Linux the preferences are stored at:
<USER_HOME>/.java/.userPrefs

After deleting the old preferences and try again with a clean setup, all works fine.

> annotation viewer throws FileNotFoundException
> ----------------------------------------------
>
>                 Key: UIMA-893
>                 URL: https://issues.apache.org/jira/browse/UIMA-893
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.2.1
>            Reporter: Michael Baessler
>            Assignee: Adam Lally
>             Fix For: 2.2.2
>
>
> The exception occurred when clicking "Edit Style Map"
> The descriptor that the annotation viewer search for was not used within the annotation viewer.
> java.io.FileNotFoundException: D:\code\apache\apache-uima\examples\descriptors\analysis_engine\PersonTitleAnnotator.xml (The system cannot find the path specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at java.io.FileInputStream.<init>(FileInputStream.java:66)
>         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>         at java.net.URL.openStream(URL.java:1007)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:114)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:63)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.promptForAE(AnnotationViewerDialog.java:663)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.actionPerformed(AnnotationViewerDialog.java:328)

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


[jira] Commented: (UIMA-893) annotation viewer throws FileNotFoundException

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579552#action_12579552 ] 

Adam Lally commented on UIMA-893:
---------------------------------

I couldn't reproduce this.  Can you provide more information?  Here's what I did:

>From a fresh UIMA install, I first ran the DocumentAnalyzer in order to generate some analysis results.  I ran the PersonTitleAnnotator.xml AE from the uima examples, and put the results into apache-uima/examples/data/processed.

I then ran the AnnotationViewer, selected apache-uima/examples/data/processed as the input directory, and the PersonTitleAnnotator.xml as the "Type System or AE Descriptor File".  I clicked "View" and then on the next dialog clicked "Edit Style Map".  The Style Map Editor dialog appeared, without any error.

> annotation viewer throws FileNotFoundException
> ----------------------------------------------
>
>                 Key: UIMA-893
>                 URL: https://issues.apache.org/jira/browse/UIMA-893
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.2.1
>            Reporter: Michael Baessler
>            Assignee: Adam Lally
>             Fix For: 2.2.2
>
>
> The exception occurred when clicking "Edit Style Map"
> The descriptor that the annotation viewer search for was not used within the annotation viewer.
> java.io.FileNotFoundException: D:\code\apache\apache-uima\examples\descriptors\analysis_engine\PersonTitleAnnotator.xml (The system cannot find the path specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at java.io.FileInputStream.<init>(FileInputStream.java:66)
>         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>         at java.net.URL.openStream(URL.java:1007)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:114)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:63)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.promptForAE(AnnotationViewerDialog.java:663)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.actionPerformed(AnnotationViewerDialog.java:328)

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


[jira] Commented: (UIMA-893) annotation viewer throws FileNotFoundException

Posted by "Michael Baessler (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581932#action_12581932 ] 

Michael Baessler commented on UIMA-893:
---------------------------------------

I tried to delete the stored annotation viewer preferences but it seems that there is another place where the preferences are stored since the result is the same and the entries in the style editor are still available.

Where do I delete all the stored preferences for the annotator viewer?

> annotation viewer throws FileNotFoundException
> ----------------------------------------------
>
>                 Key: UIMA-893
>                 URL: https://issues.apache.org/jira/browse/UIMA-893
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.2.1
>            Reporter: Michael Baessler
>            Assignee: Adam Lally
>             Fix For: 2.2.2
>
>
> The exception occurred when clicking "Edit Style Map"
> The descriptor that the annotation viewer search for was not used within the annotation viewer.
> java.io.FileNotFoundException: D:\code\apache\apache-uima\examples\descriptors\analysis_engine\PersonTitleAnnotator.xml (The system cannot find the path specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at java.io.FileInputStream.<init>(FileInputStream.java:66)
>         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>         at java.net.URL.openStream(URL.java:1007)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:114)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:63)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.promptForAE(AnnotationViewerDialog.java:663)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.actionPerformed(AnnotationViewerDialog.java:328)

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


[jira] Commented: (UIMA-893) annotation viewer throws FileNotFoundException

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581963#action_12581963 ] 

Adam Lally commented on UIMA-893:
---------------------------------

The preferences use the java.util.pref mechanism, which saves them in some platform-specific location (on Windows, probably somewhere under Documents and Settings, but I don't really know exactly where).  



> annotation viewer throws FileNotFoundException
> ----------------------------------------------
>
>                 Key: UIMA-893
>                 URL: https://issues.apache.org/jira/browse/UIMA-893
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.2.1
>            Reporter: Michael Baessler
>            Assignee: Adam Lally
>             Fix For: 2.2.2
>
>
> The exception occurred when clicking "Edit Style Map"
> The descriptor that the annotation viewer search for was not used within the annotation viewer.
> java.io.FileNotFoundException: D:\code\apache\apache-uima\examples\descriptors\analysis_engine\PersonTitleAnnotator.xml (The system cannot find the path specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at java.io.FileInputStream.<init>(FileInputStream.java:66)
>         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>         at java.net.URL.openStream(URL.java:1007)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:114)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:63)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.promptForAE(AnnotationViewerDialog.java:663)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.actionPerformed(AnnotationViewerDialog.java:328)

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


[jira] Commented: (UIMA-893) annotation viewer throws FileNotFoundException

Posted by "Michael Baessler (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577891#action_12577891 ] 

Michael Baessler commented on UIMA-893:
---------------------------------------

When using the annotation viewer on Linux, the Style Map Editor can be loaded but there were some error messages for types that cannot be loaded. The missing types are not available in the type system and are not used within the current scenario.

> annotation viewer throws FileNotFoundException
> ----------------------------------------------
>
>                 Key: UIMA-893
>                 URL: https://issues.apache.org/jira/browse/UIMA-893
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.2.1
>            Reporter: Michael Baessler
>            Assignee: Adam Lally
>             Fix For: 2.2.2
>
>
> The exception occurred when clicking "Edit Style Map"
> The descriptor that the annotation viewer search for was not used within the annotation viewer.
> java.io.FileNotFoundException: D:\code\apache\apache-uima\examples\descriptors\analysis_engine\PersonTitleAnnotator.xml (The system cannot find the path specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at java.io.FileInputStream.<init>(FileInputStream.java:66)
>         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>         at java.net.URL.openStream(URL.java:1007)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:114)
>         at org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:63)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.promptForAE(AnnotationViewerDialog.java:663)
>         at org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.actionPerformed(AnnotationViewerDialog.java:328)

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