Hi Sachin, I believe I made a fix in this area in going to 1.2 or 1.2.1, but I'm not sure. Can you give this a try with 1.2.1 and see what happens? If it still breaks, please create a Jira bug report and attach an Ant project to demonstrate the problem.
Thanks, - Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Sachin Mittal wrote: > Hi, > I am trying to use enum in my bindings as: > <structure type="TableList" field="tableList" name="table_list" > ordered="false" usage="optional"> > <value style="attribute" name="table" field="table" > usage="optional"/> > </structure> > Here the table would contain the table enum. > > I have also defined table before as: > <format type="Table" enum-value-method="toString"/> > > Bindings are compiled successfully. > > Now before marshaling the xml I set the following: > tableList.table = TABLE_ENUM_VAL > > This gives me following error: > java.lang.ClassFormatError: Repetitive method name/signature in class file > Table > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > When I checked the decompiled byte code of enum Table I see the following: > multiple occurrences of: > public static String _jibx_serialize(Table arg1) > > public static Table _jibx_deserialize(String arg1) throws JiBXException > > It looks like jibx bindings have corrupted the Table class and now it does > not get loaded. > > Please let me know what I am doing wrong. > How to fix this error. > > Thanks > Sachin > > > > ----- > http://www.assembla.com/wiki/show/sachin_mittal about me: > ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users