You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Rich Diaz (JIRA)" <ji...@apache.org> on 2011/03/05 05:57:46 UTC
[jira] Created: (TORQUE-154) A BLOB with NULL as its value causes a
Null Pointer Exception
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.
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
[jira] Updated: (TORQUE-154) A BLOB with NULL as its value causes a
Null Pointer Exception
Posted by "Rich Diaz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rich Diaz updated TORQUE-154:
-----------------------------
Attachment: npe-null-blob.patch
found it, patch attached
> 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
> 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
[jira] [Commented] (TORQUE-154) A BLOB with NULL as its value
causes a Null Pointer Exception
Posted by "ben (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396381#comment-13396381 ]
ben commented on TORQUE-154:
----------------------------
For people who are lost, here is more general information about blobs, with some hibernate thrown in:
http://i-proving.com/2006/08/23/blobs-and-hibernate/
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] Resolved: (TORQUE-154) A BLOB with NULL as its value causes
a Null Pointer Exception
Posted by "Rich Diaz (JIRA)" <ji...@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
[jira] [Updated] (TORQUE-154) A BLOB with NULL as its value causes
a Null Pointer Exception
Posted by "Thomas Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fox updated TORQUE-154:
------------------------------
Fix Version/s: (was: 3.3)
3.3.1
> 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.1
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Reopened] (TORQUE-154) A BLOB with NULL as its value causes
a Null Pointer Exception
Posted by "Thomas Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fox reopened TORQUE-154:
-------------------------------
> 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.1
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] Closed: (TORQUE-154) A BLOB with NULL as its value causes a
Null Pointer Exception
Posted by "Thomas Vandahl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Vandahl closed TORQUE-154.
---------------------------------
The patch is contained in village-3.3.1
> 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
[jira] [Closed] (TORQUE-154) A BLOB with NULL as its value causes a
Null Pointer Exception
Posted by "Thomas Fox (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TORQUE-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fox closed TORQUE-154.
-----------------------------
Resolution: Fixed
> 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.1
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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