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 246886 - Sometimes IDE's Embedded Lightweight web server doesn't server all resources
Summary: Sometimes IDE's Embedded Lightweight web server doesn't server all resources
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-05 08:16 UTC by Martin Fousek
Modified: 2014-09-16 13:35 UTC (History)
7 users (show)

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 Martin Fousek 2014-09-05 08:16:21 UTC
Product Version: NetBeans IDE Dev (Build 20140829-fe74292add66)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-35-generic running on amd64; UTF-8; en_US (nb)

Time by time it happens to us (see CC list), in case of new Breeze project configurations or 3rd party JavaScript libraries changes, that the libs are not server by the Embedded web server then.

Our setup is:
- bower.io which downloads libs outside the site_root
- grunt task which takes necessary files which were downloaded by bower.io and puts them into the {site_root}/libs/bower_components

The last experience around is that particular folders aren't also refreshed in the project structure. But physically files exist there - double-checked.

This issue can be workarounded by manual refresh of particular folders or restarting IDE.

Sorry, I'm not attaching messages.log since there wasn't anything useful and to be honest I don't have it now. Feel free to close it as INCOMPLETE. But I'm afraid that we will not gather more useful information - steps how to reproduce don't exist too. What I hope is that the tip "folder refresh helps" could tell more what could be wrong (whether listeners work well). Sorry if not. :)
Comment 1 Tomas Mysik 2014-09-05 08:45:26 UTC
Davide, would you please have a look at it? Or at least let me know where should I have a look and reassign back to me. Thanks.
Comment 2 David Konecny 2014-09-08 20:28:09 UTC
Re. "particular folders aren't also refreshed in the project structure" - does grunt task call refresh on MasterFS after it finished copying? That looks like the cause - NB does not see changes done externally and hence project view is broken and embedded server too.
Comment 3 Tomas Mysik 2014-09-10 09:04:25 UTC
Trying to fix it, please verify if possible. Honzo, please review the patch.

Thanks.

http://hg.netbeans.org/web-main/rev/b0b4f4b1d622
Comment 4 Quality Engineering 2014-09-11 02:44:10 UTC
Integrated into 'main-silver', will be available in build *201409110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b0b4f4b1d622
User: Tomas Mysik <tmysik@netbeans.org>
Log: #246886 - Sometimes IDE's Embedded Lightweight web server doesn't server all resources
Comment 5 Martin Fousek 2014-09-12 06:39:09 UTC
(In reply to Tomas Mysik from comment #3)
> Trying to fix it, please verify if possible.

That's pretty hard to verify, but we can let you know once it appears again. ;) I believe that the refresh should help, thanks a lot.
Comment 6 Martin Fousek 2014-09-16 13:23:44 UTC
We didn't hit any issue, but it is random issue. Let's call that verified and we would reopen that in the future if necessary. Thanks for your fix.
Comment 7 Tomas Mysik 2014-09-16 13:35:29 UTC
Transplated to the releases repo, branch release801.

Thanks.

http://hg.netbeans.org/releases/rev/183e7c77f7c8