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 262583 - [regression] Editing JSP content starts `Scanning Facelets libraries...` indefinitely
Summary: [regression] Editing JSP content starts `Scanning Facelets libraries...` inde...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.2
Hardware: Macintosh Mac OS X
: P1 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords: REGRESSION
: 262376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-27 08:09 UTC by brettryan
Modified: 2016-07-14 08:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (92.25 KB, text/plain)
2016-06-27 08:10 UTC, brettryan
Details
thread dump while 'scanning facelets libraries' is never finishing (55.90 KB, text/plain)
2016-07-07 11:51 UTC, tveimo
Details
NetBeans sdtout log with thread-dump (28.48 KB, application/octet-stream)
2016-07-08 09:32 UTC, brettryan
Details
NetBeans stderr log (195.70 KB, application/octet-stream)
2016-07-08 09:35 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2016-06-27 08:09:57 UTC
Product Version = NetBeans IDE Dev (Build 201606270002)
Operating System = Mac OS X version 10.11.4 running on x86_64
Java; VM; Vendor = 1.8.0_92
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.92-b14

Reproducibility: Happens every time

STEPS:
  * Open or create Java Web project. Using Maven web in this case.
  * Edit a JSP fragment
  * Note `Scanning Facelets libraries...` process starts.

ACTUAL:
Scanning Facelets libraries... process starts and never completes. This prevents any other inspected process from executing such as navigate sources or code completion.

EXPECTED:
Process should exit quickly. Note that the project in question does not use facelets and is Spring/MVC + Apache Tiles 3 based with knockout.js.


NOTE
Ignore the maven exceptions in the log, a car just hit a power pole where I work and the servers are not reachable
Comment 1 brettryan 2016-06-27 08:10:02 UTC
Created attachment 160170 [details]
IDE log
Comment 2 Petr Hejl 2016-06-30 10:24:26 UTC
We need more details about this as I'm not able to reproduce. Perhaps it is related to unreachable servers or some particular library or both. Would be good to have reproducible use case. Also please provide a thread dump (http://wiki.netbeans.org/GenerateThreadDump) for the situation when scanning is stucked. Anything would help...
Comment 3 tveimo 2016-07-07 11:51:17 UTC
Created attachment 160298 [details]
thread dump while 'scanning facelets libraries' is never finishing
Comment 4 tveimo 2016-07-07 11:51:59 UTC
I am running current netbeans nightly (as of 20160707) and this issue pops up without fail after netbeans has been running for a while (30 mins or even sooner). Am attaching a thread dump. Please contact me to run any experimental patches if required.
Comment 5 brettryan 2016-07-08 09:32:05 UTC
Created attachment 160314 [details]
NetBeans sdtout log with thread-dump

This is the standard output from the IDE of a session where this occurred, this only contains the thread dump.

Using dev 201607070002
Comment 6 brettryan 2016-07-08 09:35:34 UTC
Created attachment 160315 [details]
NetBeans stderr log

This is the error output from the IDE of a session where this occurred.

This is relevant as many exceptions are present which look related to the cause.

Using dev 201607070002
Comment 7 jomu 2016-07-08 13:47:58 UTC
the trigger for this seems to be an updated related lib. In my case I have updated from Shiro 1.2.5 to Shiro 1.2.6 when the scan started.

Potential workaround: I deleted the complete folder ~/.m2/repository/org/apache/shiro while IDE was shutdown.  When Netbeans then reloaded the library (only 1.2.6 the scan did not appear again)
Comment 8 brettryan 2016-07-08 14:17:12 UTC
(In reply to jomu from comment #7)
> the trigger for this seems to be an updated related lib. In my case I have
> updated from Shiro 1.2.5 to Shiro 1.2.6 when the scan started.
> 
> Potential workaround: I deleted the complete folder
> ~/.m2/repository/org/apache/shiro while IDE was shutdown.  When Netbeans
> then reloaded the library (only 1.2.6 the scan did not appear again)

Somewhat strange enough you are actually onto something. I'm not willing to delete my entire local maven repository cache as it's 4GB containing local copies of atlassian products and libraries.

I have however moved the repository out of the way and the problem does appear to have ceased.

Note, I do not have a copy of shiro anywhere in my prior repository cache.
Comment 9 jomu 2016-07-08 14:43:26 UTC
From my point of view it does not need to be Shiro but can be any other faclet related library you use and then update. And it should be enough (for the workaround) to clean / remove only that portion of the repository.
Comment 10 brettryan 2016-07-08 15:19:29 UTC
(In reply to jomu from comment #9)
> From my point of view it does not need to be Shiro but can be any other
> faclet related library you use and then update. And it should be enough (for
> the workaround) to clean / remove only that portion of the repository.

Agreed, though the trick is trying to work out which dependency IS causing the error, and I update mine frequently using the `versions:show-dependency-updates` mojo.

I presently have 4,435 artefacts in my repository which would be tricky to work out which ones are causing the problem.

What's strange though is why NB would be looking at any dependency that's not directly or transiently referenced by the current open project(s).
Comment 11 Petr Hejl 2016-07-11 10:12:14 UTC
This was caused by the fix for issue #251571. I reverted part of it. So this one should be fixed. I'm not going to reopen #251571 as the remaining part should be good enough anyway though I'll look at it again.

web-main 1be7d42cb940
Comment 12 Quality Engineering 2016-07-13 01:49:13 UTC
Integrated into 'main-silver', will be available in build *201607130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1be7d42cb940
User: Petr Hejl <phejl@netbeans.org>
Log: #262583 - [regression] Editing JSP content starts `Scanning Facelets libraries...` indefinitely
Comment 13 Petr Hejl 2016-07-14 08:14:54 UTC
*** Bug 262376 has been marked as a duplicate of this bug. ***