Unable to parse validation.xml with IBM JDK

Description

HV can't read validation.xml on IBM JDK, causing a failure during creation of a ValidatorFactory - the failure:

It looks like this is because XmlParserHelper (line 109) calls reset() on a xmlInputStream which was used for creating a XMLEventReader earlier - and for some reason, IBM JDK behaves in a way that it closes the input stream when creating a XMLEventReader out of it. So calling reset() ends with an IOException.

How to reproduce - have any validation.xml on the classpath and run this code on IBM JDK:

Environment

None

Status

Assignee

Hardy Ferentschik

Reporter

Jan Martiška

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Blocker
Configure