From user-return-4444-apmail-uima-user-archive=uima.apache.org@uima.apache.org Wed Jul 25 13:27:19 2012 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 E1DB6D78F for ; Wed, 25 Jul 2012 13:27:18 +0000 (UTC) Received: (qmail 66069 invoked by uid 500); 25 Jul 2012 13:27:18 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 65918 invoked by uid 500); 25 Jul 2012 13:27:12 -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 65868 invoked by uid 99); 25 Jul 2012 13:27:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 13:27:10 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [134.96.191.185] (HELO sea-mail.dfki.de) (134.96.191.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 13:27:03 +0000 Received: from sea-mail.dfki.de (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 0B5DB9DC88_0FF412B for ; Wed, 25 Jul 2012 13:26:42 +0000 (GMT) Received: from mail.dfki.de (lnv-104.sb.dfki.de [134.96.191.146]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by sea-mail.dfki.de (Sophos Email Appliance) with ESMTPS id E3E159DC85_0FF411F for ; Wed, 25 Jul 2012 13:26:41 +0000 (GMT) Received: from [172.16.150.94] (berlin-094.b.dfki.de [172.16.150.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.dfki.de (Postfix) with ESMTPSA id B4CCE310AC for ; Wed, 25 Jul 2012 15:26:41 +0200 (CEST) Message-ID: <500FF410.8030406@dfki.de> Date: Wed, 25 Jul 2012 15:26:40 +0200 From: Peter Adolphs Organization: DFKI GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.22) Gecko/20090608 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: user@uima.apache.org Subject: exceptions and log levels Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi! I've written a CollectionReader implementation that can throw an Exception in the getNext() method. I've only configured the java.util.logging root logger to use a ConsoleHandler with Level.ALL. Without touching the log configuration of the UIMA packages, any Exception thrown in the CollectionReader.getNext() is just swallowed when running the CPE. Looking at the code (in particular the ArtifactProducer.readNext() method which calls CollectionReader.getNext()), it seems that I have to set the log level FINER at the UIMAFramework ("org.apache.uima") logger to see the exceptions. But then I also see all other sorts of debug traces, e.g. begin and end of processing of an AE. Is this really intended? Thanks in advance! Peter -- Peter Adolphs DFKI GmbH, Projektbüro Berlin, Alt-Moabit 91c, D-10559 Berlin telephone: +49 - 30 - 238 95 1826 http://www.dfki.de/~padolphs/ _______________________________________________________________ Deutsches Forschungszentrum für Künstliche Intelligenz GmbH Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern Geschaeftsführung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313