Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 6075 invoked from network); 16 Aug 2010 17:09:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 17:09:05 -0000 Received: (qmail 83438 invoked by uid 500); 16 Aug 2010 17:09:05 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 83404 invoked by uid 500); 16 Aug 2010 17:09:04 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 83395 invoked by uid 99); 16 Aug 2010 17:09:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 17:09:04 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.170] (HELO mail-wy0-f170.google.com) (74.125.82.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 17:08:57 +0000 Received: by wye20 with SMTP id 20so7629109wye.1 for ; Mon, 16 Aug 2010 10:08:36 -0700 (PDT) Received: by 10.227.134.210 with SMTP id k18mr4623024wbt.160.1281978513265; Mon, 16 Aug 2010 10:08:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.132.142 with HTTP; Mon, 16 Aug 2010 10:08:13 -0700 (PDT) X-Originating-IP: [71.92.39.5] In-Reply-To: References: <9C50F30A-40CD-4DE9-9E4A-03CE0383CBB0@gmail.com> From: Carl Hall Date: Mon, 16 Aug 2010 13:08:13 -0400 Message-ID: Subject: Re: Clustering To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=0016364d2335e49825048df3e1b0 X-Virus-Checked: Checked by ClamAV on apache.org --0016364d2335e49825048df3e1b0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable And the final change to fix my issue: set databaseType=3D"oracle" in my journal definition. OraclePersistenceManager does this without me setting the parameter explicitly (~line 97). Should OracleDatabaseJournal assume the defaults that OraclePersistenceManager does? On Mon, Aug 16, 2010 at 11:25 AM, Carl Hall wrote: > I started Sling and debugged into the JackRabbit code to see what SQL is > failing. This is what I've found. > > This SQL is run but fails with the 'invalid datatype' exception: > create table JOURNAL (REVISION_ID BIGINT NOT NULL, JOURNAL_ID varchar(255= ), > PRODUCER_ID varchar(255), REVISION_DATA varbinary) > > When I modify it in memory to this, it works: > create table JOURNAL (REVISION_ID number(20,0) NOT NULL, JOURNAL_ID > varchar(255), PRODUCER_ID varchar(255), REVISION_DATA blob) > > but then I find that this statement fails next: > create table LOCAL_REVISIONS (JOURNAL_ID varchar(255) NOT NULL, REVISION_= ID > BIGINT NOT NULL) > > Same changes as above (BIGINT -> number(20,0)) and we're clear again. > > Should I file a JIRA for this? If someone can give me direction, I don't > mind making a patch or changing configuration where needed. > > > On Mon, Aug 16, 2010 at 9:20 AM, Carl Hall wrote: > >> Aside from the first 3 drop statements failing (tables didn't exist), th= is >> ran correctly. I am changing my repository FS to be a DB FS and will tr= y >> again. Maybe this will help in someway. >> >> >> On Mon, Aug 16, 2010 at 9:05 AM, Thomas M=FCller wrote: >> >>> Hi, >>> >>> > Oracle 9. >>> >>> I'm not sure what the problem might be... Could you run the following >>> script to find out where exactly the problem is? >>> >>> drop table JOURNAL; >>> drop table GLOBAL_REVISION; >>> drop table LOCAL_REVISIONS; >>> create table JOURNAL (REVISION_ID number(20,0) NOT NULL, JOURNAL_ID >>> varchar(255), PRODUCER_ID varchar(255), REVISION_DATA blob); >>> create unique index JOURNAL_IDX on JOURNAL (REVISION_ID); >>> create table GLOBAL_REVISION (REVISION_ID number(20,0) NOT NULL); >>> create unique index GLOBAL_REVISION_IDX on GLOBAL_REVISION (REVISION_ID= ); >>> create table LOCAL_REVISIONS (JOURNAL_ID varchar(255) NOT NULL, >>> REVISION_ID number(20,0) NOT NULL); >>> insert into GLOBAL_REVISION VALUES(0); >>> drop table JOURNAL; >>> drop table GLOBAL_REVISION; >>> drop table LOCAL_REVISIONS; >>> >>> If this works, then I don't know where the problem might be. >>> >>> Regards, >>> Thomas >>> >> >> > --0016364d2335e49825048df3e1b0--