You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Dorner, Thomas" <Th...@t-systems.com> on 2005/12/01 18:56:04 UTC

BeanSerializer - Non nillable element

Hi,

I have a problem with my generated Stub when serializing my JavaObjects to
XML
I got following Exception:

java.io.IOException: Non nillable element 'first_query' is null.
	at
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:21
5)
	at
org.apache.axis.encoding.SerializationContext.serializeActual(SerializationC
ontext.java:1502)
	at
org.apache.axis.encoding.SerializationContext.serialize(SerializationContext
.java:978)
	at
org.apache.axis.encoding.SerializationContext.serialize(SerializationContext
.java:799)
	at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208)
	at
org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
	at
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
	at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
	at
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
	at
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
	at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
	at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
	at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
	at
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsIm
pl.java:554)
	at org.apache.axis.Message.getContentType(Message.java:486)
	at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
	at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
	at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)

I have debuged the BeanSerializer and see the first_query is null, but what
to hell is first_query???
It comes not out of my Java-Objects!?

Can someone please explain me whats going wrong here?

I learn from the mailinglist, that "first_query" must be an attribute of my
own Object!?

Thanks in advance for any help


 

Thomas