This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235999 - 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
Summary: WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.dom4j.* arbi...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: FindBugs (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-15 21:32 UTC by markiewb
Modified: 2016-07-07 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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