[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-users
Subject:    Re: [jibx-users] collection Set JDK 1.4.2
From:       Dennis Sosnoski <dms () sosnoski ! com>
Date:       2006-01-16 10:21:18
Message-ID: 43CB739E.8010509 () sosnoski ! com
[Download RAW message or body]

Hi Sandeep,

Is the exception occurring during marshalling or unmarshalling? Also, I 
don't understand how you can get a ClassCastException with no further 
stack trace information - can you show exactly what you're getting? Thanks,

  - Dennis

Sandeep Khanna wrote:

>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
>
>  
>



-------------------------------------------------------
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic