Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 34207 invoked from network); 5 Mar 2011 15:25:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Mar 2011 15:25:10 -0000 Received: (qmail 4232 invoked by uid 500); 5 Mar 2011 15:25:10 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 4193 invoked by uid 500); 5 Mar 2011 15:25:09 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 4185 invoked by uid 99); 5 Mar 2011 15:25:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2011 15:25:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2011 15:25:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E4E6C56121 for ; Sat, 5 Mar 2011 15:24:45 +0000 (UTC) Date: Sat, 5 Mar 2011 15:24:45 +0000 (UTC) From: "Rich Diaz (JIRA)" To: torque-dev@db.apache.org Message-ID: <1161170549.958.1299338685934.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <124198622.628.1299301066360.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (TORQUE-154) A BLOB with NULL as its value causes a Null Pointer Exception 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/TORQUE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rich Diaz resolved TORQUE-154. ------------------------------ Resolution: Not A Problem Fix Version/s: 3.3 I'm resolving this it does not happen in torque 3.3. > A BLOB with NULL as its value causes a Null Pointer Exception > ------------------------------------------------------------- > > Key: TORQUE-154 > URL: https://issues.apache.org/jira/browse/TORQUE-154 > Project: Torque > Issue Type: Bug > Components: Village > Affects Versions: 3.3 > Environment: windows, mssql 2005 > Reporter: Rich Diaz > Priority: Critical > Fix For: 3.3 > > Attachments: npe-null-blob.patch > > > NPE was thrown while running the datadump task on MSSQL database. It first happened on Torque-gen 3.1 which has village-2.0.jar, so I took the village-3.3.jar from torque-gen-3.3. > I did a search and found this link http://mail-archives.apache.org/mod_mbox/turbine-user/200401.mbox/%3C373EC11E4993DF4F9DCBD2E630568CE31F82F9@xch-au-20.au.nos.boeing.com%3E > Looks like someone found that out in 2004. > For village 3.3 the NPE is in Value.java line 153. I checked out the village source from svn, put a null check and I was able to get my datadump working. It's a simple null check fix. I don't see where to attach a file to this ticket so i'll just post the code here. > if(blob!=null){ > valueObject = blob.getBytes(1, (int) blob.length()); > } -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org