From user-return-7967-archive-asf-public=cust-asf.ponee.io@uima.apache.org Thu Sep 6 08:03:33 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E514C180668 for ; Thu, 6 Sep 2018 08:03:32 +0200 (CEST) Received: (qmail 8561 invoked by uid 500); 6 Sep 2018 06:03:31 -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 8548 invoked by uid 99); 6 Sep 2018 06:03:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2018 06:03:31 +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 C181A1A2EAC for ; Thu, 6 Sep 2018 06:03:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.87 X-Spam-Level: * X-Spam-Status: No, score=1.87 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id CEc-fkBHIlto for ; Thu, 6 Sep 2018 06:03:29 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 76F295F433 for ; Thu, 6 Sep 2018 06:03:29 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id b19-v6so10134509wme.3 for ; Wed, 05 Sep 2018 23:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=fkjcmuYk6w+FP8Rhx1eBR5wKIeV3psIDDLg/ZkstUqs=; b=qbs+Ql8qYCLFFZcK2XzOhiHDzavCUh3Ua0q8dndoC9vDUUzgZHYMaByklFFL10fMYh 41aAno03NTKNdH86X0mIE9He7DesKxNBCO9hGD15CAIOjKvWSoKUrR0Of+Ue1frQdCJs W/79s4RlkM7riddgO14dbloO752yjb2ASAxVjKI1AX925WAXVJ0qxwAoJ4pjRSoDyLmi 519sJWO1pcPfEra1vCqe1j/1bX2GZWcLeq8WV59tc8TfdZcW/H5yGLyJ0zF5hPYibe8Y hbHJAeZZv+dnkjhsZl5c5tv208w0/4N/AvRKycc3wP8ehFWALVrNMAthDUBFB8ounYh9 zODg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=fkjcmuYk6w+FP8Rhx1eBR5wKIeV3psIDDLg/ZkstUqs=; b=YwmdMaK7tL3pvkSDr0vsgEFkRmiSPIoBwTtjlmt+MVRMjS2OY+EfOuadC93Oxe8yqe IlwHc8qWbHxl6obYBvf8GjFWGNtJmtToLsjlvawqu9trJVwJJItttzv6oXGvvEg/jBTx E7MWbemtWWbAtSNM4QRTDwNa3oWQ/VzN2JTNb8kFCB+zDAobpzocQEriugQ0ARYVTEYK cAo8oYFyWP/3oIYbZezViH6qdXzwpMzaOq6eSQESViq/4siqkWgWnzxzRWtoRcm1Og+9 BFVcyimOnzjUyG2Boh1/ZqWJNZNCyS5bZrGAB5tgcJZR4O5PotpOa0uiC1+NFK0+mt8G U6Iw== X-Gm-Message-State: APzg51AcJ23AcbzhQNPKMwye8RrSBVILq/2qHQa/D4PK74xYAO1C9Fos 1ppsdKa9h8rvLTuZcUtmksghE4lD X-Google-Smtp-Source: ANB0VdbHixXJ2g5A6et+WgeMbIMGkoJV/wLxr0bcldWPo9ZDHZMbvwrmW8F2Q50OgNPh3LdNbODXig== X-Received: by 2002:a1c:4182:: with SMTP id o124-v6mr976317wma.101.1536213807895; Wed, 05 Sep 2018 23:03:27 -0700 (PDT) Received: from [192.168.178.20] (p2E555D3B.dip0.t-ipconnect.de. [46.85.93.59]) by smtp.gmail.com with ESMTPSA id l18-v6sm5205459wru.75.2018.09.05.23.03.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 23:03:26 -0700 (PDT) From: Luca Toldo Content-Type: multipart/alternative; boundary=Apple-Mail-E5407C09-E4BB-4E3E-A7B6-750D2546BFB7 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Thu, 6 Sep 2018 08:03:25 +0200 Subject: Re: CAS and Serialization on Emoji codes Message-Id: References: In-Reply-To: To: user@uima.apache.org X-Mailer: iPhone Mail (16A5366a) --Apple-Mail-E5407C09-E4BB-4E3E-A7B6-750D2546BFB7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear , that is the appropriate Unicode value for the emoticon . http://www.c= odetable.net/decimal/128522=20 Therefore it is generated by the Unicode conversion. > Am 05.09.2018 um 23:49 schrieb Marshall Schor : >=20 > Hi, could you post a stack trace of the failure, so we could see the path > between the JMSException and the call to addMessage(msg). >=20 > -Marshall >=20 >=20 >> On 9/5/2018 9:50 AM, Yuqi Zhang wrote: >> Dear UIMA experts, >>=20 >> I need process a String including an emoji =F0=9F=98=8A( >> https://www.iemoji.com/view/emoji/2/smileys-people/smiling-face-with-smil= ing-eyes >> ). >> I put the string "This is a =F0=9F=98=8A" in a CAS, and sendCAS(cas) to a= remote >> server. >> But it failed at addMessage(msg) at line 971 in class >> BaseUIMAAsynchronousEngineCommon_impl with the error message: >>=20 >> javax.jms.JMSException: Failed to build body from content. Serializable >> class not available to broker. Reason: java.lang.ClassNotFoundException: >> Forbidden class org.xml.sax.SAXParseException! This class is not trusted t= o >> be serialized as ObjectMessage payload. >>=20 >>=20 >> When I check the serialization result of the cas in the msg, I see the =F0= =9F=98=8A >> is encoded as "��". >> Is that the reason this CAS sent failed? >> Because this emoji =F0=9F=98=8A can be processed without any problem in m= y another >> codes where calls the sendAndReceiveCAS(). The serialization result there= >> is "😊". >> How does it happen? >> Besides the sofa content, is there any other factors to affect the >> serialization result? >>=20 >> I am a newer to UIMA. And I have read the UIMA references about the >> serialization and cas sections. But still have no idea how I could make =F0= =9F=98=8A >> surely serialized into "😊" >>=20 >> Many thanks for any feedback! >> Best regards, >> Yuqi Zhang >>=20 >=20 --Apple-Mail-E5407C09-E4BB-4E3E-A7B6-750D2546BFB7--