Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 80819 invoked from network); 9 Jan 2011 22:59:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jan 2011 22:59:11 -0000 Received: (qmail 56949 invoked by uid 500); 9 Jan 2011 22:59:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 56910 invoked by uid 500); 9 Jan 2011 22:59:10 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 56903 invoked by uid 99); 9 Jan 2011 22:59:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jan 2011 22:59:10 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jan 2011 22:59:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p09MwlGF000248 for ; Sun, 9 Jan 2011 22:58:47 GMT Message-ID: <5956095.243561294613927077.JavaMail.jira@thor> Date: Sun, 9 Jan 2011 17:58:47 -0500 (EST) From: "Lily Wei (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4961) org.apache.derby.tools.sysinfo return wrong minor & major versions if ClientDriver is used In-Reply-To: <7524304.214151294417125932.JavaMail.jira@thor> 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 [ https://issues.apache.org/jira/browse/DERBY-4961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979427#action_12979427 ] Lily Wei commented on DERBY-4961: --------------------------------- Thanks Knut for look into this issue and provide the solution. It sounds very reasonable. Juraj:Will you be able to apply it in your environment? Do you see any further issue relate to this topic? > org.apache.derby.tools.sysinfo return wrong minor & major versions if ClientDriver is used > ------------------------------------------------------------------------------------------ > > Key: DERBY-4961 > URL: https://issues.apache.org/jira/browse/DERBY-4961 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.7.1.1 > Reporter: Juraj Burian > > I am not sure that this is a bug. > Hibernate uses code like this: > final Class sysinfoClass = ReflectHelper.classForName( "org.apache.derby.tools.sysinfo", this.getClass() ); > final Method majorVersionGetter = sysinfoClass.getMethod( "getMajorVersion", ReflectHelper.NO_PARAM_SIGNATURE ); > final Method minorVersionGetter = sysinfoClass.getMethod( "getMinorVersion", ReflectHelper.NO_PARAM_SIGNATURE ); > driverVersionMajor = ( (Integer) majorVersionGetter.invoke( null, ReflectHelper.NO_PARAMS ) ).intValue(); > driverVersionMinor = ( (Integer) minorVersionGetter.invoke( null, ReflectHelper.NO_PARAMS ) ).intValue(); > The problem is that if ClientDriver is used, this code returns -1, -1 instead of correct version numbers. > Hibernate checks versions and if not correct numbers returned, then exception is raised (versions are checked when sequence is used - so it is new feature for both of sides :-) ) > I tried test this by hands and achieved the same behavior. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.