users@jaxb.java.net

Re: How to debug: compiler was unable to honor this annotate customization.

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Thu, 24 Jul 2008 18:09:21 -0400

Looking at the xjc code it appears that the "unable to honor this
annotate customization" is generated when an annotation is not used by
XJC or one of its plugins. The error message would be more obvious if it
said "This annotate customization was not used by XJC or its plugins.
Perhaps it is attached to a wrong place, or its inconsistent with other
bindings.".

So now I need to figure out why annox did not use this customization :-(

Thanks.

Farrukh Najmi wrote:
>
> I was able to build jaxb2 trunk bits from source when using JDK 5.
> Perhaps the HOWTO-build.txt file should say JDK 5 is required?
> Also perhaps the build.xml should check for that and give an
> appropriate error.
>
> So now that I have it built I am wondering how I can run XJC driver in
> NetBeans debugger with specified command options.
> So this is a basic NB question that hopefully someone could help me
> out with?
>
> Thanks.
>
>
> Farrukh Najmi wrote:
>> Dear colleagues,
>>
>> When compiling my schema I am getting the dreaded xjc error:
>>
>> [ERROR] compiler was unable to honor this annotate customization. It
>> is attached to a wrong place, or its inconsistent with other bindings.
>>
>> There is no stack trace or underlying error.
>>
>> My scenario is quite complex involving annox, jpa and other layers.
>>
>> I would like to get to the underlying error and therefor need to
>> debug xjc code and therfor need to build latest JAXB 2 from source.
>>
>> I checked out code based on instructions here:
>>
>> <https://jaxb2-sources.dev.java.net/>
>>
>> When I run "ant dist" I get an NPE:
>>
>> BUILD FAILED
>> /home/najmi/jvnet/jaxb-ri/build.xml:91: The following error occurred
>> while executing this line:
>> /home/najmi/jvnet/jaxb-ri/runtime/build.xml:179:
>> java.lang.NullPointerException
>>
>> java.lang.NullPointerException
>> at
>> org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:2143)
>> at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2208)
>> at org.apache.tools.ant.Project.log(Project.java:439)
>> at org.apache.tools.ant.Project.log(Project.java:428)
>> at com.sun.tools.txw2.AntErrorListener.print(AntErrorListener.java:51)
>> at com.sun.tools.txw2.AntErrorListener.error(AntErrorListener.java:39)
>> at com.sun.tools.txw2.Main.run(Main.java:192)
>> at com.sun.tools.txw2.Main.run(Main.java:179)
>> at com.sun.tools.txw2.TxwTask.execute(TxwTask.java:155)
>>
>> I am using JDK 6. My JDK version is:
>>
>> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
>> Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
>>
>> Can any one help me build JAXB 2 sources?
>>
>> Any hints on how to debug underlying cause of the "compiler was
>> unable to honor this annotate customization" error?
>>
>> TIA for your help.
>>
>
>


-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com