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 221083 - Exception when creating HTML5 sample project
Summary: Exception when creating HTML5 sample project
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Samples (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
: 219707 221085 221457 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-30 12:41 UTC by Petr Jiricka
Modified: 2012-11-05 14:37 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception stack trace (1.58 KB, text/plain)
2012-10-30 12:41 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-10-30 12:41:04 UTC
Created attachment 126771 [details]
Exception stack trace

See attachment. This happens when ergonomics is present; when I delete ergonomics, everything works fine.

Not sure if this is a problem in ergonomics, or in module dependencies on the webcommon side.
Comment 1 Denis Anisimov 2012-10-30 12:51:38 UTC
*** Bug 221085 has been marked as a duplicate of this bug. ***
Comment 2 Jaroslav Tulach 2012-10-31 06:31:49 UTC
Isn't there something interesting in the log file?
Comment 3 Vladimir Riha 2012-10-31 07:27:03 UTC
Log is attached to the duplicate issue 221085
Comment 4 Jaroslav Tulach 2012-10-31 16:33:50 UTC
There modules get enabled:

INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
  org.netbeans.modules.web.clientproject.api [1.9 web-main-9034-on-20121030]
  org.netbeans.modules.web.javascript.debugger [1.1 web-main-9034-on-20121030]
  org.netbeans.modules.web.inspect [0.3 web-main-9034-on-20121030]
  org.netbeans.modules.web.clientproject.helpset/0 [1.1 web-main-9034-on-20121030]
  org.netbeans.libs.jstestdriver [1.1 web-main-9034-on-20121030]
  org.netbeans.modules.javascript.jstestdriver [1.1 web-main-9034-on-20121030]
  org.netbeans.modules.html.navigator [1.1 web-main-9034-on-20121030]
  org.netbeans.modules.web.clientproject [1.6 web-main-9034-on-20121030]

The module that provides the sample (e.g. web.client.samples) is not among them. Try to investigate way (my guess is that the module is in enterprise cluster).
Comment 5 Petr Jiricka 2012-10-31 23:00:55 UTC
Thanks Jardo, you are right that the problem is on the side of the samples module. It is actually in the webcommon cluster (which is the correct location), but looking at http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/build/generated/deps.txt, I see that the only module that depends on it is web.kit, which is in enterprise cluster. There should be a visible module in the webcommon cluster that depends on web.client.samples.

At the same time, this kind of situation should be caught by a test (e.g. commit validation).
Comment 6 Denis Anisimov 2012-11-01 06:19:25 UTC
(In reply to comment #5)
> Thanks Jardo, you are right that the problem is on the side of the samples
> module. It is actually in the webcommon cluster (which is the correct
> location), but looking at
> http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/build/generated/deps.txt,
> I see that the only module that depends on it is web.kit, which is in
> enterprise cluster. There should be a visible module in the webcommon cluster
> that depends on web.client.samples.

So what is the correct solution ?
Add fake dependency to some module from webcommon cluster or remove dependency
from web.kit ?
> 
> At the same time, this kind of situation should be caught by a test (e.g.
> commit validation).
Comment 7 Petr Jiricka 2012-11-01 08:52:30 UTC
> So what is the correct solution ?

I think web.clientproject is the only visible module in the webcommon cluster, so we need to add a dependency of wev.clientproject on web.client.samples (if this is possible and will not introduce a circular dependency).

Removing dependency from web.kit is optional.
Comment 8 Denis Anisimov 2012-11-01 10:40:05 UTC
web-main#19ed28d12731
Comment 9 Vladimir Riha 2012-11-01 15:00:05 UTC
works fine. Sample project can be created w/o any exception. Please transplant to beta2


Product Version: NetBeans IDE Dev (Build web-main-9073-on-20121101)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 10 Petr Jiricka 2012-11-01 16:37:39 UTC
Transplanted to release73_beta2: http://hg.netbeans.org/releases/rev/7abd09983acd
Comment 11 Quality Engineering 2012-11-02 03:27:59 UTC
Integrated into 'main-golden', will be available in build *201211020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/19ed28d12731
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#221083 - Exception when creating HTML5 sample project
Comment 12 Petr Jiricka 2012-11-02 09:07:02 UTC
I filed bug 221321 against commit validation to detect this error in the future.
Comment 13 Quality Engineering 2012-11-02 10:52:49 UTC
Integrated into 'releases', will be available in build *201211020750* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/7abd09983acd
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#221083 - Exception when creating HTML5 sample project
Comment 14 Vladimir Riha 2012-11-02 12:22:42 UTC
verified in beta2

Product Version: NetBeans IDE 7.3 Beta 2 (Build 201211020750)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 15 Jaroslav Tulach 2012-11-05 11:50:46 UTC
*** Bug 219707 has been marked as a duplicate of this bug. ***
Comment 16 Jaroslav Tulach 2012-11-05 14:37:14 UTC
*** Bug 221457 has been marked as a duplicate of this bug. ***