Even I am getting the same error
It is not able to create the list..
The exception is ----------------
org.codehaus.xfire.XFireRuntimeException: Couldn't
create type for property batc
hItems on class beamrocs.service.beans.Batch: Cannot
create mapping for java.uti
l.List, unspecified component type for interface
java.util.List
at
org.codehaus.xfire.aegis.type.DefaultTypeCreator.createCollectionType
(DefaultTypeCreator.java:43)
at
org.codehaus.xfire.aegis.type.java5.Java5TypeCreator.createCollection
Type(Java5TypeCreator.java:139)
at
org.codehaus.xfire.aegis.type.XMLTypeCreator.createCollectionType(XML
TypeCreator.java:141)
at
org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass(
AbstractTypeCreator.java:113)
at
org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(Abstract
TypeCreator.java:396)
:(
Regards,
Anshumn
--- Maxime Orain <[EMAIL PROTECTED]> wrote:
> Hello I ve got the same problem...
>
> I copy/paste the same code...
>
> But even if the mapping file is putted I always get
> this error:
> org.codehaus.xfire.XFireRuntimeException: Cannot
> create mapping for
> java.util.Collection, unspecified component type for
> return type of
> method giveMailAdress in interface IMyService
> at
>
org.codehaus.xfire.aegis.type.DefaultTypeCreator.createCollectionType(De
> faultTypeCreator.java:43)
> at
>
org.codehaus.xfire.aegis.type.java5.Java5TypeCreator.createCollectionTyp
> e(Java5TypeCreator.java:139)
> at
>
org.codehaus.xfire.aegis.type.XMLTypeCreator.createCollectionType(XMLTyp
> eCreator.java:141)
> at
>
org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass(Abs
> tractTypeCreator.java:122)
> at
>
org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(AbstractTyp
> eCreator.java:368)
> at
>
org.codehaus.xfire.aegis.AegisBindingProvider.getSuggestedName(AegisBind
> ingProvider.java:248)
> at
>
org.codehaus.xfire.service.binding.DefaultServiceConfiguration.getOutPar
> ameterName(DefaultServiceConfiguration.java:174)
> at
>
org.codehaus.xfire.service.binding.ObjectServiceFactory.getOutParameterN
> ame(ObjectServiceFactory.java:1087)
> at
>
org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(Obj
> ectServiceFactory.java:844)
> at
>
org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperat
> ions(ObjectServiceFactory.java:769)
> at
>
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectSer
> viceFactory.java:452)
> at
>
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectSer
> viceFactory.java:378)
> at
>
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectSer
> viceFactory.java:359)
>
>
> -----Original Message-----
> From: Anshumn Sagar [mailto:[EMAIL PROTECTED]
> Sent: 04 June 2007 06:40
> To: [email protected]
> Subject: RE: [xfire-user] Urgent: How to Wrire
> Aegis.xml file for
> Complex Data Type
>
> Dear Hogan,
>
> Thanks. This is quite clear. I am going to try this
> out.
>
> Thanks & Regards,
> Anshumn
>
> --- "Hogan, Gavin" <[EMAIL PROTECTED]> wrote:
>
> > In the same package as the calls mentioned below
> > include User.aegis.xml.
> >
> > Within that file you must create a property
> mapping
> > like this
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <mp:mappings
> > xmlns:mp="http://xfire.codehaus.org/aegis/1.0"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >
>
xsi:schemaLocation="http://xfire.codehaus.org/aegis/1.0
> > http://xfire.codehaus.org/schemas/1.0/mapping.xsd
> ">
> > <mapping>
> >
> > <property name="customers"
> > componentType="your.package.path.Customers" />
> > </mapping>
> > </mp:mappings>
> >
> >
> > Hope this is clear.
> >
> >
> > Also if the Customer has a collection of, say
> email
> > addresses you would
> > have a aegis file for Customer.java
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <mp:mappings
> > xmlns:mp="http://xfire.codehaus.org/aegis/1.0"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >
>
xsi:schemaLocation="http://xfire.codehaus.org/aegis/1.0
> > http://xfire.codehaus.org/schemas/1.0/mapping.xsd
> ">
> > <mapping>
> >
> > <property name="emails"
> > componentType="java.lang.String" />
> > </mapping>
> > </mp:mappings>
> >
> > Remember that these files must be available at run
> > time and be located
> > in the package of the class they relate to and the
> > name must match the
> > class as indicated above.
> >
> >
> > ___________________________________________
> >
> > Gavin Hogan
> > Programmer/Analyst
> > The State University of New York
> > State University Plaza
> > Albany, NY 12246
> > Phone 518-443-5481
> > fax 518-443-5809
> > e-mail [EMAIL PROTECTED]
> >
> > -----Original Message-----
> > From: Anshumn Sagar
> [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 01, 2007 5:52 AM
> > To: [email protected]
> > Subject: [xfire-user] Urgent: How to Wrire
> Aegis.xml
> > file for Complex
> > Data Type
> >
> >
> > Hi,
> >
> > I am using JDK1.4 and need to pass a java bean as
> > the
> > call parameter to the service. The bean has an
> > attribute as a list of some other java bean.
> > e.g.
> >
> > public class User implements Serializable {
> >
> > private String id = "";
> >
> > private List customers;
> >
> > /**
> > * @return the id
> > */
> > public String getId() {
> > return id;
> > }
> >
> > /**
> > * @param id the id to set
> > */
> > public void setId(String id) {
> > this.id = id;
> > }
> >
> >
> > /**
> > * @return the customers
> > */
> > public List getCustomers() {
> > return customers;
> > }
> >
> > /**
> > * @param customers the customers to set
> > */
> > public void setCustomers(List customers) {
> > this.customers = customers;
> > }
> > }
> >
> > In the XFire documentation for mapping and
> > collections
> > link, it is mentioned only about the mappings for
> > passing direct Collections of java objects as
> > parameters, but I am not able to find the way when
> > the collection is an
> > attribute of a Java Object itself.
> >
> > Can someone please guide me with this? It is quite
> > urgent.
>
=== message truncated ===
___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email