Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 90676 invoked from network); 10 Jun 2005 15:41:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jun 2005 15:41:14 -0000 Received: (qmail 970 invoked by uid 500); 10 Jun 2005 15:41:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 943 invoked by uid 500); 10 Jun 2005 15:41:11 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 921 invoked by uid 99); 10 Jun 2005 15:41:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 10 Jun 2005 08:41:10 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 19D203FF for ; Fri, 10 Jun 2005 17:40:52 +0200 (CEST) Message-ID: <872112161.1118418052104.JavaMail.jira@ajax.apache.org> Date: Fri, 10 Jun 2005 17:40:52 +0200 (CEST) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-318) SYS.SYSCOLUMN problem with "GENERATED BY DEFAULT" column w/ Network Server In-Reply-To: <999020150.1117129912716.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-318?page=all ] A B resolved DERBY-318: ----------------------- Resolution: Fixed Assign To: Tomohito Nakayama Patched committed with svn revision 179674 and I have verified that the repro given in the description for this issue has been fixed. Assigning to Tomohito since he was the one who wrote the fix, and then resolving and closing this issue. > SYS.SYSCOLUMN problem with "GENERATED BY DEFAULT" column w/ Network Server > -------------------------------------------------------------------------- > > Key: DERBY-318 > URL: http://issues.apache.org/jira/browse/DERBY-318 > Project: Derby > Type: Bug > Components: Network Server > Versions: 10.1.0.0 > Environment: Derby in Network Server mode with either JCC or Derby Net Client. > Reporter: A B > Assignee: Tomohito Nakayama > Fix For: 10.1.0.0 > Attachments: DERBY-318.patch, derbyall_diff.txt > > When connected to the Derby Network Server, if one has a table with a column defined as "GENERATED BY DEFAULT" and then one tries to select the "COLUMNDEFAULT" field from SYS.SYSCOLUMNS, the result is an NPE in the server code that leads to connection deallocation. > I don't know if this is a problem with the "GENERATED BY DEFAULT" feature or if it's a problem with Network Server--more investigation is required. > To reproduce, use ij to connect to a database using Network Server, and then: > ij> create table t1 (i int generated by default as identity); > 0 rows inserted/updated/deleted > ij> select columndefault from sys.syscolumns; > COLUMNDEFAULT > ---------------------------------------------------------------------------------------------------- > ---------------------------- > null > java.lang.NullPointerException > at org.apache.derby.impl.drda.DRDAConnThread.writeFdocaVal(DRDAConnThread.java:6550) > at org.apache.derby.impl.drda.DRDAConnThread.writeFDODTA(DRDAConnThread.java:5973) > at org.apache.derby.impl.drda.DRDAConnThread.writeQRYDTA(DRDAConnThread.java:5796) > at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:595) > at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:226) > agentThread[DRDAConnThread_2,5,main] > ERROR 58009: Execution failed due to a distribution protocol error that caused deallocation of the conversation. A DRDA Data Stream Syntax Error was detected. Reason: 0x3 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira