Getting java.lang.LinkageError: loader constraint violation: loader (instance of com/intellij/ide/plugins/cl/PluginClassLoader) previously initiated loading for a different type with name "org/w3c/dom/Document" error

Answered

Hi,

I am using the following code to add hyperlink listeners for the content of my WebView,

webEngine.getLoadWorker().stateProperty().addListener(new ChangeListener<Worker.State>() {
@Override
public void changed(ObservableValue ov, Worker.State oldState, Worker.State newState) {

if (newState == Worker.State.SUCCEEDED) {
NodeList nodeList = webEngine.getDocument().getElementsByTagName(HYPERLINK_TAG);

}
}
});

But I am getting the following error when the code executed,

java.lang.LinkageError: loader constraint violation: loader (instance of com/intellij/ide/plugins/cl/PluginClassLoader) previously initiated loading for a different type with name "org/w3c/dom/Document"

can someone please help me to figure out what is the exact issue causing this and how to fix it.

0
2 comments
Avatar
Permanently deleted user

Please check if you have TFS plugin (by JetBrains) in Marketplace. Then try to disable it and restart. If it doesn't help, please try to find org.w3c.dom.Document class among other plugins you have, try to disable.

0
Avatar
Permanently deleted user

If this is still actual and reproducible, could you please provide the full stack trace?

0

Please sign in to leave a comment.