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 42254 - Unable to search Chinese characters
Summary: Unable to search Chinese characters
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 3.x
Hardware: All Solaris
: P1 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-21 11:57 UTC by agctools
Modified: 2004-08-13 12:12 UTC (History)
0 users

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 agctools 2004-04-21 11:57:06 UTC
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.
Comment 1 Marian Petras 2004-04-28 17:39:44 UTC
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?
Comment 2 agctools 2004-04-29 03:33:29 UTC
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.
Comment 3 agctools 2004-04-29 03:37:56 UTC
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.
Comment 4 Marian Petras 2004-06-28 17:07:22 UTC
Please attach the call stack of the exception that occures if you
click on the Search button.
Comment 5 agctools 2004-06-29 03:39:35 UTC
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)
Comment 6 Marian Petras 2004-06-30 15:30:38 UTC
Confirmed, accepted.
Comment 7 Marian Petras 2004-06-30 15:36:58 UTC
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").
Comment 8 Marian Petras 2004-06-30 16:03:02 UTC
Fixed in the trunk.

Modified file:
   utilities/src/org/netbeans/modules/search/types/TextCustomizer.java   (1.23)