Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 38799 invoked from network); 18 Mar 2007 20:49:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2007 20:49:45 -0000 Received: (qmail 76122 invoked by uid 500); 18 Mar 2007 20:49:53 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 76096 invoked by uid 500); 18 Mar 2007 20:49:53 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 87331 invoked by uid 99); 18 Mar 2007 01:53:38 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Message-ID: <8818105.1174182789376.JavaMail.jira@brutus> Date: Sat, 17 Mar 2007 18:53:09 -0700 (PDT) From: "Armin Waibel (JIRA)" To: ojb-dev@db.apache.org Subject: [jira] Resolved: (OJB-132) Repository load fails on Turkish In-Reply-To: <18646538.1173904029363.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/OJB-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Armin Waibel resolved OJB-132. ------------------------------ Resolution: Fixed Fix Version/s: 1.0.5 Hi Mike, thanks for the patch! Fixed in JdbcTypesHelper class. regards, Armin > Repository load fails on Turkish > -------------------------------- > > Key: OJB-132 > URL: https://issues.apache.org/jira/browse/OJB-132 > Project: OJB > Issue Type: Bug > Affects Versions: 1.0.4 > Reporter: Mike Perham > Fix For: 1.0.5 > > > The problem is due to the use of toLowerCase() in JdbcTypesHelper which uses the default system locale. Turkish has different casing rules so the lower of "INTEGER" is NOT "integer". The fix is to force the use of American locale: > result = (JdbcType) jdbcObjectTypesFromName.get(typeName.toLowerCase(Locale.US)); > Caused by: org.apache.ojb.broker.OJBRuntimeException: The type INTEGER can not be handled by OJB. Pl > ease specify only types as defined by java.sql.Types. > at org.apache.ojb.broker.metadata.JdbcTypesHelper.getJdbcTypeByName(Unknown Source) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org