Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E63F19964 for ; Fri, 16 Mar 2012 16:28:04 +0000 (UTC) Received: (qmail 58550 invoked by uid 500); 16 Mar 2012 16:28:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 58482 invoked by uid 500); 16 Mar 2012 16:28:04 -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 58369 invoked by uid 99); 16 Mar 2012 16:28:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 16:28:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 16:28:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8766123D6C for ; Fri, 16 Mar 2012 16:27:40 +0000 (UTC) Date: Fri, 16 Mar 2012 16:27:40 +0000 (UTC) From: "Harald Scheckenbacher (Created) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <895551458.25216.1331915260569.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (JCR-3262) Oracle JDBC Class Cast Exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Oracle JDBC Class Cast Exception -------------------------------- Key: JCR-3262 URL: https://issues.apache.org/jira/browse/JCR-3262 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-core Affects Versions: 2.2.11 Environment: Windows (32-bit, 64-bit), Unix/Linux, JBoss AS 4.0.1sp1 Reporter: Harald Scheckenbacher Fix For: 2.2.12 When utilizing the OraclePersistenceManager (package org.apache.jackrabbit.core.persistence.db) (I realize this is marked as deprecated) we noticed during our migration from Jackrabbit 1.6.1 to 2.2.10/11 that when starting the application server an error message is displayed to us that indicates that the Connection object passed to the createTemporaryBlob method of the BLOB class can't be cast to oracle.jdbc.OracleConnection Here the interesting lines from our log: 2012-03-15 17:15:47,926 ERROR [org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager] failed to write node state: cafebabe-cafe-babe-cafe-babecafebabe java.lang.ClassCastException: org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection at oracle.sql.BLOB.createTemporary(BLOB.java:708) at org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager.createTemporaryBlob(OraclePersistenceManager.java:375) I want to highlight at this point that the do not see the issue when using the Oracle Bundled persistence manager, however due to the fact that we haven't used the bundled version in the past we have a lot of customers with repo layouts that can not be used by the bundled persistence manager - we ran some tests and noticed that the consistency check fails. -> At the moment there is no good upgrade path to move a repo to the bundled structure, the paths provided thus far are shaky at best. I did find a solution to the problem that has shown no issues thus far and wanted to share this with you: It is a one line change that can be made before the wrapped connection is passed to the Oracle driver: org.apache.jackrabbit.core.util.db.ConnectionFactory.unwrap(con); This then solves the problem, I also wanted to share that we are using an XA datasource. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira