Handcrafting the binding is probably the only alternative for now. The BindingGenerator code needs to be reworked to support the full flexibility of JiBX (including arrays, which were not handled at the time the BindingGenerator was originally written). That's why it's remaining part of a separate component for the 1.0 release. I'm expecting a 1.1 release around the end of the year which will include an updated BindingGenerator.

 - Dennis

Kr wrote:

Hi,

I have below simple classes:

Sample.java
-------------------
public class Sample
{
        String st;
        boolean bool;
        Sample1 sample1;
        Sample1 sample2;

        Sample1 sampleArray[] = {sample1, sample2};
        String[] stringArray = {"a", "b"};
}



Sample1.java
---------------------
public class Sample1
{
        String st;
        boolean bool;
}



Now if I try to use either ***JiBX RC0***'s BindingGenerator or
****jibxtools-beta2****  BindingGenerator then I am getting below eror
while generating binding xml for the above classes:


org.jibx.runtime.JiBXException: Base element type Sample1 must be mapped
       at 
org.jibx.binding.BindingGenerator.defineFields(BindingGenerator.java:356)
       at 
org.jibx.binding.BindingGenerator.defineStructure(BindingGenerator.java:621)
       at 
org.jibx.binding.BindingGenerator.createMapping(BindingGenerator.java:736)
       at org.jibx.binding.BindingGenerator.generate(BindingGenerator.java:888)
       at org.jibx.binding.BindingGenerator.main(BindingGenerator.java:1089)



Is this a problem that can be fixed with BindingGenerator or
handcrafing of the binding xml is the only option ?  Please suggest.



Thanks.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to