Hi all, I have a strange problem. I have a java bean object that returns
fine from a web service
if I return a single one from the service but as soon as I wrap it in a
generic List of implemented as an array list it throws an exception.

returning by itself is as follows:
 DataDefinitionInfo d=*new* DataDefinitionInfo();
d.setId("me");
d.setDescription("desc");
d.setName("name");
return d;

returning wrapped in a list is as follows:
DataDefinitionInfo d=*new* DataDefinitionInfo();
d.setId("me");
d.setDescription("desc");
d.setName("name");
List<DataDefinitionInfo> list=*new* ArrayList<DataDefinitionInfo>();
list.add(d);
*return* list;

first service returns the object fine so I know the object serializes,
the second service pukes:

INFO: Interceptor has thrown exception, unwinding now

org.apache.cxf.interceptor.Fault: Marshalling Error: [
Lcom.visualio.dataserver.model.DataDefinitionInfo; is not known to this
context

at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(*JAXBEncoderDecoder.java
:176*)

Caused by: *javax.xml.bind.MarshalException*- with linked exception:

[*javax.xml.bind.JAXBException*:
[Lcom.visualio.*dataserver*.model.DataDefinitionInfo;
is not known to this context]

Any thoughts?

Jeremy

Reply via email to