Hi, I'm passing a query object to a web service that executes a search
in hibernate.
public class ImageSearch {
... //lots of String attributes
public String [] keywords; //3 of this type
...//more String & Integer attributes
... //lots of getter/setters.
}
The query object has 3 attributes that are arrays of Strings
(multi-valued lookups), and I'm getting the following error as xFire
parses the request and maps it back to a bean. I want the arrays to be
allowed to be null, how can I set this?
server:
INFO: Fault occurred!
org.codehaus.xfire.fault.XFireFault: collection is nil, but not
nillable.
<<<<<<<<<<< "collection is nil, but not nillable"
at
org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:174)
at
org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:169)
at
org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)
at
org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:51)
at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
at
org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:304)
at
org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:129)
at
org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
--
*Matthew Kerle
**IT Consultant
**SRA Information Technology*
*Canberra*
Ground Floor, 40 Brisbane Avenue
BARTON ACT 2600
Office: +61 2 6273 6122
Fax: +61 2 6273 6155
Mobile: +61404 096 863
Web: <www.sra.com.au>http://threebrightlights.blogspot.com/
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email