I have a java code and validating them on JSR 223 Preprocessor.. When i validated, i have found below error message:
Can't iterate over type: class com.couchbase.client.java.query.DefaultN1qlQueryResult
Any idea/advice to resolve the above error message? Here is code:
if(queryResult != null && !queryResult.allRows().isEmpty()){
System.out.println("RESULT CONTENTS :" + queryResult.allRows());
for (N1qlQueryRow row : queryResult) {
System.out.println(row.value().getObject("uiux-image") + "\n");
try {
System.out.println(
"prg image value iss" + row.value().getObject("uiux-image").getString("resourceId") + "\n");
resource = row.value().getObject("uiux-image").getString("resourceId");