Fair enough! Still the same message. MATLAB [] (empty array) should be treated as null in Java, but they are a bit suspicious.
- Code: Select all
% in MATLAB language
service = session.getMetadataService
rootType = 'Dataset'
rootIds = javaArray('java.lang.Long',1);
rootIds(1) = java.lang.Long(1157);
annnotationTypes = javaArray('java.lang.String',1);
annnotationTypes(1) = java.lang.String('TagAnnotation');
annotatorIds = []
options = []
service.loadAnnotations(rootType,rootIds,annnotationTypes,annotatorIds,options)