0
XMLStreamReader
인터페이스를 사용하는 StAX 파서를 사용하고 있습니다. XMLSteamReader
. next
은 XMLStreamException
을 던졌습니다.return responseEntity는 흐름을 중단합니다.
나는 ResponseEntity 인스턴스
전 사용, 반환 및 흐름을 깰 :
catch (IOException | XMLStreamException e) {
message = e.getMessage();
log.debug(message);
return new ResponseEntity<String>(message, HttpStatus.BAD_REQUEST);
}
내가 얻을 메시지를 :
[DEBUG] test.rng (No such file or directory)
내가 반환하지 않는,
다음과 같이 표시됩니다.
[DEBUG] test.rng (No such file or directory)
[DEBUG] "fservice/.../1.2.3/1/test.rng.xml" (Line 16): The end-tag for element type "elem" must end with a '>' delimiter.
이제 두 번째 메시지도 더 자세히 설명해야합니다. 어떻게해야합니까?
하지만 확인해 보니 동일한 문제가 해결 되었습니까? 왜 두 개의 다른 디버그 메시지가 있습니까? - – psedonerd
"왜 두 가지 다른 디버그 메시지가 있습니까?" 몰라. 첫 번째 메시지가 왜 그랬는지는 분명하지 않습니다.'DEBUG.message '가 무엇인지 알지 못했습니다. –
그래서 나는 같은 메시지를 얻기 위해 내가 돌아 오면 안된다는 것을 추측하고 있습니까? 하지만 그게 정확하지 않은가요? – psedonerd