Hello,

in a maven plugin project, I get the following LinkageError in JavaTreeBuilder:

"loader constraint violation: loader (instance of org/netbeans/StandardModule$OneModuleClassLoader) previously initiated loading for a different type with name "javax/lang/model/util/Elements""

My guess is, the class has already been loaded as part of NetBeans, and it is loaded a second time when executing the plugin.

The project is at github (https://github.com/OldGrumble/NBWicketSupport), for testing I'm using branch "issue-2".

I added some extra lines to JavaTreeBuilder.java for easier error catching, You can set a breakpoint in line 139 of JavaTreeBuilder for looking at the exception.

The demo project I'm using is added to the branch in src/main/resources/demo.

Workflow:
1. Open Project.
2. Open CustomerTestPage.java.
3. Open CustomerTestPage.html.
4. An exception dialog pops up ("Unexpected Exception").

Probably it's important: Using NB 8.2 with JDK 1.8 on Linux.

Any help appreciated.

Kind regards

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to