Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F24D8179FB for ; Fri, 10 Oct 2014 11:36:59 +0000 (UTC) Received: (qmail 58164 invoked by uid 500); 10 Oct 2014 11:36:59 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 58114 invoked by uid 500); 10 Oct 2014 11:36:59 -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 58103 invoked by uid 99); 10 Oct 2014 11:36:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 11:36:59 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [132.187.3.35] (HELO mailrelay.rz.uni-wuerzburg.de) (132.187.3.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 11:36:54 +0000 Received: from virusscan-slb.rz.uni-wuerzburg.de (localhost [127.0.0.1]) by mailrelay-slb.rz.uni-wuerzburg.de (Postfix) with ESMTP id A797F180051C for ; Fri, 10 Oct 2014 13:36:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan-slb.rz.uni-wuerzburg.de (Postfix) with ESMTP id A67278107D7 for ; Fri, 10 Oct 2014 13:36:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-wuerzburg.de Received: from mailmaster.uni-wuerzburg.de ([127.0.0.1]) by localhost (vmail002.slb.uni-wuerzburg.de [127.0.0.1]) (amavisd-new, port 10225) with ESMTP id eqzM4xJT9UFp for ; Fri, 10 Oct 2014 13:36:32 +0200 (CEST) Received: from [132.187.15.93] (win6093.informatik.uni-wuerzburg.de [132.187.15.93]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTPSA id 923BC100A040 for ; Fri, 10 Oct 2014 13:36:32 +0200 (CEST) Message-ID: <5437C4C0.4050001@uni-wuerzburg.de> Date: Fri, 10 Oct 2014 13:36:32 +0200 From: =?GB2312?B?UGV0ZXIgS2youWds?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Error in running UIMA Ruta sample file References: <54365663.0704320a.36a3.ffffd623@mx.google.com> <54366580.7000107@uni-wuerzburg.de> <543667e5.84ab320a.4132.ffffe440@mx.google.com> <54366C5F.1050301@uni-wuerzburg.de> <748476A7-752C-41ED-92BF-54E2D0E70822@gmail.com> <5437A465.3070902@uni-wuerzburg.de> <5437a5ed.8217460a.73d3.ffff8288@mx.google.com> In-Reply-To: <5437a5ed.8217460a.73d3.ffff8288@mx.google.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, Am 10.10.2014 11:25, schrieb Debbie Zhang: > Hi Peter, > > Yes, I can run the script in the normal run mode. I tried to find out a= bit > more about the problem by looking at the java code. However, the > ExampleProject doesn't ship with the Ruta src so I don't know what is > happening in Ruta.wrapAnalysisEngine(URL, String, boolean, String) line= : 97 > and RutaLauncher.main (String[]) line: 123 These two positions should not be problematic. The exception is created when initializing the UIMA framework. I rather think that the vm is suspended because of a breakpoint on an exception that is maybe caught later. If the normal run mode works, then the debug mode should work as well since it does the exact same things, but just remembers some internal objects. You can try to to set the debug parameters in the BasicEngine.xmlto true and rebuild all descriptors. Then, launch the script in the normal run mode.The debug information should then also be created in run mode. Best, Peter > Thanks for your reply! > > Regards, > > Debbie > >> -----Original Message----- >> From: Peter Kl=A8=B9gl [mailto:pkluegl@uni-wuerzburg.de] >> Sent: Friday, 10 October 2014 8:18 PM >> To: user@uima.apache.org >> Subject: Re: Error in running UIMA Ruta sample file >> >> Hi, >> >> can you check if there are any activated java breakpoints, especially = if > the >> debugger stops at a FileNotFoundException? >> >> If yes, deactivate them all and try it again. I assume that this > stacktrace >> only hides the problem. >> >> btw, can you start the script in the normal run mode? >> >> Best, >> >> Peter >> >> >> Am 10.10.2014 01:12, schrieb Debbie Zhang: >>> Hi Peter, >>> >>> I got it working at home. However, I still can't get it working at wo= rk. >> Here is the complete stack trace when I run debug as UIMA Ruta: >>> Main.ruta (1) [UIMA Ruta] >>> org.apache.uima.ruta.ide.launching.RutaLauncher at localhost:51604= >>> Thread [main] (Suspended (exception FileNotFoundException)) >>> owns: URLClassPath (id=3D31) >>> URLClassPath$JarLoader.getJarFile(URL) line: 644 >>> URLClassPath$JarLoader.access$600(URLClassPath$JarLoader, > URL) >> line: 540 >>> URLClassPath$JarLoader$1.run() line: 607 >>> AccessController.doPrivileged(PrivilegedExceptionAction= ) > line: >> not available [native method] >>> URLClassPath$JarLoader.ensureOpen() line: 599 >>> URLClassPath$JarLoader.(URL, URLStreamHandler, >> HashMap) line: 583 >>> URLClassPath$3.run() line: 333 >>> AccessController.doPrivileged(PrivilegedExceptionAction= ) > line: >> not available [native method] >>> URLClassPath.getLoader(URL) line: 322 >>> URLClassPath.getLoader(int) line: 299 >>> URLClassPath.getResource(String, boolean) line: 168 >>> URLClassPath.getResource(String) line: 221 >>> ClassLoader.getBootstrapResource(String) line: 1150 >>> Launcher$ExtClassLoader(ClassLoader).getResource(String) > line: >> 999 >>> Launcher$AppClassLoader(ClassLoader).getResource(String) > line: >> 997 > Launcher$AppClassLoader(ClassLoader).getResourceAsStream(String) >> line: 1192 >>> SecuritySupport$4.run() line: 96 >>> AccessController.doPrivileged(PrivilegedAction) line: n= ot >> available [native method] >>> SecuritySupport.getResourceAsStream(ClassLoader, String) > line: 89 >>> FactoryFinder.findJarServiceProvider(String) line: 250 >>> FactoryFinder.find(String, String) line: 223 >>> SAXParserFactory.newInstance() line: 128 >>> UIMAFramework_impl.parseFactoryConfig() line: 455 >>> UIMAFramework_impl._initialize() line: 179 >>> UIMAFramework.() line: 1310 >>> Ruta.wrapAnalysisEngine(URL, String, boolean, String) line= : > 97 >>> RutaLauncher.main(String[]) line: 123 >>> /usr/lib/jvm/jdk1.6.0_32/bin/java (Oct 10, 2014, 9:56:47 AM) >>> >>> Thank you! >>> >>> Regards, >>> >>> Debbie Zhang >>> >>> Sent from my iPhone >>> >>>> On 9 Oct 2014, at 10:07 pm, Peter Kl=A8=B9gl > wrote: >>>> It's possible that that the execution did not work and the xmis are >>>> those that were already present in the project. >>>> >>>> Can you delete the files in the output folder, and debug the ruta >>>> script again? >>>> >>>> If the file do not occur again after running/debugging a ruta script= , >>>> then there must be an exception: Either in the console (in Eclipse) >>>> or in the Error log view. >>>> >>>> Well, you need a CAS with the special annotations. You can create >>>> some also without using the debug mode in eclipse. The Test >>>> Annotation view should normally not create those debug information a= s > far >> as I remember. >>>> Best, >>>> >>>> Peter >>>> >>>> Am 09.10.2014 12:48, schrieb Debbie Zhang: >>>>> Thanks Peter for your reply. I cleaned the project after I received= > your >> email. However, I still got the error when I tried to debug. >>>>> Just now, I double clicked the output file Example1.txt.xmi. I got = the >> rules displayed on the rule views. Does it mean that I don't need to r= un > the >> debug to get rules on the rule views (The Reference document said debu= g > need >> to be run)? It seems I only need to run the Main.ruta from "Annotation= > Test" >> to get the .xmi files. >>>>> Regards, >>>>> >>>>> Debbie >>>>> >>>>>> -----Original Message----- >>>>>> From: Peter Kl=A8=B9gl [mailto:pkluegl@uni-wuerzburg.de] >>>>>> Sent: Thursday, 9 October 2014 9:38 PM >>>>>> To: user@uima.apache.org >>>>>> Subject: Re: Error in running UIMA Ruta sample file >>>>>> >>>>>> Did you clean the project after importing it? Menu->Project->Clean= =2E.. >>>>>> >>>>>> Best, >>>>>> >>>>>> Peter >>>>>> >>>>>> Am 09.10.2014 11:33, schrieb Debbie Zhang: >>>>>>> Hi, >>>>>>> >>>>>>> I am new to UIMA Ruta. I=A1=A1try to learn UIMA Ruta by following= the >>>>>>> Ruta Guide and Reference: >>>>>>> > https://uima.apache.org/d/ruta-current/tools.ruta.book.html#ugr.tools. >>>>>>> ruta.o >>>>>>> verview.gettingstarted >>>>>>> >>>>>>> So far, I am able to follow the guide to section 3.5. UIMA Ruta >>>>>>> Explain Perspective. According to the guide, I import the UIMA >>>>>>> Ruta example project and open the main Ruta script file >>>>>>> 'Main.ruta'. I right click the mouse and select =A1=B0Debug As=A1= =B1 =A1=B01 > UIMA >>>>>>> Ruta=A1=B1 on the "Main.ruta" file. However, I get the following = error: >>>>>>> >>>>>>> Source not found for URLClassPath$JarLoader.getJarFile(URL) line:= >>>>>>> 644 >>>>>>> >>>>>>> For all =A1=B0Applied Rules=A1=B1 =A1=B0Failed Rules=A1=B1 =A1=B0= Matched Rules=A1=B1 views, > the >>>>>>> following message is displayed: >>>>>>> The instance view is currently not available >>>>>>> >>>>>>> Could someone tell me what I did wrong so I can see Rules in thos= e > views? >>>>>>> Thank you in advance. >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Debbie Zhang