Return-Path: X-Original-To: apmail-portals-jetspeed-dev-archive@www.apache.org Delivered-To: apmail-portals-jetspeed-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 58AD71880C for ; Thu, 2 Jul 2015 09:40:05 +0000 (UTC) Received: (qmail 25297 invoked by uid 500); 2 Jul 2015 09:40:05 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 25253 invoked by uid 500); 2 Jul 2015 09:40:05 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 25226 invoked by uid 99); 2 Jul 2015 09:40:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 09:40:04 +0000 Date: Thu, 2 Jul 2015 09:40:04 +0000 (UTC) From: "Martin Maidhof (JIRA)" To: jetspeed-dev@portals.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (JS2-1329) Number ClassCastException on Oracle MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JS2-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Maidhof updated JS2-1329: -------------------------------- Attachment: JetspeedSecurityPersistenceManager.java.patch > Number ClassCastException on Oracle > ------------------------------------ > > Key: JS2-1329 > URL: https://issues.apache.org/jira/browse/JS2-1329 > Project: Jetspeed 2 > Issue Type: Bug > Components: Components:PersistenceStore > Affects Versions: 2.3.0 > Environment: Windows 7, Tomcat 7.0.56, Java 1.8.0_25, Oracle 10.2.0.1.0 > Reporter: Martin Maidhof > Fix For: 2.3.0 > > Attachments: ClassCastException.txt, JetspeedSecurityPersistenceManager.java.patch > > > In the JetspeedSecurityPersistenceManager there are casts to Integer (IDs from database) which won't work on Oracle. Oracle returns BigDecimal for NUMBER columns causing the attached ClassCastException. > This takes place e.g. when RoleManagerImpl.isUserInRole is called. > The problem is explained here: > http://stackoverflow.com/questions/1419109/resultsetmetadata-returning-bigdecimal-insted-of-int > http://docs.oracle.com/cd/B14117_01/java.101/b10979/datacc.htm > I patched the JetspeedSecurityPersistenceManager see attachment which fulfills our needs. I don't know whether there are other wrong casts for Oracle. > The problem occured with commit 1678139 from JS2-1324. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org