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 128408

Summary: No sync between JAXB creation and application building.
Product: xml Reporter: Michael Nazarov <michaelnazarov>
Component: JAXBAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description Michael Nazarov 2008-02-26 11:02:42 UTC
Product Version: NetBeans IDE Dev (Build 200802251204)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Steps to reproduce:

1. Create Java Application and add JAXB into.
2. Build and run to ensure everything is fine.
3. Now change JAXB options (I changed state of Verbose option, no matter on or off, just change)
   close dialog and run application immediately without waiting for completion of JAXB changes.

Run will fail, sometimes with Error dialog say "Error while compiling schema(s)".

After JAXB changes finished rebuild application and run it normally.

One of possible error logs here:

init:
deps-jar:
xjc-typedef-target:
jaxb-code-generation:
Created dir: C:\...\JavaApplication3\build\classes
C:\...\JavaApplication3\build\generated\jaxbCache\aaa is not found and thus excluded from the dependency check
Compiling file:/C:/.../JavaApplication3/xml-resources/jaxb/aaa/CreditReport.xsd
Writing output to C:\...\JavaApplication3\build\generated\jaxbCache\aaa
failure in the XJC task. Use the Ant -verbose switch for more details
C:\...\JavaApplication3\nbproject\xml_binding_build.xml:18: unable to write files:
C:\...\JavaApplication3\build\generated\jaxbCache\aaa: non-existent directory
BUILD FAILED (total time: 4 seconds)
Comment 1 _ gmpatil 2008-02-27 20:35:59 UTC
Will have to look into if NB Ant based project infrastructure allow us to block other Ant target execution till JAXB's
is done.
Comment 2 Svata Dedic 2011-10-26 14:56:49 UTC
This type of synchronization is not generally supported (generator vs. possibly conflicting builder or source code reader). But it's a valid enhancement.