Bug #16602 Null PointerException while updating blob field with setBytes(bytes)
Submitted: 18 Jan 2006 11:48 Modified: 18 Feb 2006 13:11
Reporter: sooriya kala Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:Windows (Win2000)
Assigned to: CPU Architecture:Any

[18 Jan 2006 11:48] sooriya kala
Description:
I want to store encoded public key of Javax.crypto in DB.So i choose blob 

datatype.The encoded key is stored while using insert query,

but while i using update query.. NullPointerException comes..

Plss suggest me a solution..

How to repeat:

KeyPairGenerator	keyGen	=	KeyPairGenerator.getInstance(ALGORITHM);
		
keyGen.initialize(keysize);
		
KeyPair	key		=	keyGen.generateKeyPair();

PublicKey pub			=	pair.getPublic();

byte[] pubEncoded    = pub.getEncoded();

     Save encoded bytes in db as blob field..

              use insert query to insert encoded key..
               again use update query to update the bytes..
[18 Jan 2006 13:09] Aleksey Kishkin
it doesn't look like feature request. Changed severity to S3.
[18 Jan 2006 13:11] Aleksey Kishkin
Sooriya, it's not clear how you insert that blob and how you update it. Could you please to provide more detailed testcase?
[19 Feb 2006 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".