From dev-return-29280-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu Mar 05 12:26:13 2009 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 32635 invoked from network); 5 Mar 2009 12:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 12:26:13 -0000 Received: (qmail 54543 invoked by uid 500); 5 Mar 2009 12:26:13 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 54510 invoked by uid 500); 5 Mar 2009 12:26:12 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 54501 invoked by uid 99); 5 Mar 2009 12:26:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 04:26:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.92.27 as permitted sender) Received: from [74.125.92.27] (HELO qw-out-2122.google.com) (74.125.92.27) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 12:26:03 +0000 Received: by qw-out-2122.google.com with SMTP id 3so4446129qwe.31 for ; Thu, 05 Mar 2009 04:25:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hMqrYdKMJzKWT63RDm67w1tQZ/Eu8m8xHa/xekFioME=; b=eml/7febYxWrxeJKVHBHtsMnfacIOBTWZg6PJOFM+90U13xvZBqjSAxSTPxwKQpmQV cI7E6ueOREqAbReOwa7xbpg8+7+mXh8hme+awib3wpVe1TRazMN8uQvUGFj2xyzOVOgT HWXodOfXLXTQG/fO2NKLOXQ+yY/xtqwBHm8FU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=PA9lOaUmkOSSf/FYjWkNwmQDpL7CX9sdLyQJjS96QzV2CDWmHHmpyYaxgVSR0YMoG1 JMcgOaEfR0F8fBrUm9ZPCvivsKNUt+bYnLc3FfjlDMo2bc3/AOcUoyL2C54GhVbcuzj0 pmuSZqp7hNHZIm1iP+W287NviBRM3KBbMa9+s= Received: by 10.224.54.81 with SMTP id p17mr1714642qag.120.1236255942229; Thu, 05 Mar 2009 04:25:42 -0800 (PST) Received: from ?192.168.0.51? (lon92-10-78-226-4-211.fbx.proxad.net [78.226.4.211]) by mx.google.com with ESMTPS id 9sm2077613yws.55.2009.03.05.04.25.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Mar 2009 04:25:41 -0800 (PST) Sender: Emmanuel Lecharny Message-ID: <49AFC4C2.5050500@nextury.com> Date: Thu, 05 Mar 2009 13:25:38 +0100 From: Emmanuel Lecharny User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Save long string to ApacheDS References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org DAkhremchyk@iba.by wrote: > Hello. > > I need to save long ascii string in ApacheDS. String size is greater than > 64K. > When I'm trying to save string attribute with length more than 65536 I > always get the exception. > It's UTFDataFormatException. > Is it possible to storelong strings? > > There is no problem saving binary values with size greater than 64K. > > It seems that the problem is in function > java.io.ObjectOutputStream.writeUTF > This function called from ServerStringValue.serialize. > Maybe the solution is to split the string call writeUTF for every 64K part > of long string. > I have created this JIRA a couple of days ago : https://issues.apache.org/jira/browse/DIRSERVER-1319 -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org