Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_30
Runtime = Java HotSpot(TM) Client VM 20.5-b03
I try to add a web service client from a local wsdl to a project test. The clean and build send the following message : "unmappable character for encoding UTF-8". If i open this project in netbeans 7.1 , without modifying anything, the compile is ok. I have the same problem with 5 wsdl.The same wsdl added to a new project created with netbeans 7.0.1 can be compile whith NB7.2.
Created attachment 125379 [details]
It looks like duplicate of the issue #216526 and #208735.
Recent JAXB version generates source code using system default encoding.
NB uses its own encoding options for editor and javac. Issue appears where
system encoding differs from NB encoding.
Please provide your system encoding .
As I understand your project encoding setting is UTF-8. Is it correct ?
My project is in UTF-8.
My system encoding ??? In System.getProperties, I see 'file.encoding', value : 'UTF-8'. Is it what you ask ?
Thank you for your answer.
(In reply to comment #3)
> My project is in UTF-8.
> My system encoding ??? In System.getProperties, I see 'file.encoding', value :
> 'UTF-8'. Is it what you ask ?
No. Please open Menu : Help->About. There is a text area with required NB environment information.
F.e. there is a "System:" field .
In my case it is "Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb)".
What is yours ?
Here is my info : System: Windows XP version 5.1 running on x86; Cp1252; fr_BE (nb)
(In reply to comment #5)
> Here is my info : System: Windows XP version 5.1 running on x86; Cp1252; fr_BE
It means it is really the duplicate of the issue issue #216526 .
The workaround is : open your project settings and change Encoding option
( Sources category ) from UTF-8 to windows-1252 or ISO-8859-1.
*** This bug has been marked as a duplicate of bug 216526 ***
Ok for the workaround.But we must use UTF8 for our projects.
So, have you an idea if the integration of JAXB will be adapted in the next version of Netbeans ?
(In reply to comment #7)
> Ok for the workaround.But we must use UTF8 for our projects.
> So, have you an idea if the integration of JAXB will be adapted in the next
> version of Netbeans ?
You may use encoding setting for NB at the start time. Find
etc/netbeans.conf file in your NB distribution and add
to the netbeans_default_options.
As a result overall NB JVM will be using UTF8 as a system encoding.
This encoding will be used by JAX-WS ant tasks ( and JAXB impl ) as a consequence.