Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Non nillable element
Non nillable element [message #182412] Thu, 09 November 2006 16:40 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Hello list,
I have a web service that I created (top down). When I implemented the
skeleton I got the exception you see below. What does this mean? 'sentTime'
had a multiplicity of 1-1, and I cahnged it in the 'ServiceSoap.wsdl' - do I
need to do anything else after I changed it?


java.io.IOException: Non nillable element 'sentTime' is null.

at
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSe rializer.java:215)

at
org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:732)

at
org.apache.axis.encoding.ser.ArraySerializer.serialize(Array Serializer.java:414)

at
org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:732)

at
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSe rializer.java:230)

at
org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:732)

at
org.apache.axis.encoding.ser.ArraySerializer.serialize(Array Serializer.java:414)

at
org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)

at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:799)

at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208 )

at org.apache.axis.message.RPCElement.outputImpl(RPCElement.jav a:433)

at
org.apache.axis.message.MessageElement.output(MessageElement .java:1208)

at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:13 9)

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.Message.writeTo(Message.java:539)

at
org.apache.axis.transport.http.AxisServlet.sendResponse(Axis Servlet.java:902)

at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:777)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:213)

at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:178)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:126)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:105)

at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:107)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:148)

at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:869)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:664)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:527)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:684)

at java.lang.Thread.run(Unknown Source)
Re: Non nillable element [message #183818 is a reply to message #182412] Wed, 06 December 2006 15:02 Go to previous message
Chris Brealey is currently offline Chris BrealeyFriend
Messages: 104
Registered: July 2009
Senior Member
This is probably a better question for the Apache Axis mailing list [1], but check that the "sentTime" element in your
WSDL/Schema includes nillable="true". By default, elements are not nillable, and Axis will complain if asked to
marshall a null as a nil element if the Schema doesn't allow it.

[1] http://ws.apache.org/axis/mail.html

Cheers - CB.

Zohar wrote:

> Hello list,
> I have a web service that I created (top down). When I implemented the
> skeleton I got the exception you see below. What does this mean? 'sentTime'
> had a multiplicity of 1-1, and I cahnged it in the 'ServiceSoap.wsdl' - do I
> need to do anything else after I changed it?
>
> java.io.IOException: Non nillable element 'sentTime' is null.
>
> at
> org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSe rializer.java:215)
>
> at
> org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:732)
>
> at
> org.apache.axis.encoding.ser.ArraySerializer.serialize(Array Serializer.java:414)
>
> at
> org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:732)
>
> at
> org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSe rializer.java:230)
>
> at
> org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:732)
>
> at
> org.apache.axis.encoding.ser.ArraySerializer.serialize(Array Serializer.java:414)
>
> at
> org.apache.axis.encoding.SerializationContext.serializeActua l(SerializationContext.java:1502)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:978)
>
> at
> org.apache.axis.encoding.SerializationContext.serialize(Seri alizationContext.java:799)
>
> at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208 )
>
> at org.apache.axis.message.RPCElement.outputImpl(RPCElement.jav a:433)
>
> at
> org.apache.axis.message.MessageElement.output(MessageElement .java:1208)
>
> at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:13 9)
>
> 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.Message.writeTo(Message.java:539)
>
> at
> org.apache.axis.transport.http.AxisServlet.sendResponse(Axis Servlet.java:902)
>
> at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:777)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:252)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:173)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:213)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:178)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:126)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:105)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:107)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:148)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:869)
>
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:664)
>
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:527)
>
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80)
>
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:684)
>
> at java.lang.Thread.run(Unknown Source)
>
>
Previous Topic:MIlestone
Next Topic:Can't get Tomcat started correctly
Goto Forum:
  


Current Time: Thu Nov 27 14:55:34 GMT 2014

Powered by FUDForum. Page generated in 0.02037 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software