Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 49910 invoked from network); 7 Oct 2006 00:30:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Oct 2006 00:30:38 -0000 Received: (qmail 85743 invoked by uid 500); 7 Oct 2006 00:30:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 85534 invoked by uid 500); 7 Oct 2006 00:30:37 -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 85525 invoked by uid 99); 7 Oct 2006 00:30:37 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2006 17:30:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:40516] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id E8/5F-24193-C25F6254 for ; Fri, 06 Oct 2006 17:30:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3B97C7141F7 for ; Fri, 6 Oct 2006 17:30:21 -0700 (PDT) Message-ID: <7471370.1160181021241.JavaMail.root@brutus> Date: Fri, 6 Oct 2006 17:30:21 -0700 (PDT) From: "Francois Orsini (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-790) SQLException used by the networked interface to Derby is not serializable In-Reply-To: <1746339400.1136306043669.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-790?page=all ] Francois Orsini updated DERBY-790: ---------------------------------- Attachment: DERBY-790-v2.stat DERBY-790-v2.diff Knut, Thanks for the review on this patch. I've incorporated all the suggestions and increased the amount of test logic as far as comparing the original exception with the serialized one. As part of the test logic in SqlExceptionTest.java, I'm now also using a batch to execute several batch elements and hence generate a few chained / nested exceptions. I've tested under 1.3, 1.4, 1.5 & 1.6 Java runtime environments as well as under DerbyNetClient and DerbyNet frameworks as well as well as no framework. I have tested and called getMessage() several times for _each_ of the serialized exceptions generated from the BatchUpdateException and I'm not getting the behavior you described - I get the exact same message than the original exception with no added string. The comparison of both the original and the serialized exceptions is thoroughly tested in BaseJDBCTestCase.java:assertSQLExceptionEquals() and that includes any chained exceptions. Hence, I'm not sure how you got into the case you described and I would appreciate if you could post the logic for the test you ran as well as your java and platform environment. In the meantime, I have attached the new changes. Thanks, > SQLException used by the networked interface to Derby is not serializable > ------------------------------------------------------------------------- > > Key: DERBY-790 > URL: http://issues.apache.org/jira/browse/DERBY-790 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client, Network Server > Affects Versions: 10.1.1.0 > Environment: Windows XP; WebLogic Server 9.0 > Reporter: David Cabelus > Assigned To: Francois Orsini > Fix For: 10.2.2.0 > > Attachments: DERBY-790-v1.diff, DERBY-790-v1.stat, DERBY-790-v2.diff, DERBY-790-v2.stat > > > When running RMI client tests with Derby, many tests failed with the following message: > Caused by: java.rmi.UnmarshalException: Failed to marshal error response: > 'org.apache.derby.client.am.SqlException: 'DROP TABLE' cannot be performed on > 'SDF014B7' because it does not exist.' because exception ; nested exception > is: > java.io.NotSerializableException: > org.apache.derby.client.net.NetSqlca > at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:191) > at > weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:176) > This issue is a blocking issue for us. -- 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