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

NoClassDefFoundError for XmlUtil$ExtendedEntityReplacingXmlResolver on Android #450

Closed
FilipDomazet opened this issue Sep 16, 2016 · 4 comments

Comments

@FilipDomazet
Copy link
Contributor

When using XML encoding in HAPI version 2.0 on Android and error occurs when the server reply is being parsed. This was tested on API levels 23 and 24. The jar used is hapi-fhir-android with dstu2 classifier. The stack trace is included.
NoClassDefFound XmlUtil$ExtEntReplXmlResolver Android.txt

We have checked the jar, and there is indeed a class file called XmlUtil$ExtendedEntityReplacingXmlResolver in the ca/uhn/fhir/util/ directory, so we are not sure why this error occurs.

jamesagnew added a commit that referenced this issue Sep 17, 2016
@FilipDomazet
Copy link
Contributor Author

Forgot to mention that this issue does not occur in version 1.6.

@jamesagnew
Copy link
Collaborator

I believe this is caused by the accidental removal of the Woodstox library from the Android builds. I'm going to check in a fix shortly and I'm pushing new 2.1-SNAPSHOT builds now. Do you mind to verify if this fix corrects your issue?

@FilipDomazet
Copy link
Contributor Author

It seems to be working now.

@jamesagnew
Copy link
Collaborator

Closing

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

2 participants