Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!

Bug 235999

Summary: WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.dom4j.* arbitrarily from one of ModuleCL@7608443a[org.netbeans.modules.hibernatelib] and ModuleCL@770253a9[org.netbeans.libs.findbugs] starting from SystemClassLoader[805 modul
Product: java Reporter: markiewb
Component: FindBugsAssignee: Petr Hejl <phejl>
Status: RESOLVED WONTFIX QA Contact: issues <issues.netbeans.org>
Priority: P3    
Version: 7.4   
Target Milestone: TBD   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Issue Type: DEFECT Exception Report:

Description markiewb 2013-09-15 21:32:12 UTC
I have seen the following warning in the log

WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.dom4j.DocumentFactory arbitrarily from one of ModuleCL@7608443a[org.netbeans.modules.hibernatelib] and ModuleCL@770253a9[org.netbeans.libs.findbugs] starting from SystemClassLoader[805 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.dom4j.tree.QNameCache arbitrarily from one of ModuleCL@7608443a[org.netbeans.modules.hibernatelib] and ModuleCL@770253a9[org.netbeans.libs.findbugs] starting from SystemClassLoader[805 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE


Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Petr Cyhelsky 2013-09-24 12:48:32 UTC
neither org.netbeans.modules.hibernatelib or org.netbeans.modules.hibernatelib are exposing these classes so i don't see, how it can be solved on findbugs side. Reassigning to platform/Module systems. Jardo, please can you give some advice on this?
Comment 2 Jaroslav Tulach 2013-11-18 14:10:10 UTC
Stacktrace is needed, but if some module does:

ServiceLoader.load(AClassWhichIsThereTwice.class)

the module system complains as it does not know which one to load. If you give me steps to reproduce, I can investigate what to do with this on the module system side.

Otherwise you need to prevent duplication of classes that are loaded via reflection.
Comment 3 Petr Hejl 2015-03-10 14:07:58 UTC
Reporter, can you provide a stack trace?
Comment 4 markiewb 2015-03-10 21:24:30 UTC
(In reply to Petr Hejl from comment #3)
> Reporter, can you provide a stack trace?

Tried again using NB8.0.2.

There is no stacktrace. Only the single line in the log

WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.dom4j.DocumentFactory arbitrarily from one of ModuleCL@2af53811[org.netbeans.modules.hibernate4lib] and ModuleCL@3952fab0[org.netbeans.libs.findbugs] starting from SystemClassLoader[663 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE

Steps for reproduction:
* start NB8.0.2 JavaEE with a clean user dir (no additional plugins)
* open some java projects (I am not sure if this is relevant)
* Source/Inspect...
* Press the button at the bottom left to install findbugs
* Change scope in Source/Inspect... dialog to findbugs and press "Inspect"
-> now there should be the message in the log (use "find text..." to search for in the ide log)
Comment 5 Martin Balin 2016-07-07 07:18:10 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo