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 C272718D81 for ; Mon, 23 Nov 2015 12:41:32 +0000 (UTC) Received: (qmail 60653 invoked by uid 500); 23 Nov 2015 12:41:32 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 60607 invoked by uid 500); 23 Nov 2015 12:41:32 -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 60594 invoked by uid 99); 23 Nov 2015 12:41:32 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 12:41:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E44891A0920 for ; Mon, 23 Nov 2015 12:41:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GgIRZydFE8UV for ; Mon, 23 Nov 2015 12:41:31 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 91AB42303B for ; Mon, 23 Nov 2015 12:41:30 +0000 (UTC) Received: from [192.168.11.107] ([132.230.176.14]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0ME295-1a7ldt3fFH-00HSO0 for ; Mon, 23 Nov 2015 13:41:22 +0100 From: Matthias Koch Subject: Bug in ExternalResourceFactory ??? To: user@uima.apache.org Message-ID: <5653098C.5000302@averbis.com> Date: Mon, 23 Nov 2015 13:41:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:p6MrP21lKN5Xw6yDmmXAi2cmOCtlBXrhR9uC95YeJtJ7HuuB8WO WWcm3ijMBCCblMTnX7DiM/F3Kr5aH1Vh/ntABbjAg/KLaCVGnGekAHUEbjxLye1K3ynfiP4 tgKnr4ustTRn8z6k89jnrEaYYg4OgG3YwbG52riaJzpYTR030uR2rJBjMjC1P4STOFe7xVr rFc/zzF9yJypvAMR8nIBg== X-UI-Out-Filterresults: notjunk:1;V01:K0:cykoDNwz7Rc=:7nR2pjgU+05XG/k8AJ7oMn yd3jdQUwUtE9s7p9/MK8yDDwVZpKeUTkltclPKnSGJ2Z5Rg06jRWDtKe0WigW/QPbN9/4EjWP InkbGOj2nctklhkzHQ2VwFAO9Xw0Kt8C+K2woT7FLp8VFY2CbXalpKUkLKrj83hSPHQnY2OEw Zx2LMfuNVXpvPcMsyHi+tiIWbVRq0UtzwH+wr0q7YuI5iud9B8dqymW0C0vVJS9xqOpYF4xPo HrnWaAJL3X3gh/pt3y3/Nd8sOpzTFVwjbvCRvCg18AUO1HkcJ4GbpnR+nlusslZGdyaEkxqvq z5ITcOd56vj1WNDBpYqVBiPus0xJRbqw7Ci6BoMQfM3VZiZPrya/NwDa63jXVgCe8G7wpOCuJ ZSbRlMhQbStifo7NwCsqXZET92qa5/HN6DlQIinTRPa1k/Ok2n/7UF9QVXBLSVoKyK1TlUZve VvK1gOxQRduVpKcJwStpuV+wOREsBQcAs0+cczzutW5gvX6KuztAsZjIjItlJ/hHKSyFQTJ3S 547Ts+QvfCCumCGa2ntowPKCNvnzqYyAK2xEfLOoJTPALPSbGG+Yv5B/BLYI2dpAtRIG1UmP2 TQXXf/eLOYixWyGuBFQHsqi68ICUbgz3PFSLiK1el9wYlwcFuEmDrM6EO3Aw8tnpAlaalgW04 4WeiFhu+NMx4dss+yLs/v5hGSC1pimDkJFG40Qh1gIh94olSY4oMp2AlCeI76shNIk+yxd4Sr y3Fi+0nKShiTCldO Hi We want to create an ExternalResourceDescription via public static ExternalResourceDescription createExternalResourceDescription(Class aInterface, Object... aParams) This resource has a couple of ConfigurationParameters and some of them are booleans. If the object[] aParams contains those booleans an exception is thrown in line 177 ( param.setValue((String) aParams[i * 2 + 1]);) because the cast to String is not possible. If we put them as Strings into the object array it seems to work. This seems like an inconsistency, because we have to put boolean into the factory for an AnalysisEngineDescription but Strings for an ExternalResourceDescription. Is this a bug or the expected behavior? Best regards, Matthias