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 191914

Summary: Editor features unavailable for ages on CDMA modem
Product: java Reporter: Tomas Zezula <tzezula>
Component: JavadocAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: normal CC: aalba2002, jglick
Priority: P1    
Version: 7.0   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 187919    

Description Tomas Zezula 2010-11-13 12:44:34 UTC
I've opened the java file while connected using CDMA modem. The editor features (folds, navigator, semantic highlighting, ...) are not available for 10min +.

The org.netbeans.modules.java.source.JavadocHelper should timeout after some reasonable time out (1-2 seconds) or the HTTP javadoc should be disabled at all.

"Parsing & Indexing Loop (101113-9b9c8c52fa86)" daemon prio=1 tid=1563ee800 nid=0x171389000 runnable [171387000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:129)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
	- locked <11dd35860> (a java.io.BufferedInputStream)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1200)
	- locked <11dd35958> (a sun.net.www.protocol.http.HttpURLConnection)
	at java.net.URL.openStream(URL.java:1010)
	at org.netbeans.modules.java.source.JavadocHelper.openStream(JavadocHelper.java:190)
	at org.netbeans.modules.java.source.JavadocHelper$TextStream.openStream(JavadocHelper.java:156)
	- locked <11dd35b38> (a org.netbeans.modules.java.source.JavadocHelper$TextStream)
	at org.netbeans.modules.java.source.TreeLoader.getParamNamesFromJavadocText(TreeLoader.java:386)
	at org.netbeans.modules.java.source.TreeLoader.loadParamNames(TreeLoader.java:186)
	at com.sun.tools.javac.code.Symbol$ParamSymbol.getSimpleName(Symbol.java:1108)
	at com.sun.tools.javac.code.Symbol$ParamSymbol.getSimpleName(Symbol.java:1074)
	at org.netbeans.modules.java.navigation.ElementScanningTask.createHtmlHeader(ElementScanningTask.java:300)
	at org.netbeans.modules.java.navigation.ElementScanningTask.element2description(ElementScanningTask.java:244)
	at org.netbeans.modules.java.navigation.ElementScanningTask.addMembers(ElementScanningTask.java:219)
	at org.netbeans.modules.java.navigation.ElementScanningTask.run(ElementScanningTask.java:138)
	at org.netbeans.modules.java.navigation.ElementScanningTask.run(ElementScanningTask.java:84)
	at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:330)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:675)
Comment 1 Tomas Zezula 2010-11-13 12:46:54 UTC
One other thing, the IDE automatically adds the javadoc pointing to the http in the platform. If I remove it to make the IDE usable it adds it again after the restart.
Comment 2 Tomas Zezula 2010-11-15 11:01:05 UTC
jet-main f3be25ec484a - Added the possibility to remove the default javadoc.
Now I will remove the parameter names loading from javadoc when the javadoc is http.
Comment 3 Tomas Zezula 2010-11-15 15:48:53 UTC
Fixed jet-main d366f5a729a2
Comment 4 Quality Engineering 2010-11-16 06:13:06 UTC
Integrated into 'main-golden', will be available in build *201011160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f3be25ec484a
User: Tomas Zezula <tzezula@netbeans.org>
Log: #191914:Editor features unavailable for ages on CDMA modem - part 1
Comment 5 Jesse Glick 2010-11-16 17:43:44 UTC
Check for https protocol, not just http.
Comment 6 Tomas Zezula 2010-11-18 09:05:11 UTC
OK, done in jet-main 8e01fb7c9c77
Comment 7 Quality Engineering 2010-11-19 06:15:04 UTC
Integrated into 'main-golden', will be available in build *201011190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8e01fb7c9c77
User: Tomas Zezula <tzezula@netbeans.org>
Log: #191914:Editor features unavailable for ages on CDMA modem
Comment 8 Tomas Zezula 2011-01-07 12:06:23 UTC
*** Bug 194098 has been marked as a duplicate of this bug. ***
Comment 9 Quality Engineering 2011-02-02 06:19:30 UTC
Integrated into 'main-golden', will be available in build *201102020000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4fe3904e507a
User: Jesse Glick <jglick@netbeans.org>
Log: #187919: 6s in java.source.ui.ElementJavadoc.resolveLink()
I think fixing all issues not already addressed by #191914.
Also introducing an assertion, so that users of dev builds will help track down any
remaining problems much more easily and reliably than with the slowness detector.