Closed rdulmina closed 11 months ago
It definitely sounds odd, and about the only guess I have is that somehow you do have an older Woodstox version: these limits were added in version 4.2.0. So I would try to double-check which version Gradle resolves, as well as whether there is any chance that a jar of an older version might be deployed somehow.
As to bug: if you could create a simple project with no external dependencies I could check, but I think that is quite unlikely.
Cannot reproduce, closing.
I'm using
'com.fasterxml.woodstox:woodstox-core:6.5.0'
dependency to work withXMLInputFactory
viaWstxInputFactory
In a gradle project. When I try to run the below code,I'm getting
failed to parse xml: Unrecognized property 'com.ctc.wstx.maxEntityCount'
I have included the woodstox dependency in my
build.gradle
(implementation 'com.fasterxml.woodstox:woodstox-core:6.5.0'
).I have debugged my code and verified that
xmlInputFactory
instance is aWstxInputFactory
instance.I also tried excluding
com.codehaus.woodstox
like below to make sure this is not an issue of transitive dependency conflict sinceP_MAX_ENTITY_COUNT
is not available incom.codehaus.woodstox
versions.Is this a bug or am I doing something wrong? It would be much appreciated if anyone can help with this. Thanx in advance.