Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4722461

[Blocking] StackOverflowException when using JAXP 1.2/Xerces schema functionnali

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.0
    • xml



      Name: ja120114 Date: 07/29/2002


      Implementing XML schema support in Tomcat produce the following exception:

      The resolveMethod get invoked over and over when the following
      properties is set:


                       /** XERCES 2 enter inside a infinite loop here
                        * 2002-07-28 14:03:40 HostConfig[localhost] Error
      deploying web application directory reportTool
                               java.lang.StackOverflowError
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:575)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)
                                       at
      org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.java:588)
                        * ....
                        *
                        */
      The resolveEntity method is indefinitly invoked. Whenever the
      schemaLocation is set, the same error is produced.

      The code used to reproduce the bug is available under:

      ~ja120114/public_html/jaxp_bug

      I.m using JAXP 1.2 RI and Xerces 2.0.2 (06/21/02)

      Thanks,

      -- Jeanfrancois

      P.S I'm sending this bug using Bugtraq by mail so some fiels may be wrong (450.224.4754)



      ======================================================================

      This bug is a duplicate of 4708859. This has already been fixed in Xerces-CVS.
      Please get latest binary from http://gump.covalent.net/jars/latest/.


      ###@###.### 2002-07-30

            gsharmasunw Gopal Sharma (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: