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

org.xmlresolver.Resolver error #123

Closed
CanOfBees opened this issue Sep 10, 2021 · 6 comments
Closed

org.xmlresolver.Resolver error #123

CanOfBees opened this issue Sep 10, 2021 · 6 comments

Comments

@CanOfBees
Copy link

Hi there!

When giving the ZIP distribution a trial run, I'm getting the following error:

bridger@ditrestle|~/bin/docbook/docbook-xslTNG-1.5.3
) java -jar libs/docbook-xslTNG-1.5.3.jar samples/article.xml -o:article.html
Transformation failed: Failed to instantiate class org.xmlresolver.Resolver (does it have a public zero-argument constructor?)

I'm following along in the guide.
Any suggestions for what may be going wrong? Thanks in advance!

@CanOfBees
Copy link
Author

This is looking like a "me" issue, as this step works correctly for me on a different machine. It may be outside the scope of this issue, but I'm wondering if there's a way to progressively debug this. I'm trying to execute this command on a FreeBSD machine. Here's my JVM info:

bridger@ditrestle|~/bin/docbook/docbook-xslTNG-1.5.3
) java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-1)
OpenJDK 64-Bit Server VM (build 11.0.11+9-1, mixed mode)

Is there something I can try to run to work towards debugging this? @ndw If I'm thinking about this correctly, I might be able to stand up the xmlresolver separately and see if I can get that working. Does that sound approximately correct?

Thanks very much for any suggestions you might have.

@ndw
Copy link
Contributor

ndw commented Sep 13, 2021

Apologies for not replying sooner. I feel like I have about a thousand plates to keep spinning. There's definitely a zero argument constructor on org.xmlresolver.Resolver so my guess is that the "does it have" message is a red herring.

OpenJDK 11 could be relevant. I feel like I saw a backwards incompatibility there recently. Can you try with JDK 1.8?

Can you stand up and run the sample application, https://github.com/xmlresolver/sampleapp ?

@CanOfBees
Copy link
Author

@ndw hey, please don't apologize! I should have explicitly said: "when you have some time". And you're exactly right: using OpenJDK8 seems to have addressed the problem; i.e. article.html is generated without a hitch.

I really appreciate your time! Thanks for the help!

@gimsieke
Copy link

You can also try more recent version such as 1.15 or 1.16. I once noticed a bug related to URIs (not related to catalog resolving though, IIRC) in 1.11 that wasn’t present in previous Java versions and that has apparently been resolved in 1.13.

@CanOfBees
Copy link
Author

@gimsieke thanks for that suggestion. I'm giving the xmlresolver/sampleapp a spin with different (Open)JDKs and can report back.

@ndw
Copy link
Contributor

ndw commented Sep 15, 2021

I've pushed version 1.5.4 which updates the resolver dependency.

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

3 participants