Do you find this element "OTA_HotelAvailRS" in the schema ? I think I
need to see the schema. If you can create test case, that would be great.
Jitu
LeRoy Hall wrote:
>
> Below is the stack trace. Looks like it's caused by the following though:
>
>
>
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the
> declaration of element 'OTA_HotelAvailRS'.
>
>
>
> INFO | jvm 1 | 2008/07/20 14:49:17 |
> javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:206)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.processResponse(AbstractSchemaValidationTube.java:184)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:605)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.client.Stub.process(Stub.java:248)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> $Proxy39.otaHotelAvail(Unknown Source)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:205)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
> INFO | jvm 1 | 2008/07/20 14:49:17 | at
> java.lang.Thread.run(Thread.java:595)
> INFO | jvm 1 | 2008/07/20 14:49:18 | Caused by:
> com.sun.istack.XMLStreamException2
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:185)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:170)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:147)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> javax.xml.validation.Validator.validate(Validator.java:82)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.doProcess(AbstractSchemaValidationTube.java:204)
> INFO | jvm 1 | 2008/07/20 14:49:18 | ... 18 more
> INFO | jvm 1 | 2008/07/20 14:49:18 | Caused by:
> com.sun.istack.XMLStreamException2
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:270)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.istack.XMLStreamReaderToContentHandler.bridge(XMLStreamReaderToContentHandler.java:109)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.xml.ws.util.xml.StAXSource$1.parse(StAXSource.java:182)
> INFO | jvm 1 | 2008/07/20 14:49:18 | ... 23 more
> INFO | jvm 1 | 2008/07/20 14:49:18 | Caused by:
> org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration
> of element 'OTA_HotelAvailRS'.
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1944)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.sun.istack.XMLStreamReaderToContentHandler.handleStartElement(XMLStreamReaderToContentHandler.java:264)
> INFO | jvm 1 | 2008/07/20 14:49:18 | ... 25 more
> INFO | jvm 1 | 2008/07/20 14:49:18 |
> java.lang.StringIndexOutOfBoundsException: String index out of range: -24
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> java.lang.String.substring(String.java:1768)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.worldspan.imb.util.HTL4JAppender.append(HTL4JAppender.java:58)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> org.apache.log4j.Category.callAppenders(Category.java:194)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> org.apache.log4j.Category.forcedLog(Category.java:379)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> org.apache.log4j.Category.warn(Category.java:999)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.travelport.imb.Accor.map.AvailRequest.invokeWS(AvailRequest.java:221)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.worldspan.imb.handlers.AccorHandler.SendRecvVendor(AccorHandler.java:245)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.worldspan.imb.handlers.MessageHandler.Process(MessageHandler.java:110)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.worldspan.imb.handlers.MQMessageHandler.onMessage(MQMessageHandler.java:119)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2812)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406)
> INFO | jvm 1 | 2008/07/20 14:49:18 | at
> java.lang.Thread.run(Thread.java:595)
>
> --- On *Thu, 7/17/08, Jitendra Kotamraju
> /<Jitendra.Kotamraju_at_Sun.COM>/* wrote:
>
> From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
> Subject: Re: javax.xml.ws.WebServiceException:
> com.sun.istack.XMLStreamException2
> To: dev_at_jax-ws.dev.java.net
> Date: Thursday, July 17, 2008, 4:22 PM
>
> When the client receives the exception, did you print stack trace ? Does
> the exception has a cause ? Can you see the client exception in debugger.
>
> XMLStreamException doesn't chain the exceptions, hence we use
> XMLStreamException2.
>
> thanks,
> Jitu
>
> LeRoy Hall wrote:
> >
> > FYI - I am using JAX-WS RI 2.1.3-b02.
> >
> >
> >
> > Also, I am running my client with schema validation turned on. When I
> > turn it off, I don't get this exception. Also, the client is a stand
> > alone Java app running as a windows service.
> >
> >
> >
> > Any ideas?
> >
> >
> >
> >
> >
> > --- On *Wed, 7/16/08, LeRoy Hall /<leroy_e_hall_at_yahoo.com>/* wrote:
> >
> > From: LeRoy Hall <leroy_e_hall_at_yahoo.com>
> > Subject: javax.xml.ws.WebServiceException:
> > com.sun.istack.XMLStreamException2
> > To: "jax-ws forum" <dev_at_jax-ws.dev.java.net>
> > Date: Wednesday, July 16, 2008, 1:34 PM
> >
> > I was wondering if anyone has ever encountered this exception:
> >
> >
> >
> > javax.xml.ws.WebServiceException: com.sun.istack.XMLStreamException2
> >
> >
> >
> > From what I can find on the internet it seems to be coming out of
> > the SAAJMessage class as the result of a SOAPException, but I have
> > found no known causes of the Exception.
> >
> >
> >
> > Here's the SOAP response that caused the exception:
> >
> >
> >
> > HTTP/1.1 200 OK
> > Content-Type: text/xml;charset=UTF-8
> > Content-Length: 733
> > Date: Wed, 16 Jul 2008 18:29:14 GMT
> > Server: Tracteur Turbo
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <S:Envelope
> xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
> > <S:Header>
> > <wsp:authentication
> > xmlns:wsp="http://xmlota.wspan.com/webservice/">
> > <wsp:userid>***</wsp:userid>
> > <wsp:password>***</wsp:password>
> > <wsp:payloadVersion>2007B</wsp:payloadVersion>
>
> > </wsp:authentication>
> > </S:Header>
> > <S:Body>
> > <OTA_HotelAvailRS
> > xmlns="http://www.opentravel.org/OTA/2003/05"
> > TimeStamp="2008-07-16T20:29:14.014+02:00"
> Version="1.006"
> > PrimaryLangID="en" Target="Test"
> EchoToken="AV">
> > <Errors>
> > <Error Type="3"
> Code="400">HOTEL NOT IN THE DATA
> > BASE</Error>
> > </Errors>
> > </OTA_HotelAvailRS>
> > </S:Body>
> > </S:Envelope>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>
>