db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Diaz (JIRA)" <j...@apache.org>
Subject [jira] Created: (TORQUE-154) A BLOB with NULL as its value causes a Null Pointer Exception
Date Sat, 05 Mar 2011 04:57:46 GMT
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

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.

            	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

View raw message