Change logging lvl for XMLStreamException
This commit is contained in:
parent
692dacc553
commit
bec4250cf5
2 changed files with 17 additions and 5 deletions
|
|
@ -47,6 +47,9 @@ public class XmlProcessorStaxImpl implements StaxXmlProcessor {
|
||||||
return staxProcessor.read(xmlStreamReader);
|
return staxProcessor.read(xmlStreamReader);
|
||||||
}
|
}
|
||||||
throw new IllegalStateException("no stax reader registered for " + clazz);
|
throw new IllegalStateException("no stax reader registered for " + clazz);
|
||||||
|
} catch (XMLStreamException e) {
|
||||||
|
log.warn(ExceptionUtils.getStackTrace(e));
|
||||||
|
throw new RuntimeException(e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(ExceptionUtils.getStackTrace(e));
|
log.error(ExceptionUtils.getStackTrace(e));
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
@ -63,6 +66,9 @@ public class XmlProcessorStaxImpl implements StaxXmlProcessor {
|
||||||
return staxProcessor.read(xmlStreamReader);
|
return staxProcessor.read(xmlStreamReader);
|
||||||
}
|
}
|
||||||
throw new IllegalStateException("no stax reader registered for " + clazz);
|
throw new IllegalStateException("no stax reader registered for " + clazz);
|
||||||
|
} catch (XMLStreamException e) {
|
||||||
|
log.warn(ExceptionUtils.getStackTrace(e));
|
||||||
|
throw new RuntimeException(e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(ExceptionUtils.getStackTrace(e));
|
log.error(ExceptionUtils.getStackTrace(e));
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
@ -79,6 +85,9 @@ public class XmlProcessorStaxImpl implements StaxXmlProcessor {
|
||||||
return staxProcessor.read(xmlStreamReader);
|
return staxProcessor.read(xmlStreamReader);
|
||||||
}
|
}
|
||||||
throw new IllegalStateException("no stax reader registered for " + clazz);
|
throw new IllegalStateException("no stax reader registered for " + clazz);
|
||||||
|
} catch (XMLStreamException e) {
|
||||||
|
log.warn(ExceptionUtils.getStackTrace(e));
|
||||||
|
throw new RuntimeException(e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(ExceptionUtils.getStackTrace(e));
|
log.error(ExceptionUtils.getStackTrace(e));
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
@ -95,6 +104,9 @@ public class XmlProcessorStaxImpl implements StaxXmlProcessor {
|
||||||
return staxProcessor.read(xmlStreamReader, objProcessor, batchSize, endBatchElementPath);
|
return staxProcessor.read(xmlStreamReader, objProcessor, batchSize, endBatchElementPath);
|
||||||
}
|
}
|
||||||
throw new IllegalStateException("no stax reader registered for " + clazz);
|
throw new IllegalStateException("no stax reader registered for " + clazz);
|
||||||
|
} catch (XMLStreamException e) {
|
||||||
|
log.warn(ExceptionUtils.getStackTrace(e));
|
||||||
|
throw new RuntimeException(e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(ExceptionUtils.getStackTrace(e));
|
log.error(ExceptionUtils.getStackTrace(e));
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<User>0001ZZ000001</User>
|
<User>0001ZZ000001</User>
|
||||||
<ReportCreated>08.07.2025 20:00:33</ReportCreated>
|
<ReportCreated>08.07.2025 20:00:33</ReportCreated>
|
||||||
<Persons>
|
<Persons>
|
||||||
<Person uid="abc123">
|
<Person uid="1">
|
||||||
<Inquiry own="0" inq_p="1" amount="30000" currency="RUB" serial_num="2503180011" date="01.01.2025" bus_category="BANK" inq_t="1" channel="XML">
|
<Inquiry own="0" inq_p="1" amount="30000" currency="RUB" serial_num="2503180011" date="01.01.2025" bus_category="BANK" inq_t="1" channel="XML">
|
||||||
<Signal n="16"/>
|
<Signal n="16"/>
|
||||||
<Signal n="25"/>
|
<Signal n="25"/>
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<Signal n="25"/>
|
<Signal n="25"/>
|
||||||
</Inquiry>
|
</Inquiry>
|
||||||
</Person>
|
</Person>
|
||||||
<Person uid="abc124">
|
<Person uid="2">
|
||||||
<Inquiry own="0" inq_p="3" amount="30000" currency="RUB" serial_num="2503180011" date="03.03.2025" bus_category="MKK" inq_t="1" channel="XML">
|
<Inquiry own="0" inq_p="3" amount="30000" currency="RUB" serial_num="2503180011" date="03.03.2025" bus_category="MKK" inq_t="1" channel="XML">
|
||||||
<Signal n="16"/>
|
<Signal n="16"/>
|
||||||
<Signal n="25"/>
|
<Signal n="25"/>
|
||||||
|
|
@ -23,19 +23,19 @@
|
||||||
<Signal n="27"/>
|
<Signal n="27"/>
|
||||||
</Inquiry>
|
</Inquiry>
|
||||||
</Person>
|
</Person>
|
||||||
<Person uid="abc125">
|
<Person uid="3">
|
||||||
<Inquiry own="0" inq_p="4" amount="30000" currency="RUB" serial_num="2503180011" date="04.04.2025" bus_category="CAT" inq_t="1" channel="XML">
|
<Inquiry own="0" inq_p="4" amount="30000" currency="RUB" serial_num="2503180011" date="04.04.2025" bus_category="CAT" inq_t="1" channel="XML">
|
||||||
<Signal n="16"/>
|
<Signal n="16"/>
|
||||||
<Signal n="25"/>
|
<Signal n="25"/>
|
||||||
</Inquiry>
|
</Inquiry>
|
||||||
</Person>
|
</Person>
|
||||||
<Person uid="abc126">
|
<Person uid="4">
|
||||||
<Inquiry own="0" inq_p="5" amount="30000" currency="RUB" serial_num="2503180011" date="05.05.2025" bus_category="BBB" inq_t="1" channel="XML">
|
<Inquiry own="0" inq_p="5" amount="30000" currency="RUB" serial_num="2503180011" date="05.05.2025" bus_category="BBB" inq_t="1" channel="XML">
|
||||||
<Signal n="16"/>
|
<Signal n="16"/>
|
||||||
<Signal n="25"/>
|
<Signal n="25"/>
|
||||||
</Inquiry>
|
</Inquiry>
|
||||||
</Person>
|
</Person>
|
||||||
<Person uid="abc127">
|
<Person uid="5">
|
||||||
<Inquiry own="0" inq_p="6" amount="30000" currency="RUB" serial_num="2503180011" date="06.06.2025" bus_category="CCC" inq_t="1" channel="XML">
|
<Inquiry own="0" inq_p="6" amount="30000" currency="RUB" serial_num="2503180011" date="06.06.2025" bus_category="CCC" inq_t="1" channel="XML">
|
||||||
<Signal n="16"/>
|
<Signal n="16"/>
|
||||||
</Inquiry>
|
</Inquiry>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue