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.
Build: NetBeans IDE Dev (Build 090728) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: SunOS, 5.11, x86 User Comments: jsedek: I was editting web.xml file - the AWT thread got blocked while I was changing web-app header from DTD version 2.2 to use newer version 2.4 based on XML schema Maximum slowness yet reported was 4200 ms, average is 4200
Created attachment 85321 [details] nps snapshot
The AWT thread is blocked in MasterFSFileObject.getOutputStream() this happens when someone holds on input stream for the same fileobject. Looking at the thread dump, I think that there is XmlMultiViewDataSynchronizer thread (running for 4s) which parses the content of the file object. This is lengthy operation as it also connects to network. Possible fix might be to preload content of web.xml into memory (OK for files smaller than 100KB) and parse that instead of using directly the FileObject's input stream.
Definitely we should not access network. Denis, can you please investigate? I see we correctly register web-app_3_0 and web-fragment_3_0 XSDs in the entity resolver, so I don't know where the problem is. We don't register web-common_3_0, could that be an issue?
I see here version 2.4 mention. Why do you talking about web-app_3_0 ? Does version 2.4 uses web-app_3_0.xsd schema ? I see web-app_2_4.xsd schema file that is registered in EnterpriseCatalog. This schema includes two more schema locations: http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd Both schemes are in catalog also. But probably problem is in HTTP based schema locations. I'm not sure. Need to check it.
I cannot reproduce it. Could you please provide more details how you get this issue ?
Sorry, I did not notice the version number.
I cannot reproduce it. There is no response from user and there were fixes in J2EE Catalog area some time ago. Probably it is fixed now. Closing it.
v