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 Paul Grillo <Pa...@trivininc.com> on 2005/08/07 21:56:18 UTC

Sax Exception deserializing response when setting a property

Hoping somebody has seen this.  Perhaps it's a library issue or a
setting I missed.  Not sure whats happening.

After straightening out client side axis and insuring server received
messages by just returning a null, I just now added returning a non-null
message and the client throws an exception like below.


org.xml.sax.SAXNotRecognizedException: Feature:
http://xml.org/sax/properties/lexical-handler
	at
org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:155)
	at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon
text.java:226)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
	at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstan
dChecker.java:62)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
	at org.apache.axis.client.Call.invoke(Call.java:2748)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at
ohdmv.ohio.PrtWorkflowFacadeBindingStub.doMCOInStateOS(PrtWorkflowFacade
BindingStub.java:10091)
	at SendMCO.paul1(SendMCO.java:31)
	at SendMCO.main(SendMCO.java:19)



It happens on a simple setProperty call in
org.apache.axis.encoding.DeserializationContext

The line is:
  parser.setProperty("http://xml.org/sax/properties/lexical-handler",
this);


The full response from the server is:

HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Date: Sun, 07 Aug 2005 19:48:40 GMT
Server: Apache-Coyote/1.1
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
         <MESSAGE
xmlns="http://ODPS.ETAGateway.BTServer.TitleSchemas.TitleResponse">
            <REQ_SEQ_NUM
xsi:type="xsd:positiveInteger">123</REQ_SEQ_NUM>
            <REQ_DT xsi:type="xsd:string">01/01/2005</REQ_DT>
            <ETA_DT xsi:type="xsd:string">01/01/2005</ETA_DT>
            <TST_PROD_IND xsi:type="xsd:string">I</TST_PROD_IND>
            <STATUS xsi:type="xsd:string">S</STATUS>
            <STATUS_DT xsi:type="xsd:string">01/01/2005</STATUS_DT>
         </MESSAGE>
      </soapenv:Body>
   </soapenv:Envelope>