0 Replies Latest reply on Apr 1, 2004 11:22 AM by 348552

    AQPropServlet:JMS-439: Element 'schema' has invalid namespace

    348552
      I am trying to use the AQXMLServlet to post messages in an AQ over HTTP.
      The Java file and the Jar files that I am using are from an infrastructure installation having version :"
      Oracle9i Enterprise Edition Release 9.0.1.3.1 - Production
      With the Partitioning option JServer Release 9.0.1.3.0 - Production"

      I am using AQPropServlet20.java.
      While I try to post to the servlet, I get this error:
      Can anyone please help me to solve this error?
      thanks in advance,
      regards,
      Libin
      ======
      <?xml version="1.0" ?>
      <Envelope xmlns="http://ns.oracle.com/AQ/schemas/envelope">
      <Body>
      <Fault xmlns="http://ns.oracle.com/AQ/schemas/envelope">
      <faultcode>110</faultcode>
      <faultstring>Client Fault</faultstring>
      <detail>
      <status_response>
      <status_code>-1</status_code>
      <error_code>439</error_code>
      <error_message>JMS-439: Invalid schema document Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'</error_message>
      </status_response>
      </detail>
      </Fault>
      </body>
      </Envelope>
      ======
      This is the SOAP Message that I am posting:
           <Envelope xmlns="http://ns.oracle.com/AQ/schemas/envelope">
           <Body>
           <AQXmlSend xmlns ="http://ns.oracle.com/AQ/schemas/access">
           <producer_options>
                <destination>OWF_MGR.WF_IN</destination>
                     </producer_options>
                     <message_set>
                     <message_count>1</message_count>
                          <message>
                     <message_number>1</message_number>
                               <message_header>
                     <correlation>1</correlation>
                                    <sender_id>
                     <agent_name>OWF_MGR</agent_name>
                               </sender_id>
                </message_header>
      .........

                                    
      These excerpts are from the web server log:
      ........
      http9080-Processor25 AQxmlIdapResolver.resolveEntity: resolving target NS http://ns.oracle.com/AQ/schemas/access System ID: envelope.xsd
      http9080-Processor25 AQxmlIdapResolver.resolveEntity: resolving target NS http://ns.oracle.com/AQ/schemas/access System ID: soap_env.xsd
      <Line 8, Column 56>: XSD-2030: (Error) Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
      <Line 8, Column 68>: XSD-2030: (Error) Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
      <Line 13, Column 32>: XSD-2027: (Error) Invalid element 'element' in 'complexType'
      <Line 13, Column 32>: XSD-2027: (Error) Invalid element 'element' in 'complexType'
      <Line 21, Column 30>: XSD-2027: (Error) Invalid element 'any' in 'complexType'
      <Line 27, Column 28>: XSD-2027: (Error) Invalid element 'any' in 'complexType'
      .........
      http9080-Processor25 AQxmlIdapConverter.createSchemaBuilder-ex: Exception: oracle.xml.parser.schema.XSDException: Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
      oracle.xml.parser.schema.XSDException: Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
           at oracle.xml.parser.schema.XSDBuilder.buildSchema(XSDBuilder.java:488)
           at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:296)
           at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:241)
           at oracle.AQ.xml.AQxmlIdapConverter.getSchemaObject(AQxmlIdapConverter.java:135)
           at oracle.AQ.xml.AQxmlDriver.parseDocument(AQxmlDriver.java:130)
           at oracle.AQ.xml.AQxmlDriver.parseDocument(AQxmlDriver.java:89)
           at oracle.AQ.xml.AQxmlProcessor.processMessage(AQxmlProcessor.java:284)
           at oracle.AQ.xml.AQxmlServlet20.doPost(AQxmlServlet20.java:232)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
      ............
           at java.lang.Thread.run(Unknown Source)
      http9080-Processor25 AQxmlProcessor.processMessage: Exception: oracle.AQ.xml.AQxmlException: JMS-439: Invalid schema document

      oracle.AQ.xml.AQxmlException: JMS-439: Invalid schema document

           at oracle.AQ.xml.AQxmlError.throwAQEx(AQxmlError.java:236)
           at oracle.AQ.xml.AQxmlIdapConverter.getSchemaObject(AQxmlIdapConverter.java:151)
           at oracle.AQ.xml.AQxmlDriver.parseDocument(AQxmlDriver.java:130)
           at oracle.AQ.xml.AQxmlDriver.parseDocument(AQxmlDriver.java:89)
           at oracle.AQ.xml.AQxmlProcessor.processMessage(AQxmlProcessor.java:284)
           at oracle.AQ.xml.AQxmlServlet20.doPost(AQxmlServlet20.java:232)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
      ..............
      http9080-Processor25 AQxmlProcessor.createExceptionResponse: Entry
      http9080-Processor25 AQxmlStatusResponse.AQxmlStatusResponse: Constructor II - status
      http9080-Processor25 AQxmlProcessor.appendErrorMessage: Error: JMS-439: Invalid schema document

      http9080-Processor25 AQxmlProcessor.appendErrorMessage: AQxmlException
      http9080-Processor25 AQxmlProcessor.appendErrorMessage: Error: JMS-439: Invalid schema document
      Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
      http9080-Processor25 AQxmlProcessor.appendErrorMessage: Final Error Msg: JMS-439: Invalid schema document
      Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
      http9080-Processor25 AQxmlProcessor.appendErrorMessage: Final Error Msg: JMS-439: Invalid schema document
      Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
      http9080-Processor25 AQxmlProcessor.processMessage: after perfAQoper-2
      http9080-Processor25 AQxmlDriver.generateDOMDocument: Entry
      http9080-Processor25 AQxmlDriver.generateDOMDocument: document namespace is null - using IDAP
      http9080-Processor25 AQxmlServContext.getConverter: entry-namespace: http://ns.oracle.com/AQ/schemas/envelope
      http9080-Processor25 AQxmlIdapConverter.constructor: Entry
      http9080-Processor25 AQxmlServContext.getConverter: exit
      http9080-Processor25 AQxmlIdapConverter.generateDOMDocument: entry
      http9080-Processor25 AQxmlIdapConverter.genFaultXml: entry
      http9080-Processor25 AQxmlGenerator.genStatusResponseXml: entry
      http9080-Processor25 AQxmlGenerator.genStatusResponseXml: exit
      http9080-Processor25 AQxmlIdapConverter.genFaultXml: exit
      http9080-Processor25 AQxmlIdapConverter.generateDOMDocument: exit
      .........