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 88367 - I18N - 100% CPU for Add Operation in Web Service
Summary: I18N - 100% CPU for Add Operation in Web Service
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: I18N, PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-11-01 00:24 UTC by Michel Graciano
Modified: 2007-10-04 16:52 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Image for 'Add Operation', after fixing and working now (5.32 KB, image/gif)
2006-11-01 00:26 UTC, Michel Graciano
Details
Thread Dump (14.46 KB, text/plain)
2006-11-01 00:27 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2006-11-01 00:24:37 UTC
I am translation the NetBeans 5.5 IDE for pt_BR. When I testing the websvc
module translation, when I try add a new operation, on context menu (I am using
a web module, and if I try add a new operation by hint code, when any operation
was found, all works good), the IDE freeze with 100% CPU. This occur just if the
operation name (see attachment for detail) has some special characters. For
example, when the problem happen, I translate 'operation' to 'operação'. If I
translate to 'operacao', all works really fine. I will attach a thread dump to,
after IDE freeze, I hope be useful. Below I post the mailing list thread for the
problem, that I post some days ago.

See the mailing list thread:
http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=78531
Comment 1 Michel Graciano 2006-11-01 00:26:37 UTC
Created attachment 35687 [details]
Image for 'Add Operation', after fixing and working now
Comment 2 Michel Graciano 2006-11-01 00:27:12 UTC
Created attachment 35688 [details]
Thread Dump
Comment 3 Ken Frank 2006-11-07 18:51:13 UTC
Can you clarify - is it when the name of the web service operation
has non 0-127 characters that the problem happens ?

Thanks

ken.frank@sun.com
Comment 4 Michel Graciano 2006-11-07 19:41:17 UTC
Yes. If I add, at my example, 'operação' for web service operation name, the IDE
freeze with 100% CPU usage. The UI don't appear on the screen, just IDE freeze
before the UI to be painted. If I solve this translation problem, with
'operacao' for operation name, and try set name for 'operação', just message
appear, and all works fine. The problem is just before UI to be showed. I don't
test with another names, just 'operação'. If there is another test that can I
do, or any details, please, let me know.
Comment 5 Ken Frank 2006-11-07 21:32:22 UTC
If this is the word from 
org-netbeans-modules-websvc-core.jar

TXT_DefaultOperationName=operation
then it should not be translated since in the bundle file
above the line with it is a #NOI18N comment.

But I think the bug is still valid since it should be allowed that
other words/characters be used in the operation name, unless its not legal
in some spec.

I think that the problem is with ascii range > 127, which I think includes
the word you originally added.

ken.frank@sun.com



Comment 6 Lukas Jungmann 2007-07-18 20:16:58 UTC
Can anyone try to reproduce this in some latest build, please? I've just tried to use czech characters (like
"ěščřžýáíé") in operation name and everything works for me.

Thanks
Comment 8 kaa 2007-10-04 16:52:55 UTC
verified: build 0927, ja_JP