朋友,我遇到以下非数字错误,谁可以帮助我解决此问题?
getServiceHub().getVaultService().queryBy(SampleState.class)
.getStates().stream()
// Filter based on field value "XYZ"
.filter(sampleStateAndRef -> {
SampleState sampleState = sampleStateStateAndRef.getState().getData();
return sampleState.getField().equals("XYZ");
}).findAny().orElseThrow(() -> new FlowException("State Not Found"));