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 205910 - CodeCompletion took 7256 ms.
Summary: CodeCompletion took 7256 ms.
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Model (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: PERFORMANCE
: 205896 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-05 02:21 UTC by hantsy
Modified: 2012-04-12 09:57 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177385


Attachments
nps snapshot (45.85 KB, application/nps)
2011-12-05 02:21 UTC, hantsy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hantsy 2011-12-05 02:21:04 UTC
Build: NetBeans IDE 7.1 RC1 (Build 201111242103)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
GUEST: Generating a new XML document with three KML schemas. I clicked "Finish" and the system hung.



Maximum slowness yet reported was 256364 ms, average is 34440
Comment 1 hantsy 2011-12-05 02:21:07 UTC
Created attachment 113803 [details]
nps snapshot
Comment 2 Svata Dedic 2012-03-19 09:16:51 UTC
The snapshot shows that the XML parser is trying to download some referenced entity from the Internet. This blocks code completion.

Please check your document whether it references some external (parsed) entity, and if so, whether the entity URL is accessible.
Comment 3 Svata Dedic 2012-03-19 09:25:16 UTC
Oops. More different types of reports are attached; reopening, sorry.
Comment 4 Svata Dedic 2012-03-19 12:49:29 UTC
sreder (report #563159): 
The snapshot shows that AWT thread is downloading a resource from the Internet. This is a defect in JaxWsClientCreator - it should retrieve resources in non-AWT thread + display progress. Forked as defect #209723

report #562276:
The code completion downloads the schema from the Internet. 

report #561580:
CC is also downloading from the Internet. This time, the downloaded XML schema (?) 
apparently contains a reference to some  external entity which must be downloaded as the document is 
parsed.

report #558121, #554933, #554549, #554547, #554032, #552758, #551774, #551267, ...:
Retrieving DTD entity referenced from a downloaded document.


#553826:
In addition, the schema retrieval itself was rather slow (~2.7sec).
Comment 5 Svata Dedic 2012-03-19 12:54:20 UTC
*** Bug 205896 has been marked as a duplicate of this bug. ***
Comment 6 Svata Dedic 2012-04-11 07:49:07 UTC
Worked around - CC will only block for a certain time (5 secs), then it displays what is available.
Comment 7 Quality Engineering 2012-04-12 09:57:35 UTC
Integrated into 'main-golden', will be available in build *201204120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b52456eeffbb
User: Svata Dedic <sdedic@netbeans.org>
Log: #205910: code completion only waits some time for schema to download