Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 53364 invoked from network); 18 Dec 2009 14:47:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Dec 2009 14:47:34 -0000 Received: (qmail 55418 invoked by uid 500); 18 Dec 2009 14:47:33 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 55358 invoked by uid 500); 18 Dec 2009 14:47:32 -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 55348 invoked by uid 99); 18 Dec 2009 14:47:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 14:47:32 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of uimaee@gmail.com designates 209.85.222.174 as permitted sender) Received: from [209.85.222.174] (HELO mail-pz0-f174.google.com) (209.85.222.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2009 14:47:26 +0000 Received: by pzk4 with SMTP id 4so93198pzk.32 for ; Fri, 18 Dec 2009 06:47: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 :date:message-id:subject:from:to:content-type; bh=vHfyB882TefxHvVimTwSzzIMTexGTeTTrPpJsN/xzB4=; b=wXuPBy9ToP5+MmNK3V6K6oVKMwIU87091fZZkPYxKXstabUbX4Ha0n1c5ZXJKbODps wFiJoUEBfsQeI+Y27hGePItHmZp3InGx+0UOTpT1HgTL0OLY7ACWQmy4FwpOUGPv36d0 G/cqowg1Ai0LiOArsv470raE1VwCvoRjHdZo4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Q2Qhg87YjCFZxjmofm92uAWzFE76W1IApjvkW0sVexF8XcjrZg7M/ePxuRZ2shhsld Gi0lVbm4IPuB2SZ9gA3ppBK8VrVV9sdB3pVgn689p9BKu9qwjepW/KYEXLwUPCM7OyqB 8VjceeUXBYgJTFIwZWIHRvXBLs1XN0xb0N5hg= MIME-Version: 1.0 Received: by 10.114.29.14 with SMTP id c14mr2700940wac.111.1261147625640; Fri, 18 Dec 2009 06:47:05 -0800 (PST) In-Reply-To: References: Date: Fri, 18 Dec 2009 09:47:05 -0500 Message-ID: Subject: Re: Exception thrown when deploying CAS Processors in managed mode From: Jaroslaw Cwiklik To: uima-user@incubator.apache.org Content-Type: multipart/alternative; boundary=00504502e9563c547c047b01d02a --00504502e9563c547c047b01d02a Content-Type: text/plain; charset=ISO-8859-1 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. > --00504502e9563c547c047b01d02a--