Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 31558 invoked from network); 5 Mar 2009 12:23:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 12:23:08 -0000 Received: (qmail 52566 invoked by uid 500); 5 Mar 2009 12:23:07 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 52532 invoked by uid 500); 5 Mar 2009 12:23:07 -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 Delivered-To: moderator for dev@directory.apache.org Received: (qmail 13796 invoked by uid 99); 5 Mar 2009 11:52:14 -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 (athena.apache.org: local policy) To: dev@directory.apache.org Subject: Save long string to ApacheDS MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006 Message-ID: From: DAkhremchyk@iba.by Date: Thu, 5 Mar 2009 13:52:13 +0200 X-MIMETrack: Serialize by Router on OUTPUT/IBA(Release 7.0.3|September 26, 2007) at05.03.2009 13:51:42,Serialize complete at 05.03.2009 13:51:42 Content-Type: multipart/alternative; boundary="=_alternative 0041280DC2257570_=" X-ESAFE-STATUS: [esafe.iba.by] Mail allowed X-ESAFE-DETAILS: [esafe.iba.by] X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. --=_alternative 0041280DC2257570_= Content-Type: text/plain; charset="US-ASCII" 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. Best regards Dmitry Ahremchik --=_alternative 0041280DC2257570_= Content-Type: text/html; charset="US-ASCII"
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.

Best regards
Dmitry Ahremchik
--=_alternative 0041280DC2257570_=--