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 ED8AF17586 for ; Thu, 9 Oct 2014 23:13:30 +0000 (UTC) Received: (qmail 89895 invoked by uid 500); 9 Oct 2014 23:13:30 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 89853 invoked by uid 500); 9 Oct 2014 23:13:30 -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 89841 invoked by uid 99); 9 Oct 2014 23:13:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2014 23:13:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of debbie.d.zhang@gmail.com designates 209.85.192.178 as permitted sender) Received: from [209.85.192.178] (HELO mail-pd0-f178.google.com) (209.85.192.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2014 23:13:03 +0000 Received: by mail-pd0-f178.google.com with SMTP id y10so524737pdj.23 for ; Thu, 09 Oct 2014 16:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:references:in-reply-to:to; bh=JGhnmhdtLz6MGgWUYm0MbFU9piBSLywrViXnqkuUxds=; b=zYLHCYXECTmT4600KIrZIl9/5KG3Z1dE+YUXtdi2uEFIIJa4S9UcVsc3hsGFzl9OqK A0tcI8Ha7MOo6FF6P1SxYJljwJfjaDgLSsZodVnRQ/1X82x+ZRrbf/N7EPvdPau8xl6k NCHIZOWiXbvIwxSjRi9RlpgmAgxASFxu7l8tRXgBfIZG1Kh+soA3OQ5G7rQ+fwErFnGN Rb92zXcIPnIjdrY83RK8cQxcit8uZyEKFmGJfOnA19CXyG5vf0seHja+vDHAjVynHQgw ckhhp6v08c3sCt2WGaxPxNunZB0z993o9Xx97YttOazQrtVQIVWm4IHqncTkaDNc0fPt 1+Eg== X-Received: by 10.68.111.99 with SMTP id ih3mr1140629pbb.124.1412896381872; Thu, 09 Oct 2014 16:13:01 -0700 (PDT) Received: from [10.118.2.138] (pa49-180-168-10.pa.nsw.optusnet.com.au. [49.180.168.10]) by mx.google.com with ESMTPSA id uu17sm1606771pab.43.2014.10.09.16.13.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Oct 2014 16:13:01 -0700 (PDT) From: Debbie Zhang Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Error in running UIMA Ruta sample file Message-Id: <748476A7-752C-41ED-92BF-54E2D0E70822@gmail.com> Date: Fri, 10 Oct 2014 10:12:55 +1100 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> In-Reply-To: <54366C5F.1050301@uni-wuerzburg.de> To: "user@uima.apache.org" X-Mailer: iPhone Mail (12A405) X-Virus-Checked: Checked by ClamAV on apache.org Hi Peter, I got it working at home. However, I still can't get it working at work. Her= e is the complete stack trace when I run debug as UIMA Ruta: Main.ruta (1) [UIMA Ruta] =20 org.apache.uima.ruta.ide.launching.RutaLauncher at localhost:51604 =20 Thread [main] (Suspended (exception FileNotFoundException)) =20 owns: URLClassPath (id=3D31) =20 URLClassPath$JarLoader.getJarFile(URL) line: 644 =20 URLClassPath$JarLoader.access$600(URLClassPath$JarLoader, URL) li= ne: 540 =20 URLClassPath$JarLoader$1.run() line: 607 =20 AccessController.doPrivileged(PrivilegedExceptionAction) line:= not available [native method] =20 URLClassPath$JarLoader.ensureOpen() line: 599 =20 URLClassPath$JarLoader.(URL, URLStreamHandler, HashMap) line: 583 =20 URLClassPath$3.run() line: 333 =20 AccessController.doPrivileged(PrivilegedExceptionAction) line:= not available [native method] =20 URLClassPath.getLoader(URL) line: 322 =20 URLClassPath.getLoader(int) line: 299 =20 URLClassPath.getResource(String, boolean) line: 168 =20 URLClassPath.getResource(String) line: 221 =20 ClassLoader.getBootstrapResource(String) line: 1150 =20 Launcher$ExtClassLoader(ClassLoader).getResource(String) line: 99= 9 =20 Launcher$AppClassLoader(ClassLoader).getResource(String) line: 99= 7 =20 Launcher$AppClassLoader(ClassLoader).getResourceAsStream(String) l= ine: 1192 =20 SecuritySupport$4.run() line: 96 =20 AccessController.doPrivileged(PrivilegedAction) line: not avai= lable [native method] =20 SecuritySupport.getResourceAsStream(ClassLoader, String) line: 89= =20 FactoryFinder.findJarServiceProvider(String) line: 250 =20 FactoryFinder.find(String, String) line: 223 =20 SAXParserFactory.newInstance() line: 128 =20 UIMAFramework_impl.parseFactoryConfig() line: 455 =20 UIMAFramework_impl._initialize() line: 179 =20 UIMAFramework.() line: 1310 =20 Ruta.wrapAnalysisEngine(URL, String, boolean, String) line: 97 = =20 RutaLauncher.main(String[]) line: 123 =20 /usr/lib/jvm/jdk1.6.0_32/bin/java (Oct 10, 2014, 9:56:47 AM) =20 Thank you! Regards, Debbie Zhang=20 Sent from my iPhone > On 9 Oct 2014, at 10:07 pm, Peter Kl=A8=B9gl wr= ote: >=20 > It's possible that that the execution did not work and the xmis are > those that were already present in the project. >=20 > Can you delete the files in the output folder, and debug the ruta script > again? >=20 > 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. >=20 > 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 as far as I remember. >=20 > Best, >=20 > Peter >=20 > Am 09.10.2014 12:48, schrieb Debbie Zhang: >> Thanks Peter for your reply. I cleaned the project after I received your e= mail. However, I still got the error when I tried to debug. >>=20 >> Just now, I double clicked the output file Example1.txt.xmi. I got the ru= les displayed on the rule views. Does it mean that I don't need to run the d= ebug to get rules on the rule views (The Reference document said debug need t= o be run)? It seems I only need to run the Main.ruta from "Annotation Test" t= o get the .xmi files.=20 >>=20 >> Regards, >>=20 >> Debbie=20 >>=20 >>> -----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 >>>=20 >>> Did you clean the project after importing it? Menu->Project->Clean... >>>=20 >>> Best, >>>=20 >>> Peter >>>=20 >>> Am 09.10.2014 11:33, schrieb Debbie Zhang: >>>> Hi, >>>>=20 >>>> I am new to UIMA Ruta. I=A1=A1try to learn UIMA Ruta by following the R= uta >>>> Guide and Reference: >>>> https://uima.apache.org/d/ruta-current/tools.ruta.book.html#ugr.tools. >>>> ruta.o >>>> verview.gettingstarted >>>>=20 >>>> 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: >>>>=20 >>>> Source not found for URLClassPath$JarLoader.getJarFile(URL) line: 644 >>>>=20 >>>> For all =A1=B0Applied Rules=A1=B1 =A1=B0Failed Rules=A1=B1 =A1=B0Matche= d Rules=A1=B1 views, the >>>> following message is displayed: >>>> The instance view is currently not available >>>>=20 >>>> Could someone tell me what I did wrong so I can see Rules in those view= s? >>>>=20 >>>> Thank you in advance. >>>>=20 >>>> Regards, >>>>=20 >>>> Debbie Zhang >=20 >=20