Oh how I wish that were true ... nope, now I get an error while compiling

... JiBXException: Binding for class java.lang.String has not been defined


Angel
O:]


----- Original Message ----- 
From: "Cameron Taggart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 16, 2004 6:35 PM
Subject: Re: [jibx-users] String Collection ?


> This statement is incorrect:
> <collection field="tablenames" item-type="java.lang.String"/>
>
> I think the code your looking for will look something like so:
> <collection field="tablenames"/>
>   <value name="tablename"/>
> </collection>
>
> -Cameron
>
> Άγγελος Καράντζαλης wrote:
>
> >I've a class that contains an ArrayList of Strings. I'd thought that a
> >simple <collection ... /> element in the bindings file would suffice, and
it
> >compiles ok. However, when I try to marshall the object into xml, I get
the
> >following exception:
> >
> >Collection item of type java.lang.String has no binding defined
> >
> >Do i need to write a binding for String ??? Or am I just doing something
> >wrong ?
> >
> >Here's the binding info:
> >
> > <mapping name="sync-req-message"
> >class="com.talent.data.replication.messages.SyncRequestMessage"
> >extends="com.talent.cruiser.messaging.CruiserMessage" >
> > <structure map-as="com.talent.cruiser.messaging.CruiserMessage"/>
> > <value name="action"    field="strAction"/>
> > <value name="application"    field="strAppId"/>
> >    <value name="sync-policy"    field="syncPolicy"/>
> >    <value name="sync-type"    field="syncType"/>
> >    <collection field="tablenames" item-type="java.lang.String"/>
> >    </mapping>
> >
> >Cheers,
> >Angel
> >O:]
> >
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> jibx-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
  • ... Άγγελος Καράντζαλης
    • ... Cameron Taggart
      • ... Άγγελος Καράντζαλης
        • ... Dennis Sosnoski
          • ... Άγγελος Καράντζαλης
            • ... Dennis Sosnoski

Reply via email to