axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth Stephen (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-1863) Fault not reported on validation failure for response when using CastorSerializer
Date Fri, 11 Mar 2005 05:07:53 GMT
Fault not reported on validation failure for response when using CastorSerializer
---------------------------------------------------------------------------------

         Key: AXIS-1863
         URL: http://issues.apache.org/jira/browse/AXIS-1863
     Project: Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.2RC2    
 Environment: Windows, AIX, and WebSphere 4
    Reporter: Kenneth Stephen
    Priority: Minor


If there is a problem with the validity of the response, when using CastorSerializer, a validation
exception is thrown. This should result in a SOAP Fault being generated, but does not. Instead,
Axis returns an empty HTTP message with a status code of 200. Here is the associated stack
trace found in the logs :

[CastorSerializer] [Servlet.Engine.Transports:9] [03/10 19:40:24][ERROR][org.apache.axis.encoding.ser.castor.CastorSerializer.serialize(CastorSerializer.java:119)]
Message do
esn't comply with the associated XML schema :
The following exception occured while validating field: _items of class: services.ice.catalog.details.DetailResponseType
The following exception occured while validating field: _dcrInfo of class: services.ice.catalog.details.DetailResponseTypeItem
The following exception occured while validating field: _metadata of class: services.ice.catalog.details.DcrInfo
ValidationException: The field '_coverage' (whose xml name is 'Coverage') is a required field
of class 'services.ice.catalog.details.Metadata;
   - location of error: XPATH: Metadata
        at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:208)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:903)
        at org.exolab.castor.xml.Validator.validate(Validator.java:122)
        at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:281)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:903)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:764)
        at org.exolab.castor.xml.Validator.validate(Validator.java:122)
        at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:281)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:844)
        at org.exolab.castor.xml.Validator.validate(Validator.java:122)
        at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:237)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:903)
        at org.exolab.castor.xml.Validator.validate(Validator.java:122)
        at org.exolab.castor.xml.Marshaller.validate(Marshaller.java:2119)
        at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:771)
        at org.apache.axis.encoding.ser.castor.CastorSerializer.serialize(CastorSerializer.java:112)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1353)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:880)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:177)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:435)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:484)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:297)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:271)
        at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:482)
        at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:519)
        at org.apache.axis.Message.getContentType(Message.java:475)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:713)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message