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 226833 - cannt compile webservice client with utf-8 encoding
Summary: cannt compile webservice client with utf-8 encoding
Status: RESOLVED INCOMPLETE
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: issues@webservices
URL:
Keywords:
: 225053 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-28 12:04 UTC by isoman
Modified: 2013-07-10 08:47 UTC (History)
5 users (show)

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 isoman 2013-02-28 12:04:20 UTC
We have  webservices projects that uses utf-8 encoding in server and client side .
After updating from netbeans 7.2.1 to netbeans 7.3 we got many errors related to  utf-8 encoding in webservice generated class (client side).

unmappable character for encoding UTF-8
 * <p>Le fragment de sch?ma suivant indique le contenu attendu figurant dans cette classe.

Switching to another encoding is not an option because it breaks the french characters we are using (é,è,à).

The difference between netbeans 7.2 generated file and netbeans 7.3 ones is the use of utf-8 (for 7.2) and windows-1252 (for 7.3)

Help>about:
Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.6.0_38; Java HotSpot(TM) 64-Bit Server VM 20.13-b02
Runtime: Java(TM) SE Runtime Environment 1.6.0_38-b05
System: Windows 7 version 6.1 running on amd64; Cp1252; fr_FR (nb)
User directory: C:\Users\Hamza\AppData\Roaming\NetBeans\7.3
Cache directory: C:\Users\Hamza\AppData\Local\NetBeans\Cache\7.3
Comment 1 markiewb 2013-03-25 21:30:15 UTC
Strange. A similar issue was already fixed in 7.3 http://netbeans.org/bugzilla/show_bug.cgi?id=216526
Comment 2 Sergey Petrov 2013-04-01 08:14:10 UTC
I see 216526 fix contain
    1.54 +                FileObject fo = classpath.findResource(
    1.55 +                        "com/sun/tools/xjc/generator/bean/field/MessageBundle_it.properties"); //NOI18N    
    1.56 +                if ( fo!= null){

and it seems to specific for Italian only problem. This one issue is for FR locale, may be it can be just added the same way, and may be a few more locales in advance, I'm nor sure how to get more generic fix yet and if the same fix will work in FR case yet.
Comment 3 Sergey Petrov 2013-04-02 13:38:18 UTC
isoman,
so far I'm not able to reproduce the issue,
start ide as fr_FR
tried to create web project on gf 3.1.2.2 with itf-8 sources,
generate web service
create another web project
generate web client
deploy/build works fine

code contain "<p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe." comments and is compilable.
Comment 4 David Konecny 2013-04-04 04:15:29 UTC
(In reply to comment #2)
> and it seems to specific for Italian only problem

Sergey, the change checks for presence of MessageBundle_it.properties on classpath of libs.jaxws21.classpath library. But that does not mean it is specific to Italian locale. Just open nb73/ide/modules/ext/jaxb/jaxb-xjc.jar and you will see that it contains many different locales. I do not know why Denis chose this particular file for the check.
Comment 5 David Konecny 2013-04-08 00:40:46 UTC
isoman, could you please provide steps how to reproduce the problem? What exact output the compiler provides in verbose mode? Could you attach a dummy test project reproducing the problem? Is there any relation to issue 216526? Thanks.
Comment 6 markiewb 2013-05-13 21:00:36 UTC
*** Bug 225053 has been marked as a duplicate of this bug. ***
Comment 7 Abakhan 2013-07-10 08:47:00 UTC
I had the same issue with 7.2 and after changing to 7.3.1.
Solved with a change in the 'netbeans.conf' file in the netbeans installation folder under '\etc' :
Add « -J-Dfile.encoding=UTF-8"» to the line : «netbeans_default_options="[…]"»
so you get «netbeans_default_options="[…] -J-Dfile.encoding=UTF-8"».
Restart netbeans.