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 "Taylor, Rick L" <Ta...@principal.com> on 2003/12/15 14:34:38 UTC
Need help on SAXNotSupportedException
Does anyone have a solution, I haven't been able to figure out what is going on --
I am converting several web services to Axis. This has been successful and I have Java proxies created that can access the services. We have also been successful in accessing our services from Smalltalk and VisualBasic environments.
I just started converting two of our client applications to access the services using the Java proxies. Both applications are Struts based and development is taking place on WSAD 5 Integration Edition. The first application is using the proxies to successfully access the web services running under Axis.
However, the second client application is failing. I did as much as I can to set up both applications to a similar state. I put similar type files in the same locations, made sure the classpaths pointed to the same jars, etc. I am using Xerces as the parser.
Here is a section of the log (both application's logs look the same up to the point of failure):
2003-12-14 18:03:56,112 DEBUG getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)
2003-12-14 18:03:56,182 DEBUG loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.resource, locale en_US
2003-12-14 18:03:56,192 DEBUG Created org.apache.axis.i18n.resource, linked to parent null
2003-12-14 18:03:56,192 DEBUG getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)
2003-12-14 18:03:56,222 DEBUG loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.utils.resource, locale en_US
2003-12-14 18:03:56,222 DEBUG loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.resource, locale en_US
2003-12-14 18:03:56,222 DEBUG Root package not found, cross link to org.apache.axis.i18n.resource
2003-12-14 18:03:56,222 DEBUG Root package not found, cross link to org.apache.axis.i18n.resource
2003-12-14 18:03:56,222 DEBUG org.apache.axis.i18n.resource::handleGetObject(engineFactory)
2003-12-14 18:03:56,222 DEBUG Got EngineFactory: org.apache.axis.configuration.EngineConfigurationFactoryDefault
2003-12-14 18:03:56,232 DEBUG Enter: AxisEngine::init
2003-12-14 18:03:56,923 DEBUG org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
2003-12-14 18:03:56,923 DEBUG Attachment support is enabled? true
2003-12-14 18:03:56,994 DEBUG Enter/Exit: JAFDataHandlerDeserializerFactory(class java.lang.String, {http://xml.apache.org/xml-soap}PlainText)
2003-12-14 18:03:57,044 DEBUG org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
2003-12-14 18:03:57,044 DEBUG org.apache.axis.i18n.resource::handleGetObject(badChars01)
2003-12-14 18:03:57,194 DEBUG Enter/Exit: JAFDataHandlerDeserializerFactory(class java.awt.Image, {http://xml.apache.org/xml-soap}Image)
2003-12-14 18:03:57,214 DEBUG Enter/Exit: JAFDataHandlerDeserializerFactory(class javax.mail.internet.MimeMultipart, {http://xml.apache.org/xml-soap}Multipart)
2003-12-14 18:03:57,214 DEBUG Enter/Exit: JAFDataHandlerDeserializerFactory(interface javax.xml.transform.Source, {http://xml.apache.org/xml-soap}Source)
2003-12-14 18:03:57,224 DEBUG Enter/Exit: JAFDataHandlerDeserializerFactory(class org.apache.axis.attachments.OctetStream, {http://xml.apache.org/xml-soap}octetstream)
2003-12-14 18:03:57,234 DEBUG Enter/Exit: JAFDataHandlerDeserializerFactory()
2003-12-14 18:03:57,504 DEBUG Exit: AxisEngine::init
2003-12-14 18:03:57,625 DEBUG org.apache.axis.i18n.resource::handleGetObject(transport00)
2003-12-14 18:03:57,625 DEBUG Transport is org.apache.axis.transport.http.HTTPTransport@36e5ed12
2003-12-14 18:03:57,635 DEBUG @370b6d12setReturnType({http://www.w3.org/2001/XMLSchema}string)
2003-12-14 18:03:57,645 DEBUG @370b6d12 added parameter >name: key
typeEntry: null
mode: IN
isReturn: false
typeQName: {http://www.w3.org/2001/XMLSchema}string
javaType: class java.lang.String
inHeader: false
outHeader: false
@5ca72d12<total parameters:1
2003-12-14 18:03:57,645 DEBUG Enter: Call::invoke(ns, meth, args)
2003-12-14 18:03:57,685 DEBUG operation=name: null
returnQName: null
returnType: {http://www.w3.org/2001/XMLSchema}string
returnClass: class java.lang.String
elementQName:null
soapAction: null
style: rpc
use: encoded
numInParams: 1
method:null
ParameterDesc[0]:
name: key
typeEntry: null
mode: IN
isReturn: false
typeQName: {http://www.w3.org/2001/XMLSchema}string
javaType: class java.lang.String
inHeader: false
outHeader: false
2003-12-14 18:03:57,685 DEBUG operation.getNumParams()=1
2003-12-14 18:03:57,685 DEBUG getParamList number of params: 1
2003-12-14 18:03:57,685 DEBUG Enter: Call::invoke(RPCElement)
2003-12-14 18:03:57,785 DEBUG org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
2003-12-14 18:03:57,785 DEBUG Attachment support is enabled? true
2003-12-14 18:03:57,805 DEBUG Enter: SOAPPart ctor(FORM_SOAPENVELOPE)
2003-12-14 18:03:57,805 DEBUG org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
2003-12-14 18:03:57,805 DEBUG Setting current message form to: FORM_SOAPENVELOPE (currentMessage is now org.apache.axis.message.SOAPEnvelope)
2003-12-14 18:03:57,805 DEBUG Exit: SOAPPart ctor()
2003-12-14 18:03:57,805 DEBUG org.apache.axis.i18n.resource::handleGetObject(addBody00)
2003-12-14 18:03:57,805 DEBUG Adding body element to message...
2003-12-14 18:03:57,815 DEBUG Enter: Call::invoke()
2003-12-14 18:03:57,815 DEBUG Enter: SOAPPart::getAsSOAPEnvelope()
2003-12-14 18:03:57,815 DEBUG org.apache.axis.i18n.resource::handleGetObject(currForm)
2003-12-14 18:03:57,815 DEBUG current form is FORM_SOAPENVELOPE
2003-12-14 18:03:57,815 DEBUG MessageContext: setTargetService(CasaRouterService)
2003-12-14 18:03:57,815 DEBUG MessageContext: setServiceHandler(null)
2003-12-14 18:03:57,815 DEBUG org.apache.axis.i18n.resource::handleGetObject(targetService)
2003-12-14 18:03:57,815 DEBUG Target service: CasaRouterService
2003-12-14 18:03:57,815 DEBUG Enter: SOAPPart::getAsSOAPEnvelope()
2003-12-14 18:03:57,815 DEBUG org.apache.axis.i18n.resource::handleGetObject(currForm)
2003-12-14 18:03:57,815 DEBUG current form is FORM_SOAPENVELOPE
2003-12-14 18:03:57,815 DEBUG MessageContext: setTargetService(null)
2003-12-14 18:03:57,815 DEBUG MessageContext: setServiceHandler(null)
2003-12-14 18:03:57,825 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,825 DEBUG register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
2003-12-14 18:03:57,825 DEBUG NSPush (32)
2003-12-14 18:03:57,825 DEBUG NSPush (32)
2003-12-14 18:03:57,825 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,825 DEBUG register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
2003-12-14 18:03:57,825 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,825 DEBUG register 'xsd' - 'http://www.w3.org/2001/XMLSchema'
2003-12-14 18:03:57,825 DEBUG NSPush (32)
2003-12-14 18:03:57,825 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,825 DEBUG register 'xsi' - 'http://www.w3.org/2001/XMLSchema-instance'
2003-12-14 18:03:57,825 DEBUG NSPush (32)
2003-12-14 18:03:57,825 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,825 DEBUG Start element [http://schemas.xmlsoap.org/soap/envelope/]:Envelope
2003-12-14 18:03:57,825 DEBUG org.apache.axis.i18n.resource::handleGetObject(headers00)
2003-12-14 18:03:57,825 DEBUG 0 headers
2003-12-14 18:03:57,825 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,825 DEBUG Start element [http://schemas.xmlsoap.org/soap/envelope/]:Body
2003-12-14 18:03:57,825 DEBUG NSPush (32)
2003-12-14 18:03:57,835 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,835 DEBUG Start element [CasaRouterService]:locateCallAddress
2003-12-14 18:03:57,835 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,835 DEBUG register 'ns1' - 'CasaRouterService'
2003-12-14 18:03:57,835 DEBUG NSPush (32)
2003-12-14 18:03:57,835 DEBUG NSPush (32)
2003-12-14 18:03:57,845 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,845 DEBUG Start element []:key
2003-12-14 18:03:57,845 DEBUG NSPush (32)
2003-12-14 18:03:57,855 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,855 DEBUG End element key
2003-12-14 18:03:57,855 DEBUG NSPop (32)
2003-12-14 18:03:57,855 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,855 DEBUG End element ns1:locateCallAddress
2003-12-14 18:03:57,855 DEBUG NSPop (32)
2003-12-14 18:03:57,855 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,855 DEBUG End element soapenv:Body
2003-12-14 18:03:57,855 DEBUG NSPop (32)
2003-12-14 18:03:57,855 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,855 DEBUG End element soapenv:Envelope
2003-12-14 18:03:57,855 DEBUG org.apache.axis.i18n.resource::handleGetObject(empty00)
2003-12-14 18:03:57,855 DEBUG NSPop (empty)
2003-12-14 18:03:57,855 DEBUG <?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>
<ns1:locateCallAddress soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="CasaRouterService">
<key xsi:type="xsd:string">config</key>
</ns1:locateCallAddress>
</soapenv:Body>
</soapenv:Envelope>
2003-12-14 18:03:57,855 DEBUG Enter: AxisClient::invoke
2003-12-14 18:03:57,855 DEBUG EngineHandler: null
2003-12-14 18:03:57,905 DEBUG Enter: SimpleChain::invoke
2003-12-14 18:03:57,905 DEBUG org.apache.axis.i18n.resource::handleGetObject(enter00)
2003-12-14 18:03:57,905 DEBUG Enter: HTTPSender::invoke
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(createdHTTP00)
2003-12-14 18:03:57,975 DEBUG Created an insecure HTTP connection
2003-12-14 18:03:57,975 DEBUG Enter: SOAPPart::getAsBytes
2003-12-14 18:03:57,975 DEBUG Enter: SOAPPart::getAsString
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,975 DEBUG register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,975 DEBUG register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/'
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,975 DEBUG register 'xsd' - 'http://www.w3.org/2001/XMLSchema'
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,975 DEBUG register 'xsi' - 'http://www.w3.org/2001/XMLSchema-instance'
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,975 DEBUG Start element [http://schemas.xmlsoap.org/soap/envelope/]:Envelope
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(headers00)
2003-12-14 18:03:57,975 DEBUG 0 headers
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,975 DEBUG Start element [http://schemas.xmlsoap.org/soap/envelope/]:Body
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,975 DEBUG Start element [CasaRouterService]:locateCallAddress
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(register00)
2003-12-14 18:03:57,975 DEBUG register 'ns1' - 'CasaRouterService'
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(startElem00)
2003-12-14 18:03:57,975 DEBUG Start element []:key
2003-12-14 18:03:57,975 DEBUG NSPush (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,975 DEBUG End element key
2003-12-14 18:03:57,975 DEBUG NSPop (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,975 DEBUG End element ns1:locateCallAddress
2003-12-14 18:03:57,975 DEBUG NSPop (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,975 DEBUG End element soapenv:Body
2003-12-14 18:03:57,975 DEBUG NSPop (32)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(endElem00)
2003-12-14 18:03:57,975 DEBUG End element soapenv:Envelope
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(empty00)
2003-12-14 18:03:57,975 DEBUG NSPop (empty)
2003-12-14 18:03:57,975 DEBUG org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
2003-12-14 18:03:57,985 DEBUG Setting current message form to: FORM_STRING (currentMessage is now <?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>
<ns1:locateCallAddress soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="CasaRouterService">
<key xsi:type="xsd:string">config</key>
</ns1:locateCallAddress>
</soapenv:Body>
</soapenv:Envelope>)
2003-12-14 18:03:57,985 DEBUG Exit: SOAPPart::getAsString(): <?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>
<ns1:locateCallAddress soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="CasaRouterService">
<key xsi:type="xsd:string">config</key>
</ns1:locateCallAddress>
</soapenv:Body>
</soapenv:Envelope>
2003-12-14 18:03:57,985 DEBUG org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
2003-12-14 18:03:57,985 DEBUG Setting current message form to: FORM_BYTES (currentMessage is now [B)
2003-12-14 18:03:57,985 DEBUG Exit: SOAPPart::getAsBytes
2003-12-14 18:03:57,985 DEBUG org.apache.axis.i18n.resource::handleGetObject(axisUserAgent)
2003-12-14 18:03:57,985 DEBUG Enter: SOAPPart::getAsBytes
2003-12-14 18:03:57,985 DEBUG Exit: SOAPPart::getAsBytes
2003-12-14 18:03:57,985 DEBUG Enter: SOAPPart::getAsString
2003-12-14 18:03:57,985 DEBUG Exit: SOAPPart::getAsString(): <?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>
<ns1:locateCallAddress soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="CasaRouterService">
<key xsi:type="xsd:string">config</key>
</ns1:locateCallAddress>
</soapenv:Body>
</soapenv:Envelope>
2003-12-14 18:03:58,005 DEBUG org.apache.axis.i18n.resource::handleGetObject(xmlSent00)
2003-12-14 18:03:58,005 DEBUG XML sent:
2003-12-14 18:03:58,005 DEBUG ---------------------------------------------------
2003-12-14 18:03:58,005 DEBUG POST /soap/casa/casarouter HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: inside.test.principal.com
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 459
null
2003-12-14 18:03:58,125 DEBUG HTTP/1.1 200 OK
2003-12-14 18:03:58,125 DEBUG Server Microsoft-IIS/5.0
2003-12-14 18:03:58,125 DEBUG Date Mon, 15 Dec 2003 00:03:58 GMT
2003-12-14 18:03:58,125 DEBUG Set-Cookie RANDOM_ID=b36e5b5c557c41b187552ad70cf11110; path=/; domain=.test.principal.com; expires=Sunday, 08-Dec-2013 17:44:04 GMT
2003-12-14 18:03:58,125 DEBUG Set-Cookie inside.test.principal.com-lb=pfgdsmweb999; path=/; domain=.principal.com;
2003-12-14 18:03:58,125 DEBUG Server WebSphere Application Server/5.0
2003-12-14 18:03:58,125 DEBUG Content-Type text/xml; charset=utf-8
2003-12-14 18:03:58,135 DEBUG Content-Language en-US
2003-12-14 18:03:58,135 DEBUG Connection close
2003-12-14 18:03:58,135 DEBUG Enter: SOAPPart ctor(FORM_INPUTSTREAM)
2003-12-14 18:03:58,135 DEBUG org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
2003-12-14 18:03:58,135 DEBUG Setting current message form to: FORM_INPUTSTREAM (currentMessage is now org.apache.axis.transport.http.SocketInputStream)
2003-12-14 18:03:58,135 DEBUG Exit: SOAPPart ctor()
2003-12-14 18:03:58,135 DEBUG org.apache.axis.i18n.resource::handleGetObject(no00)
2003-12-14 18:03:58,135 DEBUG
no Content-Length
2003-12-14 18:03:58,135 DEBUG org.apache.axis.i18n.resource::handleGetObject(xmlRecd00)
2003-12-14 18:03:58,135 DEBUG
XML received:
2003-12-14 18:03:58,135 DEBUG -----------------------------------------------
2003-12-14 18:03:58,135 DEBUG Enter: SOAPPart::getAsSOAPEnvelope()
2003-12-14 18:03:58,135 DEBUG org.apache.axis.i18n.resource::handleGetObject(currForm)
2003-12-14 18:03:58,135 DEBUG current form is FORM_INPUTSTREAM
2003-12-14 18:03:58,175 DEBUG org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
2003-12-14 18:03:58,175 DEBUG Pushing handler org.apache.axis.message.EnvelopeHandler@f9bed10
2003-12-14 18:03:58,196 DEBUG org.xml.sax.SAXNotSupportedException: PAR012 For propertyID "http://xml.org/sax/properties/lexical-handler", the value "org.apache.axis.encoding.DeserializationContextImpl@d57ed10" cannot be cast to LexicalHandler.
http://xml.org/sax/properties/lexical-handler org.apache.axis.encoding.DeserializationContextImpl@d57ed10 LexicalHandler
2003-12-14 18:03:58,196 DEBUG Enter: SOAPPart ctor(FORM_FAULT)
2003-12-14 18:03:58,206 DEBUG org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
2003-12-14 18:03:58,206 DEBUG Setting current message form to: FORM_FAULT (currentMessage is now org.apache.axis.AxisFault)
2003-12-14 18:03:58,206 DEBUG Exit: SOAPPart ctor()
2003-12-14 18:03:58,206 DEBUG org.apache.axis.i18n.resource::handleGetObject(exception00)
2003-12-14 18:03:58,206 DEBUG Exception:
2003-12-14 18:03:58,216 DEBUG NSPush (32)
2003-12-14 18:03:58,306 DEBUG org.apache.axis.i18n.resource::handleGetObject(empty00)
2003-12-14 18:03:58,306 DEBUG NSPop (empty)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXNotSupportedException: PAR012 For propertyID "http://xml.org/sax/properties/lexical-handler", the value "org.apache.axis.encoding.DeserializationContextImpl@d57ed10" cannot be cast to LexicalHandler.
http://xml.org/sax/properties/lexical-handler org.apache.axis.encoding.DeserializationContextImpl@d57ed10 LexicalHandler
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXNotSupportedException: PAR012 For propertyID "http://xml.org/sax/properties/lexical-handler", the value "org.apache.axis.encoding.DeserializationContextImpl@d57ed10" cannot be cast to LexicalHandler.
http://xml.org/sax/properties/lexical-handler org.apache.axis.encoding.DeserializationContextImpl@d57ed10 LexicalHandler
at org.apache.xerces.parsers.AbstractSAXParser.setProperty(AbstractSAXParser.java:1619)
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:205)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:241)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.principal.ind.casa.client.proxies.CasaBaseProxy.doCall(CasaBaseProxy.java:63)
at com.principal.ind.casa.client.proxies.CasaRouterProxy.locateCallAddress(CasaRouterProxy.java:50)
at com.principal.ind.casa.client.CasaProxyCreator.getServiceURL(CasaProxyCreator.java:146)
at com.principal.ind.casa.client.CasaProxyCreator.ConfigProxy(CasaProxyCreator.java:72)
at com.principal.ind.eworksheet.controller.BaseElectronicWorksheetAction.createUser(BaseElectronicWorksheetAction.java:221)
at com.principal.ind.eworksheet.controller.BaseElectronicWorksheetAction.getSecuredSession(BaseElectronicWorksheetAction.java:648)
at com.principal.ind.eworksheet.controller.BaseElectronicWorksheetAction.createSecurityProfile(BaseElectronicWorksheetAction.java:160)
at com.principal.ind.eworksheet.controller.BaseElectronicWorksheetAction.getSecurityProfile(BaseElectronicWorksheetAction.java:691)
at com.principal.ind.eworksheet.controller.BaseElectronicWorksheetAction.execute(BaseElectronicWorksheetAction.java:284)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Rick L. Taylor
Principal Financial Group
Work 515-247-5798
fax 515-362-1409
mailto:taylor.rick.l@principal.com
RE: Need help on SAXNotSupportedException
Posted by Gary L Peskin <ga...@firstech.com>.
Rick --
At a glance, it sounds like, in the second application, that the parser is
being loaded by a different classloader than axis. Are you able to bring up
WSAD-IE and just run the second application right after you bring up
WSAD-IE, without first running the first application? Does it still fail
then?
Check for other copies of Xerces hanging around. IBM JDKs used to
distribute xerces.jar or xml4j.jar or something like that in the jre/lib/ext
directories so that they were loaded by the system extension classloader
rather than off of the classpath. I'm not sure if they still do. In
addition, I think that WSAD-IE also has versions of the xerces classes
stashed away somewhere.
But I'd put my money on a classloader problem. You could include a code
snippet in
com.principal.ind.casa.client.proxies.CasaBaseProxy.doCall
to examine the classloaders of
org.apache.axis.encoding.DeserializationContextImpl and
org.xml.sax.ext.LexicalHandler by using something like
System.err.println("ClassLoader for " + <object1> + " is " +
<object1>.getClass().getClassLoader());
for both objects, if you can get them. Or, you might need to insert this
code, just temporarily, into a modified copy of DeserializationContextImpl
to see why this is so.
Better yet, the IBM JDKs have a classloader trace mechanism that will show
you exactly what's happening. Set the system property
ibm.cl.verbose=DeserializationContextImpl Lexical Handler
and this should show you where these two classes are loaded from, if IBM
classloaders are doing the loading.
HTH,
Gary
> -----Original Message-----
> From: Taylor, Rick L [mailto:Taylor.Rick.L@principal.com]
> Sent: Monday, December 15, 2003 5:35 AM
> To: axis-user@ws.apache.org
> Cc: Horsch, Anthony; Schumacher, Scott D
> Subject: Need help on SAXNotSupportedException
>
>
> Does anyone have a solution, I haven't been able to figure
> out what is going on --
>
> I am converting several web services to Axis. This has been
> successful and I have Java proxies created that can access
> the services. We have also been successful in accessing our
> services from Smalltalk and VisualBasic environments.
>
> I just started converting two of our client applications to
> access the services using the Java proxies. Both applications
> are Struts based and development is taking place on WSAD 5
> Integration Edition. The first application is using the
> proxies to successfully access the web services running under Axis.
>
> However, the second client application is failing. I did as
> much as I can to set up both applications to a similar state.
> I put similar type files in the same locations, made sure
> the classpaths pointed to the same jars, etc. I am using
> Xerces as the parser.
>
> Here is a section of the log (both application's logs look
> the same up to the point of failure):
>
>
<...>
> 2003-12-14 18:03:58,135 DEBUG current form is FORM_INPUTSTREAM
> 2003-12-14 18:03:58,175 DEBUG
> org.apache.axis.i18n.resource::handleGetObject(pushHandler00)
> 2003-12-14 18:03:58,175 DEBUG Pushing handler
> org.apache.axis.message.EnvelopeHandler@f9bed10
> 2003-12-14 18:03:58,196 DEBUG
> org.xml.sax.SAXNotSupportedException: PAR012 For propertyID
> "http://xml.org/sax/properties/lexical-handler", the value
> "org.apache.axis.encoding.DeserializationContextImpl@d57ed10"
> cannot be cast to LexicalHandler.
> http://xml.org/sax/properties/lexical-handler
> org.apache.axis.encoding.DeserializationContextImpl@d57ed10
> LexicalHandler
> 2003-12-14 18:03:58,196 DEBUG Enter: SOAPPart ctor(FORM_FAULT)
> 2003-12-14 18:03:58,206 DEBUG
> org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
> 2003-12-14 18:03:58,206 DEBUG Setting current message form
> to: FORM_FAULT (currentMessage is now org.apache.axis.AxisFault)
> 2003-12-14 18:03:58,206 DEBUG Exit: SOAPPart ctor()
> 2003-12-14 18:03:58,206 DEBUG
> org.apache.axis.i18n.resource::handleGetObject(exception00)
> 2003-12-14 18:03:58,206 DEBUG Exception:
> 2003-12-14 18:03:58,216 DEBUG NSPush (32)
> 2003-12-14 18:03:58,306 DEBUG
> org.apache.axis.i18n.resource::handleGetObject(empty00)
> 2003-12-14 18:03:58,306 DEBUG NSPop (empty)
> AxisFault
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: org.xml.sax.SAXNotSupportedException: PAR012
> For propertyID
> "http://xml.org/sax/properties/lexical-handler",
> the value
> "org.apache.axis.encoding.DeserializationContextImpl@d57e
> d10" cannot be cast to LexicalHandler.
> http://xml.org/sax/properties/lexical-handler
> org.apache.axis.encoding.DeserializationContextImpl@d57ed10
> LexicalHandler
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace:
> org.xml.sax.SAXNotSupportedException: PAR012 For propertyID
> "http://xml.org/sax/properties/lexical-handler",
> the value
> "org.apache.axis.encoding.DeserializationContextImpl@d57e
> d10" cannot be cast to LexicalHandler.
> http://xml.org/sax/properties/lexical-handler
> org.apache.axis.encoding.DeserializationContextImpl@d57ed10
> LexicalHandler
> at
> org.apache.xerces.parsers.AbstractSAXParser.setProperty(Abstra
> ctSAXParser.java:1619)
> at
> org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl
> .java:205)
> at
> org.apache.axis.encoding.DeserializationContextImpl.parse(Dese
rializationContextImpl.java:241)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
> org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPS
> ender.java:675)
> at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocation
> Strategy.java:71)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
> at org.apache.axis.client.Call.invoke(Call.java:2553)
> at org.apache.axis.client.Call.invoke(Call.java:2248)
> at org.apache.axis.client.Call.invoke(Call.java:2171)
> at org.apache.axis.client.Call.invoke(Call.java:1691)
> at
> com.principal.ind.casa.client.proxies.CasaBaseProxy.doCall(Cas
> aBaseProxy.java:63)
> at
> com.principal.ind.casa.client.proxies.CasaRouterProxy.locateCa
> llAddress(CasaRouterProxy.java:50)
> at
> com.principal.ind.casa.client.CasaProxyCreator.getServiceURL(C
> asaProxyCreator.java:146)
> at
> com.principal.ind.casa.client.CasaProxyCreator.ConfigProxy(Cas
> aProxyCreator.java:72)
> at
> com.principal.ind.eworksheet.controller.BaseElectronicWorkshee
> tAction.createUser(BaseElectronicWorksheetAction.java:221)
> at
> com.principal.ind.eworksheet.controller.BaseElectronicWorkshee
> tAction.getSecuredSession(BaseElectronicWorksheetAction.java:648)
> at
> com.principal.ind.eworksheet.controller.BaseElectronicWorkshee
> tAction.createSecurityProfile(BaseElectronicWorksheetAction.java:160)
> at
> com.principal.ind.eworksheet.controller.BaseElectronicWorkshee
> tAction.getSecurityProfile(BaseElectronicWorksheetAction.java:691)
> at
> com.principal.ind.eworksheet.controller.BaseElectronicWorkshee
> tAction.execute(BaseElectronicWorksheetAction.java:284)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform
> (RequestProcessor.java:465)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:274)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1422)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doServic
> e(StrictServletInstance.java:110)
> at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic
> e(StrictLifecycleServlet.java:174)
> at
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(Stric
tLifecycleServlet.java:313)
> at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
> (StrictLifecycleServlet.java:116)
> at
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(Servle
> tInstance.java:283)
> at
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis
> patch(ValidServletReferenceState.java:42)
> at
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa
> tch(ServletInstanceReference.java:40)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW
> ebAppDispatch(WebAppRequestDispatcher.java:948)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc
> h(WebAppRequestDispatcher.java:530)
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
> (WebAppRequestDispatcher.java:176)
> at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvo
> ker.java:79)
> at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook
> (WebAppInvoker.java:201)
> at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.hand
> leInvocation(CachedInvocation.java:71)
> at
> com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationCo
> ntext.invoke(CacheableInvocationContext.java:114)
> at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchBy
> URI(ServletRequestProcessor.java:186)
> at
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.serv
> ice(OSEListener.java:334)
> at
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Http
> Connection.java:56)
> at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnec
> tion.java:610)
> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
>
>
>
>
> Rick L. Taylor
> Principal Financial Group
> Work 515-247-5798
> fax 515-362-1409
> mailto:taylor.rick.l@principal.com
>