Bug 1299674
Summary: | xmlpull.jar causes java.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.ws.Service" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Richard Chan <rc556677> |
Component: | groovy | Assignee: | Michal Srb <msrb> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | java-sig-commits, mizdebsk, msrb |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | groovy-2.4.4-3.fc23 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-02-29 22:22:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1299774 | ||
Bug Blocks: |
Description
Richard Chan
2016-01-19 00:10:08 UTC
Can reproduce the error on RHEL 7. groovy 1.8 Same issue if I set JAVA_HOME to Oracle JDK. The issue may be the Fedora wrapper scripts. With Oracle JDK: [Loaded javax.xml.namespace.QName from file:/usr/share/groovy/lib/xmlpull.jar] [Loaded javax.xml.namespace.QName from /opt/java/jdk1.8.0_60/jre/lib/rt.jar] Caught: java.lang.LinkageError: loader constraint violation: A "hotfix" is to remove the link from /usr/share/groovy/xmlpull.jar to /usr/share/java/xpp3.jar OR link it to upstream's groovy-2.4.5/lib/xmlpull-1.1.3.1.jar. I have verified that this works. Maybe a bug in xpp3? It should not bundle javax/xml/namespace/QName.class This may actually be a bug in xpp3.jar (not sure why it bundles QName). I have filed 1299679. Not a bug in xpp3 either: maybe groovy should link to xpp3_min /usr/share/groovy/xmlpull.jar -> /usr/share/java/xpp3_min.jar instead of /usr/share/java/xpp3.jar. This is what upstream seems to do: its xmlpull.jar looks more like xpp3_min.jar instead of xpp3.jar. On Fedora should be xpp3-minimal.jar ln -fs /usr/share/java/xpp3-minimal.jar /usr/share/groovy/xmlpull.jar Thanks for the bug report Richard, and thanks for your analysis of the problem. You're right, the symlink should point to "minimal" version of the xpp3 library. groovy-2.4.4-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d814445cea groovy-2.4.4-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d814445cea groovy-2.4.4-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |