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 116972 - Pages opened when IDE starts sometimes stuck on 'Loading, please wait'
Summary: Pages opened when IDE starts sometimes stuck on 'Loading, please wait'
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 17:57 UTC by Quy Nguyen
Modified: 2007-10-03 16:54 UTC (History)
0 users

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 Quy Nguyen 2007-09-27 17:57:52 UTC
Pages opened when the IDE starts (i.e. the pages left open when the IDE was closed) sometimes do not display correctly
and stay on the 'Loading, please wait...' screen indefinitely.  A stack dump does not appear to show any visualweb
modules doing processing during this time.

To reproduce:

1) Create a new visual web project
2) Create 3+ pages
3) Close the IDE with all the pages open and in the design view
4) Reopen the IDE

Result:
Sometimes a page (in my case the second page) has the design view selected but the page never loads.
Comment 1 Quy Nguyen 2007-09-27 17:58:30 UTC
One workaround is to close the page and open it again.  Doing this causes the page to open correctly.
Comment 2 _ sandipchitale 2007-09-30 19:34:16 UTC
Unable to reproduce after repeated attempts. Reducing the priority as there is a workaround.
Comment 3 Lark Fitzgerald 2007-10-02 15:42:12 UTC
This is affecting automated tests.  Roughly 1 in 5 tests fail with this error.  The messages.log has only this error:
java.lang.NullPointerException
	at java.io.Reader.<init>(Reader.java:61)
	at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
	at org.netbeans.modules.visualweb.project.jsf.api.JsfProjectUtils.readResource(JsfProjectUtils.java:591)
	at org.netbeans.modules.visualweb.project.jsf.framework.JSFFrameworkProvider$CreateFacesConfig.run
(JSFFrameworkProvider.java:516)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
	at org.netbeans.modules.visualweb.project.jsf.framework.JSFFrameworkProvider.extendImpl
(JSFFrameworkProvider.java:173)
	at org.netbeans.modules.visualweb.project.jsf.framework.JSFConfigurationPanel.extend
(JSFConfigurationPanel.java:93)
	at org.netbeans.modules.web.project.ui.wizards.NewWebProjectWizardIterator.instantiate
(NewWebProjectWizardIterator.java:153)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1023)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1373)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1330)
	at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1899)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

Tested using:
Product Version: NetBeans 6 IDE Dev (Build beta1: 200710011200)
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
Glassfish: 58g
Comment 4 _ sandipchitale 2007-10-02 17:23:34 UTC
The exception seems related to VW Framework. Assigning to Po-ting.
Comment 5 Lark Fitzgerald 2007-10-02 19:54:45 UTC
Note: The automated tests do not re-open projects.  What it does is:
1. Create a project
2. Do stuff
3. Deploy the project
4. Closes the project
5. Undeploy the project
6. shuts down the IDE

Then it goes to the next test and repeats the above steps.
Comment 6 Lark Fitzgerald 2007-10-03 14:23:43 UTC
Two things.  First, this seems to be fixed in build 20071002000 for the automation.  It fails for 200710010000.  So 
someone, somewhere must have fixed something :) Second.  The issue I was having (according to quy) is probably not the 
same issue he was seeing.  So I will leave this open but downgrade it back to P4.
Comment 7 _ potingwu 2007-10-03 16:54:40 UTC
From the exception, it's reading file from org/netbeans/modules/web/jsf/resources/faces-config.xml. I guess it was
broken (from web/jsf module) and is fixed now.