Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Stax2ByteArraySource, encodings other than UTF-8 #117

Closed
cowtowncoder opened this issue Oct 16, 2020 · 0 comments
Closed

Problem with Stax2ByteArraySource, encodings other than UTF-8 #117

cowtowncoder opened this issue Oct 16, 2020 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: created for FasterXML/jackson-dataformat-xml#428)

Looks like construction of an XMLStreamReader with code like:

XMLStreamReader getReader(byte[] b) throws XMLStreamException
{
    XMLInputFactory2 f = ...
    Stax2ByteArraySource src = new Stax2ByteArraySource(b, 0, b.length);
    return f.createXMLStreamReader(src);
}

fails with an NPE.

@cowtowncoder cowtowncoder modified the milestones: 6.2.0, 6.2.3 Oct 16, 2020
odl-github pushed a commit to opendaylight/odlparent that referenced this issue Oct 27, 2020
Fixes:
FasterXML/woodstox#112
FasterXML/woodstox#117

Change-Id: I34494517ba1af3cf41013f63909db43f05ca30b2
Signed-off-by: Robert Varga <[email protected]>
odl-github pushed a commit to opendaylight/odlparent that referenced this issue Oct 27, 2020
Fixes:
FasterXML/woodstox#112
FasterXML/woodstox#117

Change-Id: I34494517ba1af3cf41013f63909db43f05ca30b2
Signed-off-by: Robert Varga <[email protected]>
(cherry picked from commit 6b0e6c3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant