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 78019

Summary: i18n - web service with mbyte name cannot be tested/accessed
Product: webservices Reporter: Pavel Rehak <prehak>
Component: CodeAssignee: Milan Kuchtiak <mkuchtiak>
Status: VERIFIED FIXED    
Severity: blocker CC: kfrank, pjiricka
Priority: P2 Keywords: I18N
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: image
image

Description Pavel Rehak 2006-06-15 17:28:43 UTC
Product Version         = NetBeans 5.5 Dev (Build 200606090200)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor; Home  = 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b02;
Sun Microsystems Inc.; F:\Java\jdk1.5.0_07\jre
  System Locale; Encoding = en_US (nb); Cp1252
--
i've created web app with glassfish as j2ee server (source level 1.5)
created new web service with mbyte char (とserive) in its name
built/deployed project and invoked "test service" on とservice
it couldn't be acessed - in http monitor there were ? instead of mbytes

in glassfish admin console everything looked ok - but when i tried 
test service from there - same problem occured.
Comment 1 Milan Kuchtiak 2006-06-21 09:01:05 UTC
See the GlassFish bug :
https://glassfish.dev.java.net/issues/show_bug.cgi?id=751
Comment 2 Milan Kuchtiak 2006-06-28 11:36:42 UTC
I fixed the service uri calculation to use the URLEncoder :

Diff:
http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/jaxws/nodes/JaxWsNode.java?r1=1.1.2.36&r2=1.1.2.37


The rest depends on GlassFish
Comment 3 Ken Frank 2006-07-10 16:31:59 UTC
Are these other observations related to this issue (or the gf one)
or should separate issue be filed.

1. assuming the ws name is english, if the WebMethod name has mbyte,
like とSayHi, then browser reports it can't be found - web page
says "cant find method とSayHi (when using tester)

also, on the main tester page, the mbyte part of SayHi word
shows a ?, not the real mbyte - the web page encoding in
browser is set to iso8859, not utf8 or that of the locale (ja)
but even if set to these, that mbyte does not show ok, although
other mbyte does.


2. even if the SayHi does not have mbyte as part of its name,
if mb is used in tester as the value, and then click the SayHi button,
the next web page does not show the value correctly as to the mbyte
and still causes browser to be in iso8859 encoding and gives exception.

even when browser encoding changed to that of locale, the exception still
shows even though the mbyte of the value shows ok.

see 2 attached gifs.


ken.frank@sun.com
Comment 4 Ken Frank 2006-07-10 17:00:14 UTC
Created attachment 31709 [details]
image
Comment 5 Ken Frank 2006-07-10 17:00:37 UTC
Created attachment 31710 [details]
image
Comment 6 Pavel Rehak 2006-09-04 08:40:45 UTC
Works fine with build 20060904000 and glassfish ur1.
Comment 7 Milan Kuchtiak 2006-09-04 08:46:52 UTC
So I consider this as fixed.
Comment 8 Jiri Prox 2006-10-13 12:40:41 UTC
Verified NB part.