Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
JaxB2Marshaller passes null InputSource to SaxSource constructor under certain condition [SPR-10828] #15454
This appears to be a regression, since the error did not occur in 3.2.0.RELEASE. A work around is to create the StreamSource using an InputStream rather than a File.
What happens is this:
When creating a StreamSource with a file input i.e.
in the processSource(...) method the first if/else block is skipped (since its a file and the new SaxSource is created with a null inputSource. This results in a null pointer exception down stream.
Here is an excerpt from the null pointer
1 votes, 2 watchers