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 231347 - java.lang.AssertionError: ClientSideProject project expected but got: org.netbeans.modules.web.project.WebProject on add new html file in web project
Summary: java.lang.AssertionError: ClientSideProject project expected but got: org.net...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 232285 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-17 09:43 UTC by chuprin
Modified: 2013-07-05 00:25 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (2 bytes, text/plain)
2013-06-17 09:43 UTC, chuprin
Details
Log (161.32 KB, text/plain)
2013-06-17 09:45 UTC, chuprin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chuprin 2013-06-17 09:43:09 UTC
Created attachment 135874 [details]
log

Hi All. When i try to add new html file on web project (right click on Web Pages - New - HTML File) show unexpected exception "A org.openide.util.RequestProcessor$SlowItem exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your /home/user/.netbeans/7.4beta/var/log folder." Full log in attachment.
Product Version: NetBeans IDE 7.4 Beta (Build 201306132201)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-39-generic-pae running on i386; UTF-8; uk_UA (nb)
Comment 1 chuprin 2013-06-17 09:45:29 UTC
Created attachment 135876 [details]
Log

Sorry, first attachment incorrect
Comment 2 Vladimir Riha 2013-06-17 10:22:24 UTC
Reproducible also in PHP, Sass and Less work fine but it seems that once some file type is also in other category than HTML5, this AE pops out. Disabling assertions only gets you to next step where is a message "No source folders in project, perhaps it has been deleted?". 

Although there is a workaround (select HTML/JS/CSS/JSON) from Other category, I'm not sure if this could be done in all project types. This is a stopper for beta
Comment 3 Tomas Mysik 2013-06-17 10:40:30 UTC
Taking over, caused by my change.
Comment 4 Tomas Mysik 2013-06-17 11:02:09 UTC
Fixed, sorry about that. What to do now to get it to the 7.4 Beta, please?

Thanks.

http://hg.netbeans.org/web-main/rev/df01a675e2d7
Comment 5 Vladimir Riha 2013-06-17 13:01:27 UTC
I tested JavaWeb/PHP and HTML5 project, in each of them I created all files from HTML5 category and some file from "native" category (jsp, php) in sources node. Then I repeated this for subfolders as well and tried to create HTML file in either Unit Tests or Source Packages. 


Verified, thanks


Product Version: NetBeans IDE Dev (Build 20130617-df01a675e2d7)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Tomas Mysik 2013-06-17 13:07:30 UTC
Transplanted to release74_beta branch in releases repo.

Thanks.

http://hg.netbeans.org/releases/rev/a607f6dd7537
Comment 7 Quality Engineering 2013-06-18 14:04:47 UTC
Integrated into 'releases', will be available in build *201306181053* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/a607f6dd7537
User: Tomas Mysik <tmysik@netbeans.org>
Log: #231347 - java.lang.AssertionError: ClientSideProject project expected but got: org.netbeans.modules.web.project.WebProject on add new html file in web project
(transplanted from df01a675e2d72320bf679e6edb17993554a49a71)
Comment 8 Quality Engineering 2013-06-18 14:47:14 UTC
Integrated into 'main-golden', will be available in build *201306181109* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/df01a675e2d7
User: Tomas Mysik <tmysik@netbeans.org>
Log: #231347 - java.lang.AssertionError: ClientSideProject project expected but got: org.netbeans.modules.web.project.WebProject on add new html file in web project
Comment 9 David Konecny 2013-07-05 00:25:04 UTC
*** Bug 232285 has been marked as a duplicate of this bug. ***