I get this Error below when i tried using the one to many relation data retrieval. what could be the reason for the error
Find my sample code below:
pizzato [13 hours ago]
LoadRelationsQueryBuilder loadRelationsQueryBuilder;
loadRelationsQueryBuilder = LoadRelationsQueryBuilder.of(hostelImages.class);
loadRelationsQueryBuilder.setRelationName(“imageSlide”);
String parentObjectId = "306927CB-AF54-8E9C-FFA3-EFAE53A2B600";
Backendless.Data.of("hostel").loadRelations(parentObjectId,
loadRelationsQueryBuilder, new AsyncCallback<List<hostelImages>>() {
@Override
public void handleResponse(List<hostelImages> response) {
for (int i = 0; i < response.size(); i++){
*//*String imgUrl = response.get(i).getImage();
TextSliderView textSlider = new TextSliderView(hostelInfo.this);
textSlider.description(response.get(i).getName());
textSlider.image(imgUrl);
Toast.makeText(hostelInfo.this, "Hi: " + imgUrl, Toast.LENGTH_SHORT).show();
//slider.addSlider(textSlider);*//*
}
Toast.makeText(hostelInfo.this, "Size: "+ response.size(), Toast.LENGTH_SHORT).show();
}
@Override
public void handleFault(BackendlessFault fault) {
Toast.makeText(hostelInfo.this, "Error :" + fault.getMessage(), Toast.LENGTH_LONG).show();
}
});