Hi All,

Jibx binding compiler compiles fine with the following binding & class
declaration:

    <mapping name="AsClient" class="com.adminserver.dcl.ClientDcl"
ordered="false">
        <collection field="roles" type="java.util.HashSet"
item-type="com.adminserver.dcl.RoleDcl" name="PolicyRoles"
usage="optional"/>
    </mapping>

<mapping name="AsRole" class="com.adminserver.dcl.RoleDcl"
ordered="false">
        <value get-method="getRoleGuid" set-method="setRoleGuid"
name="RoleGUID" style="element"
            usage="optional"/>
    </mapping>


public class ClientDcl {
...
private java.util.Set roles;
...
}

I am getting a java.lang.ClassCastException without any more stack trace
information from Jibx.

Would I need to use the 'factory' attribute instead of the 'type'
attribute? Something on the lines of
org.jibx.runtime.Utility.arrayListFactory?

Any idea what's going on here?

--Sandeep Khanna



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to