Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 76758 invoked from network); 18 Dec 2009 23:57:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Dec 2009 23:57:36 -0000 Received: (qmail 76760 invoked by uid 500); 18 Dec 2009 23:57:35 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 76681 invoked by uid 500); 18 Dec 2009 23:57:34 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 76671 invoked by uid 99); 18 Dec 2009 23:57:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 23:57:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hansen.candrawinata@gmail.com designates 209.85.223.201 as permitted sender) Received: from [209.85.223.201] (HELO mail-iw0-f201.google.com) (209.85.223.201) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 23:57:26 +0000 Received: by iwn39 with SMTP id 39so2336959iwn.32 for ; Fri, 18 Dec 2009 15:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=HmyWWZBa0QA0m+Ky93F54DM2ohzs9B3wxTNLQQ2GWO0=; b=WYN0Ivg79kteA6iYE9teHwpQITfNu2iOyF4N8r45i/HRFPrtdQTB7gwJR+dgaTpDNB krA7EecIIGVuGfqYuZJPQ57h+F5hqru3ePx3lPUIt4n7BYO+o58Tz2Opvb8zQAB5G3VN YZDki5s+Iv48FA7MlJX6+hNeB6kTxqjxoonVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=ZeDD3TNESpC+uvfumUPTDsOpAnIMmyync0B72bh5aCT14SB+UfLNVI3L1a650+xPpY H+9S6h6IQfAy7z4dulQZswRsiUCMyiZ7bRsi3HCVtJ7QRhSFiKCbg6+zsB7MmzIYTZJx cyrWRUR/VXVsngcTvGwLr9yniOnwwXBsKOgm4= MIME-Version: 1.0 Received: by 10.231.121.93 with SMTP id g29mr2129969ibr.13.1261180625309; Fri, 18 Dec 2009 15:57:05 -0800 (PST) In-Reply-To: References: From: Hansen Candrawinata Date: Sat, 19 Dec 2009 10:56:45 +1100 Message-ID: Subject: Re: Exception thrown when deploying CAS Processors in managed mode To: uima-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e646926a2b518b047b097fae X-Virus-Checked: Checked by ClamAV on apache.org --0016e646926a2b518b047b097fae Content-Type: text/plain; charset=ISO-8859-1 Jerry, I am using UIMA 2.2.2-incubating which is downloaded directly by Maven from Apache Incubator repository http://people.apache.org/repo/m2-incubating-repository/. Thanks, Hansen On Sat, Dec 19, 2009 at 1:47 AM, Jaroslaw Cwiklik wrote: > Hansen, in integrated mode the CAS there are no conversions to CASData. CAS > instances are passed by reference between CasProcessors. This explains why > things work for you that way. I am not sure yet if the ByteArray is > supported. Which version of UIMA are you using? Is it 2.2.2 or is the > latest > from Apache? > > On Fri, Dec 18, 2009 at 12:14 AM, Hansen Candrawinata < > hansen.candrawinata@gmail.com> wrote: > > > Hi Jerry. > > > > On Fri, Dec 18, 2009 at 3:39 PM, Hansen Candrawinata < > > hansen.candrawinata@gmail.com> wrote: > > > > > I suspect the "ByteArray" feature is the cause. I will try do some > > > tweaking to remove the "ByteArray" feature and see if that affects > > > anything. Will let you know. > > > > > > > Indeed! That ByteArray is the cause of the problem. If I don't populate > > it, everything is working, I could see my CAS processors deployed in > > managed > > mode get called. But if I populate it, a XCASParsingException would be > > thrown during the CAS object conversion. > > > > Is this possibly a bug? Or is it just me that is using it incorrectly? > I > > am using the "ByteArray" to store the contents of a binary file read in > by > > the collection reader. Here is how I do the conversion from byte[] to > > ByteArray: > > > > byte[] bytes = // read the contents of file into the array of bytes; > > > ByteArray ba = new ByteArray(jcas, bytes.length); > > > ba.copyFromArray(bytes, 0, 0, bytes.length); > > > > > > > Thanks, > > Hansen > > > > PS. Just to repeat what I have said before, if I deploy my CAS processors > > in > > integrated mode, things are working fine, even if I populate the > ByteArray. > > > --0016e646926a2b518b047b097fae--