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 144352 - Premature initialization of visualweb
Summary: Premature initialization of visualweb
Status: RESOLVED INVALID
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-08-19 10:16 UTC by Jaroslav Tulach
Modified: 2016-05-25 05:57 UTC (History)
1 user (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 Jaroslav Tulach 2008-08-19 10:16:11 UTC
VisualWeb seems to initialize itself too early. Also it writes down a file. Please eliminate the creation of the file, 
potentially remove the restored() code completely.

checkWrite: /home/jarda/src/netbeans/fixes/ide.kit/build/test/qa-functional/work/userdir0/config/org-netbeans-modules-visualweb-complib
        at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:150)
        at java.io.File.mkdir(File.java:1119)
        at java.io.File.mkdirs(File.java:1148)
        at org.netbeans.modules.visualweb.complib.IdeUtil.getComplibStateDir(IdeUtil.java:496)
        at 
org.netbeans.modules.visualweb.complib.ComplibServiceProvider.initUserScope(ComplibServiceProvider.java:485)
        at org.netbeans.modules.visualweb.complib.ComplibServiceProvider.<init>(ComplibServiceProvider.java:479)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at org.openide.util.lookup.MetaInfServicesLookup$P.getInstance(MetaInfServicesLookup.java:431)
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:415)
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:205)
        at org.netbeans.modules.visualweb.complib.ComplibServiceProvider.getInstance(ComplibServiceProvider.java:464)
        at org.netbeans.modules.visualweb.complib.ComplibModuleInstall.restored(ComplibModuleInstall.java:49)
Comment 1 Jaroslav Tulach 2008-08-19 10:21:57 UTC
And when you are at it, also please fix:

checkWrite: /home/jarda/src/netbeans/fixes/ide.kit/build/test/qa-functional/work/userdir0/config/org-netbeans-modules-visualweb-ejb
        at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:150)
        at java.io.File.mkdir(File.java:1119)
        at java.io.File.mkdirs(File.java:1148)
        at org.netbeans.modules.visualweb.ejb.util.Util.getEjbStateDir(Util.java:191)
        at 
org.netbeans.modules.visualweb.ejb.EjbDataSourceManager.getUserDirDataSrcFileName(EjbDataSourceManager.java:170)
        at org.netbeans.modules.visualweb.ejb.EjbDataSourceManager.load(EjbDataSourceManager.java:99)
        at 
org.netbeans.modules.visualweb.ejb.EjbDataSourceModuleInstaller.restored(EjbDataSourceModuleInstaller.java:72)
        at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:419)
        at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:340)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:904)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
Comment 2 Jayashri Visvanathan 2008-09-22 21:02:26 UTC
From the description its not clear to me if this is a test issue or some changes need to happen in the IDE.
jtulach, can you confirm please ?
thanks
Comment 3 Jaroslav Tulach 2008-09-23 07:38:58 UTC
It is a bug in the IDE.
Comment 4 Peter Zavadsky 2008-12-10 22:24:48 UTC
Yes, it is there. However, I am not sure why was it was done that way. It seems it was taken as an 'easy solution' for
synchronization of the init tasks.