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 251566

Summary: Upgrade JAXB shipped with NetBeans
Product: xml Reporter: qwertyscar1
Component: JAXBAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: anebuzelsky, crispaiola, gdm-nb, mbalin, monsieurp
Priority: P2 Keywords: 8.1_WAIVER_APPROVED
Version: 8.0.2   
Hardware: PC   
OS: Windows 8   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 233591    
Attachments: the schema I'm trying to import with jaxb

Description qwertyscar1 2015-04-01 15:28:57 UTC
Created attachment 152980 [details]
the schema I'm trying to import with jaxb

I tried to add a JAXB binding to some projects, with JDK7 code level I get this error:
ant -f "C:\\Users\\Marco Scarpa\\Documents\\NetBeansProjects\\JavaFXApplication1" jaxb-code-generation
Created dir: C:\Users\Marco Scarpa\Documents\NetBeansProjects\JavaFXApplication1\build\generated\jaxbCache\DaSap
Compiling file:/C:/Users/Marco%20Scarpa/Documents/NetBeansProjects/JavaFXApplication1/xml-resources/jaxb/DaSap/listino_da_SAP.xsd
Writing output to C:\Users\Marco Scarpa\Documents\NetBeansProjects\JavaFXApplication1\build\generated\jaxbCache\DaSap
C:\Users\Marco Scarpa\Documents\NetBeansProjects\JavaFXApplication1\nbproject\xml_binding_build.xml:15: 
java.lang.IllegalArgumentException: Illegal pattern character 'g'
	at java.text.SimpleDateFormat.compile(
	at java.text.SimpleDateFormat.initialize(
	at java.text.SimpleDateFormat.<init>(
	at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
BUILD FAILED (total time: 1 second)

Instead when I try with a JDK8 level marked project I get :

ant -f "C:\\Users\\Marco Scarpa\\Documents\\NetBeansProjects\\PdfFromSelector" jaxb-code-generation
Target "jaxb-code-generation" does not exist in the project "PdfFromSelector". 
BUILD FAILED (total time: 0 seconds)

I don't know if there are schema issues, but I think that for JDK8 level source is an issue that the build target is not included in target generation, I attach the schema
Comment 1 Svata Dedic 2015-04-28 14:25:17 UTC
Please include your IDE/Java/Environment settings. If unsure, copy contents of the Help | About product info box.
What's your langugage setting ?
Comment 2 Svata Dedic 2015-04-28 14:32:20 UTC
*** Bug 216575 has been marked as a duplicate of this bug. ***
Comment 3 Svata Dedic 2015-04-28 14:42:10 UTC
The shipped JAXB is rather ancient (2.2.5-x impl) while 2.2.11 RI is alraedy released/available from

JAXB shipped with JDK8 is 2.2.8, which already contains this bugfix: _it bundle contains an invalid format string (see

As a quick help, set your language to en ("-J-Duser.language=en" to netbeans_default_options in netbeans.conf)
Comment 4 monsieurp 2015-05-22 13:07:22 UTC
Hi there.

Gentoo developer here. We're hitting the same problem on Gentoo Linux. Since we're a source-based Linux distribution, our package manager is able to compile NetBeans 8.0.2 from sources. Our users have reported a similiar problem when compiling netbeans-websvccommon.

Here's the full stack trace:

and the bug report:

Any idea on how to solve this annoying bug?

Thanks for your help! :)
Comment 5 monsieurp 2015-06-14 22:58:07 UTC

Could someone look into this issue? or at least let me (us) know it isn't falling into oblivion? 

Comment 6 Svata Dedic 2015-06-15 05:54:24 UTC
Legal administrativia should be already under way.

In the meantime, if you can apply source patches to upstream sources, use from comment #3
Comment 7 monsieurp 2015-06-28 09:50:10 UTC
Hi Svata

I didn't get a chance to thank you. Your pointer fixed the issue for us in Gentoo. We've marked the bug as FIXED.

Thanks a lot!

Comment 8 Svata Dedic 2015-09-04 08:12:08 UTC
I was said that legal approvals for including an updated JAXB are still not processed. I originally planned to have some testing period with updated libraries to verify that especially JEE modules work fine with the new implementation. This [so far only] defect known to be fixed by the new release has a known work-around and I do not want to affect release by library changes made late in the cycle - I want to ask for a waiver and postpone the upgrade to the next version.
Comment 9 Jiri Kovalsky 2015-09-07 10:47:36 UTC
Bug waiver for 8.1 approved.
Comment 10 monsieurp 2015-09-07 11:04:55 UTC
I'm catching up on this bug just now after many months. Apparently, this issue is still actual for us in Gentoo and the bug has been reopened since. Thank you for the waiver and for providing JAXB sources.