MySQL Forums
Forum List  »  NDB clusters

Update records based on QueryBuilder result set for ClusterJ
Posted by: Joe Yu
Date: September 25, 2014 08:37PM

I am willing to implement a batch update feature by using QueryBuilder to get a result set from database, then change the in the result set and update to database again. However, I get null exception when trying to set value to the result data. Is it not possible to set value in the result set of QueryBuilder?

Exception in thread "main" com.mysql.clusterj.ClusterJDatastoreException: For field data column data valueDelegate object String, error executing objectSetValue. Caused by java.lang.NullPointerException:null
at com.mysql.clusterj.core.metadata.AbstractDomainFieldHandlerImpl.objectSetValue(AbstractDomainFieldHandlerImpl.java:289)
at com.mysql.clusterj.tie.NdbRecordSmartValueHandlerImpl.set(NdbRecordSmartValueHandlerImpl.java:696)
at com.mysql.clusterj.tie.NdbRecordSmartValueHandlerImpl.invoke(NdbRecordSmartValueHandlerImpl.java:722)
at com.sun.proxy.$Proxy0.setData(Unknown Source)
at com.syniverse.mysql.interfaceApp.MysqlInterface.query(MysqlInterface.java:296)
at com.syniverse.mysql.interfaceApp.MysqlInterface.main(MysqlInterface.java:547)

Options: ReplyQuote


Subject
Views
Written By
Posted
Update records based on QueryBuilder result set for ClusterJ
1275
September 25, 2014 08:37PM


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.