Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payara 588 Excessive logging from the ASURL classloader. #659

Merged
merged 3 commits into from
Feb 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,4 @@ public void run(){
stopActiveResourceAdapter(moduleName);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
//Portions Copyright [2016] [C2B2 Consulting Limited and/or its affiliates]

package com.sun.enterprise.loader;

Expand Down Expand Up @@ -562,11 +563,20 @@ public URL findResource(String name) {
* (b) changes to contents or length of 'resourcesList' and/or 'notFoundResources' while iterating
* over them, (c) thread visibility to all of the above.
*/
private boolean warnedOnce = false;
public synchronized Enumeration<URL>
findResources(String name) throws IOException {
if( doneCalled ) {
_logger.log(Level.WARNING, CULoggerInfo.doneAlreadyCalled,
//PAYARA-588
if ( warnedOnce ) {
_logger.log(Level.FINE, CULoggerInfo.doneAlreadyCalled,
new Object[] { name, doneSnapshot });

}else{
_logger.log(Level.WARNING, CULoggerInfo.doneAlreadyCalled,
new Object[] { name, doneSnapshot });
warnedOnce = true;
}
// return an empty enumeration instead of null. See issue #13096
return Collections.enumeration(Collections.EMPTY_LIST);
}
Expand Down