I am using 0.9.3.9.
Right now that is the newest version I think.
Are you suggesting I get the newest sources and compile them instead of
a binary distribution?

Luke Galea 
Software Development
BlueCat Networks
905-762-5225
 
-----Original Message-----
From: Keith Visco [mailto:[EMAIL PROTECTED]] 
Sent: March 4, 2002 4:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Vector deserialization problem.


Luke,

Which version of Castor are you using?

Have you tried the CVS version?

Thanks,

--Keith

Luke Galea wrote:
> 
> I am using introspection.. I could always use a mapping file but I
> wanted to avoid it if I could.. at least at first.
> 
> My Configuration object has methods( among others ):
> public ServerList getServerList;
> public void setServerList(ServerList serverList);
> 
> while my Serverlist object has:
> public Vector getServer();
> public void setServer( Vector server )
> 
> I tried simplifying it a bit.. My server object was quite large so I
use
> something simpler.. just a set of name value pairs under my
> configuration object. I created an object structure like:
> Configuration->SettingsList->Setting ( where each setting has a name
and
> value ).
> 
> I have included the relevant java sources for Configuration,
SettingList
> and Setting.
> 
> Strangely enough the xml produced (which can't be unmarshalled.. due
to
> the same "Vector is not a subclass of Setting" message) is:
> 
> <configuration>
>         <server-list>
>                 <server
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:type="java:java.util.Vector"/>
>         </server-list>
>         <setting-list>
>                 <setting
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:type="java:java.util.Vector">
>                         <setting
> xsi:type="java:com.bluecatnetworks.meridius.data.Setting">
>                                 <name
> xsi:type="java:java.lang.String">date</name>
>                                 <value time="1015267490427" date="4"
> minutes="44" month="2" year="102" day="1" hours="13"
> timezone-offset="300" seconds="50" xsi:type="java:java.util.Date"/>
>                         </setting>
>                 </setting>
>         </setting-list>
> </configuration>
> 
> Thanks, I really appreciate your help.
> 
> Luke Galea
> Software Development
> BlueCat Networks
> 905-882-5691 ex. 245
> 
> -----Original Message-----
> From: Keith Visco [mailto:[EMAIL PROTECTED]]
> Sent: March 4, 2002 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Vector deserialization problem.
> 
> Have you tried using a mapping file or are you relying on
introspection?
> I did a quick test case here with introspection and it seems to be
> working, even though the xsi:type stuff is annoying :-)
> 
> Do you have setServer(Vector server) Vector getServer methods?
> 
> Please show more of your example so we can see what's happening.
> 
> Thanks,
> 
> --Keith
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev
> 
>
------------------------------------------------------------------------
>                             Name: Configuration.java
>    Configuration.java       Type: VisualCafe File
(application/x-unknown-content-type-VisualCafeFile.Document)
>                         Encoding: base64
>                      Description: Configuration.java
> 
>                       Name: Setting.java
>    Setting.java       Type: VisualCafe File
(application/x-unknown-content-type-VisualCafeFile.Document)
>                   Encoding: base64
>                Description: Setting.java
> 
>                           Name: SettingList.java
>    SettingList.java       Type: VisualCafe File
(application/x-unknown-content-type-VisualCafeFile.Document)
>                       Encoding: base64
>                    Description: SettingList.java

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to