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.
Steps: 1. launch multilanguage NetBeans 3.6 on Solaris x86 with Chinese locale. 2. Edit -> Find -> Enter Chinese characters Results: 1. After entered, the checkbox "Use This Criterion for Search' can't be checked automatically. Then Search button is inactive. 2. If check that button manually, then click Search, an exception will occur.
I have not been able to reproduce the bug on Linux. You report that you encountered the bug on Solaris running on x86. Could you please provide the exact version info about the platform you encountered the issue with? Please attach an output from /etc/release to this bug report. Are you able to reproduce the problem with other platforms? When I was trying to reproduce this problem I found another bug: "Search button remains disabled if text is pasted using keyboard" - see http://www.netbeans.org/issues/show_bug.cgi?id=42581. Was not the problem you describe caused by the same problem?
To reply to Marian's queries on 2004-04-28: 1. It seems to work ok with RedHad. 2. The output from /etc/release: "Solaris 10 s10_55 SPARC Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 15 March 2004" 3. It also happens on Solaris sparc. 4. For 42581, yes, the final symptoms are the same. For this bug, entering English letters is ok.
The release should be: "Solaris 9 4/04 s9x_u6wos_08a x86 Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 22 March 2004" Sorry for the confusion.
Please attach the call stack of the exception that occures if you click on the Search button.
java.lang.NullPointerException occured. Details are: java.lang.NullPointerException at org.netbeans.modules.search.types.TextType.matchRE(TextType.java:121) at org.netbeans.modules.search.types.FullTextType.testDataObject(FullTextType.java:145) at org.netbeans.modules.search.types.DataObjectType.testObject(DataObjectType.java:92) at org.openidex.search.SearchGroup.processSearchObject(SearchGroup.java:254) at org.openidex.search.DataObjectSearchGroup.scanContainer(DataObjectSearchGroup.java:153) at org.openidex.search.DataObjectSearchGroup.scanContainer(DataObjectSearchGroup.java:149) at org.openidex.search.DataObjectSearchGroup.scanContainer(DataObjectSearchGroup.java:149) at org.openidex.search.DataObjectSearchGroup.doSearch(DataObjectSearchGroup.java:74) at org.openidex.search.SearchGroup.search(SearchGroup.java:156) at org.netbeans.modules.search.SearchTask.run(SearchTask.java:79) [catch] at java.lang.Thread.run(Thread.java:534)
Confirmed, accepted.
Caused by the fact that typing into textfields (substring/regexp) is detected by key listeners, not by document listeners. If the UI does not detect key presses, the actions necessary to enable searching are not performed. The cause is basically the same as in bug #42581 ("Search button remains disabled if text is pasted using mouse").
Fixed in the trunk. Modified file: utilities/src/org/netbeans/modules/search/types/TextCustomizer.java (1.23)