Skip navigation links

MySQL Forums :: Cluster :: Errors saving to BLOB via ClusterJ


Advanced Search

Re: Errors saving to BLOB via ClusterJ
Posted by: Jacek Furmankiewicz ()
Date: March 16, 2012 01:41PM

Hi Craig, I've started using the @Lob, but I get this error now upon persisting

16-Mar-2012 3:32:18 PM com.mysql.clusterj.tie.Utility throwError
SEVERE: Error in NdbJTie: returnCode -1, code 839, mysqlCode -1, status 2, classification 3, message Illegal null attribute .
[ERROR] 2012-03-16 15:32:18.842 com.mysql.clusterj.tie - Error in NdbJTie: returnCode -1, code 839, mysqlCode -1, status 2, classification 3, message Illegal null attribute .

I checked my entity and both values are set, not null. So where is this null attribute error coming from?

Code below:


@PersistenceCapable(table="T_SUBSCRIBER_CACHE")
@PrimaryKey(column="F_KEY")
public interface SubscriberCache {

@Column(name="F_KEY")
String getKey();
void setKey(String key);

@Column(name="F_VALUE")
@Lob
byte[] getValue();
void setValue(byte[] value);
}


DB table:



CREATE TABLE `T_SUBSCRIBER_CACHE` (
`F_KEY` VARCHAR(255) NOT NULL,
`F_VALUE` BLOB NOT NULL,
`F_LASTMODIFY_TIME` timestamp DEFAULT NOW() ON UPDATE NOW() NOT NULL,
CONSTRAINT PK_SUBSCRIBER_CACHE PRIMARY KEY (`F_KEY`)
) ENGINE=NDB;

Options: ReplyQuote


Subject Views Written By Posted
Errors saving to BLOB via ClusterJ 1222 Jacek Furmankiewicz 03/09/2012 09:23AM
Re: Errors saving to BLOB via ClusterJ 643 Jacek Furmankiewicz 03/09/2012 09:51AM
Re: Errors saving to BLOB via ClusterJ 732 Craig Russell 03/09/2012 03:19PM
Re: Errors saving to BLOB via ClusterJ 653 Jacek Furmankiewicz 03/16/2012 01:41PM
Re: Errors saving to BLOB via ClusterJ 650 Craig Russell 03/21/2012 09:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.