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 894019220 for ; Fri, 21 Oct 2011 18:05:39 +0000 (UTC) Received: (qmail 95052 invoked by uid 500); 21 Oct 2011 18:05:39 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 94986 invoked by uid 500); 21 Oct 2011 18:05:39 -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 94978 invoked by uid 99); 21 Oct 2011 18:05:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 18:05:39 +0000 X-ASF-Spam-Status: No, hits=-1.4 required=5.0 tests=RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcaug-uima-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 18:05:32 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RHJSt-0004nY-5D for user@uima.apache.org; Fri, 21 Oct 2011 20:05:07 +0200 Received: from 139.52.147.247 ([139.52.147.247]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 20:05:07 +0200 Received: from Charles.F.Bearden by 139.52.147.247 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Oct 2011 20:05:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@uima.apache.org From: Charles Bearden Subject: UIMA-AS: non-XML char in text raises SAXParseException Date: Fri, 21 Oct 2011 12:58:16 -0500 Lines: 35 Message-ID: Reply-To: Charles.F.Bearden@uth.tmc.edu Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 139.52.147.247 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15 X-Virus-Checked: Checked by ClamAV on apache.org I created a simple UIMA-AS pipeline comprising a collection reader and an aggregate AE, which I ran simply like so: runRemoteAsyncAE.sh tcp://localhost:61616 CollectionReader \ -d \ -c \ Evidently, the content I wish to process has some non-XML characters in it, because a certain bit of data raises an exception, the heart of which appears to be: Caused by: org.xml.sax.SAXParseException: Trying to serialize non-XML 1.0 character: , 0x19 The complete exception is here: The point in my code at which the exception enters the picture (NoteLinesFromDBReader.java:139) is the point in the .getNext() method where I get the next CAS: jcas = aCAS.getJCas(); I don't run into this problem when I use the old-fashioned CPE, so my thinking is that the CAS from the CR is being serialized before being put into the queue. Is the expectation in UIMA AS that I sanitize text artifacts of non-XML characters before the CR gets them? Or am I doing something else wrong perhaps? Thanks for your help, Chuck -- Chuck Bearden Programmer Analyst IV The University of Texas Health Science Center at Houston School of Biomedical Informatics Email: Charles.F.Bearden@uth.tmc.edu Phone: 713.500.9672