Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 50555 invoked from network); 5 May 2008 06:57:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2008 06:57:25 -0000 Received: (qmail 57518 invoked by uid 500); 5 May 2008 06:57:21 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 57474 invoked by uid 500); 5 May 2008 06:57:20 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 57346 invoked by uid 99); 5 May 2008 06:57:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2008 23:57:20 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 06:56:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A7EE7234C114 for ; Sun, 4 May 2008 23:56:55 -0700 (PDT) Message-ID: <2145657411.1209970615686.JavaMail.jira@brutus> Date: Sun, 4 May 2008 23:56:55 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1563) Data Store: UTFDataFormatException when using large minRecordLength In-Reply-To: <73499537.1209540355669.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594155#action_12594155 ] Jukka Zitting commented on JCR-1563: ------------------------------------ > I'm not sure if you read my comment above [...] I did, my last comment was targeted at your comment with the prefix stuff (by type detection I meant the parsing of that prefix). I agree that the best solution would be to write the raw bytes directly. And I wouldn't worry about extra complexity, it's better to solve this right instead of adding layers of extra hacks like the arbitrary limit on minRecordLength. > Data Store: UTFDataFormatException when using large minRecordLength > ------------------------------------------------------------------- > > Key: JCR-1563 > URL: https://issues.apache.org/jira/browse/JCR-1563 > Project: Jackrabbit > Issue Type: Bug > Reporter: Thomas Mueller > Priority: Minor > > If using a value larger than 33000 for minRecordLength, and then trying to store a value with 33000 bytes, the following exception is thrown: UTFDataFormatException. The reason is that values are serialized using DataOutputStream.writeUTF. There is size limitation of 65 K when using this method. Small entries are hex encoded, and there is a prefix, so the limitation for minRecordLength should be 32000. > This is a problem for both FileDataStore and DbDataStore. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.