From user-return-7897-archive-asf-public=cust-asf.ponee.io@uima.apache.org Fri Apr 6 23:09:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2F744180649 for ; Fri, 6 Apr 2018 23:09:03 +0200 (CEST) Received: (qmail 41997 invoked by uid 500); 6 Apr 2018 21:09:02 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 41981 invoked by uid 99); 6 Apr 2018 21:09:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2018 21:09:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 05581180778 for ; Fri, 6 Apr 2018 21:09:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XHWBmdZQXklV for ; Fri, 6 Apr 2018 21:08:58 +0000 (UTC) Received: from gateway34.websitewelcome.com (gateway34.websitewelcome.com [192.185.148.140]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E83BE5F19B for ; Fri, 6 Apr 2018 21:08:57 +0000 (UTC) Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 563DE263F6B1 for ; Fri, 6 Apr 2018 16:07:52 -0500 (CDT) Received: from gator3253.hostgator.com ([198.57.247.217]) by cmsmtp with SMTP id 4YaNfw93cntAo4YaOfXpjp; Fri, 06 Apr 2018 16:07:52 -0500 Received: from [129.34.20.19] (port=64154 helo=[9.2.55.137]) by gator3253.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1f4YaN-0024UP-Fd for user@uima.apache.org; Fri, 06 Apr 2018 16:07:51 -0500 Subject: Re: newbie question: can't get annotationViewer.sh working... To: user@uima.apache.org References: <5dee79b3-fce1-3221-9dfd-2057f12aa8d0@shaw.ca> From: Marshall Schor Openpgp: preference=signencrypt Message-ID: <98df45ca-1d71-91d1-d109-d6d64bb5a36f@schor.com> Date: Fri, 6 Apr 2018 17:07:50 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3253.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source-IP: 129.34.20.19 X-Source-L: No X-Exim-ID: 1f4YaN-0024UP-Fd X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([9.2.55.137]) [129.34.20.19]:64154 X-Source-Auth: msa+schor.com X-Email-Count: 2 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yMzI1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes Hi, There are multiple tools that come with UIMA. It may be there's some confusion about which tool does what. Your first note led me to believe you were running the "UIMA DocumentAnalyzer" tool. That tool is the one which has the OutputDirectory, etc. This note leads me to believe you are running the "UIMA Annotation Viewer". That tool indeed, has the fields you describe in your last note. Its function is to take as input, a directory already populated with xmi files to view. Please try running the "UIMA DocumentAnalyzer" tool, which has the "Output Directory" field, and set that to some writable directory, and see if you get things to run.  Then look in that output directory and see if there are .xmi files there. -Marshall On 4/6/2018 3:56 PM, Andrew Logue wrote: > Hi Marshall, > > I tried running the annotationViewer as root and got the same behaviour as I'm > getting as a regular user. > > When I run it I only see the following on screen: > - input and browse button for "Input Directory" > - input and browse button for "TypeSystem or AE Descriptor File" > - a single View button at the bottom. > > It is interesting that I don't see any UI elements for the Output directory as > mentioned. > I had noticed the screen-shot in "tutorials_and_user_guides.html" didn't match > what I see > but thought it was simply a case of the software getting ahead of the > documentation.  Now > I'm not so sure. > > After clicking the View button the Analyzed Documents window pops up listing > the xml files > but I cannot locate any *.xmi files nor a directory called "processed". > > Thanks, > Andrew. > > On 2018/04/05 22:47:28, Andrew Logue wrote: > > Hello,> > > > > I'd like to evaluate UIMA for an upcoming project but am having problems > > > trying the examples with annotationViewer.sh.> > > > > It is throwing an error dialog: "java.lang.NumberFormatException: null" > > > when I double click on any of the sample files in the Analyzed> > > Documents window (for example, New_IBM_Fellows.xml).> > > > > I'll paste the partial error message below but is there anywhere else > > > for me to look and try to narrow down the problem on my system?> > > > > I'm using Arch Linux with Sun Java version "1.8.0_162".> > > > > I am able to build from source but am also having the same problem with > > > the binary tarballs.  (2.10.2, 2.10.3, and 3.0.0)> > > > > [alogue@freedom bin]$ ./annotationViewer.sh> > > java.lang.NumberFormatException: null> > >     at java.lang.Integer.parseInt(Integer.java:542)> > >     at java.lang.Integer.parseInt(Integer.java:615)> > >     at > > > > org.apache.uima.cas.impl.XmiSerializationSharedData.addOutOfTypeSystemElement(XmiSerializationSharedData.java:202)> > > >     at > > > > org.apache.uima.cas.impl.XmiCasDeserializer$XmiCasDeserializerHandler.addToOutOfTypeSystemData(XmiCasDeserializer.java:2015)> > > >     at > > > > org.apache.uima.cas.impl.XmiCasDeserializer$XmiCasDeserializerHandler.readFS(XmiCasDeserializer.java:519)> > > >     at > > > > org.apache.uima.cas.impl.XmiCasDeserializer$XmiCasDeserializerHandler.startElement(XmiCasDeserializer.java:435)> > > >     at > > > > org.apache.uima.util.XmlCasDeserializer$XmlCasDeserializerHandler.startElement(XmlCasDeserializer.java:148)> > > >     at > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)> > > >     at > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)> > > >     at > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)> > > >     at > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)> > > >     at > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)> > > >     at > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)> > > >     at > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)> > > >     at > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)> > > > > > > > > Regards,> > > > > Andrew.> > > > > >