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 214019 - Tons of Logger INFO messages: java.lang.Exception: Dangerouns reflection access to sun.misc.Cleaner detected!
Summary: Tons of Logger INFO messages: java.lang.Exception: Dangerouns reflection acce...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 214737 (view as bug list)
Depends on: 213396
Blocks:
  Show dependency tree
 
Reported: 2012-06-12 07:39 UTC by Miloslav Metelka
Modified: 2012-09-10 13:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
One message with stack trace (3.61 KB, text/plain)
2012-06-12 07:39 UTC, Miloslav Metelka
Details
Path - Whitelist (1.72 KB, patch)
2012-06-21 12:39 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2012-06-12 07:39:19 UTC
Created attachment 120714 [details]
One message with stack trace

Lucene performs reflection in sun.misc.Cleaner which leads to a message and stack trace printed to console for each lucene request so mainly IDE startup generates tons of these messages but also a save etc.
This happens due to issue #213396.
Comment 1 Jaroslav Tulach 2012-06-12 14:40:07 UTC
ergonomics#318485947a17 makes sure that each violation is printed just once.
Comment 2 Jesse Glick 2012-06-14 16:06:24 UTC
As the author of the log line you should be creating an initial whitelist. Anyway even after 318485947a17 a new line is printed for each call, which is still annoying - fills logs with irrelevant messages about the output window.
Comment 3 Jaroslav Havlin 2012-06-21 12:39:41 UTC
Created attachment 121171 [details]
Path - Whitelist

Can the whitelist be implemented this way (hard-coded set)?
Please check the patch and tell me if I can commit it.
Comment 4 Jaroslav Havlin 2012-06-26 07:14:05 UTC
*** Bug 214737 has been marked as a duplicate of this bug. ***
Comment 5 Miloslav Metelka 2012-06-26 17:33:29 UTC
Not sure whether Jesse would reply... from my point of view your patch is fine.
Comment 6 Jaroslav Tulach 2012-06-27 08:13:31 UTC
Yes, the patch seems OK to me as well.
Comment 7 Jaroslav Havlin 2012-06-27 11:18:36 UTC
Thank you.
Patch integrated as core-main#a684df2fe483.
Comment 8 Quality Engineering 2012-06-28 04:54:01 UTC
Integrated into 'main-golden', will be available in build *201206280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a684df2fe483
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #214019: Tons of Logger INFO messages - Whitelist added
Comment 9 Jaroslav Havlin 2012-07-27 09:44:48 UTC
http://hg.netbeans.org/releases/rev/6401f90820c5
Integrated into release72 branch.
See bug 215895.
Comment 10 Quality Engineering 2012-09-01 11:10:54 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/6401f90820c5
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #214019: Tons of Logger INFO messages - Whitelist added
Comment 11 Tomas Danek 2012-09-10 13:59:53 UTC
did not notice this log spamming in 7.2 + patch1 -> verified.