Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-371

Exception setXIncludeAware UnsupportedOperationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4, 0.5, 0.6
    • 0.6
    • gora-core
    • None
    • Gentoo Linux, Oracle JDK 1.7.0.51-r1

    Description

      I've started learning gora-tutorial and created a separate Maven project with gora-core and gora-hbase dependencies only.

      When I try to run the project the following exception raises:

      Failed to set setXIncludeAware(true) for parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
      org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@2662e5cf:java.lang.UnsupportedOperationException
      

      And then found a workaround on the StackOverflow:

      <dependencyManagement>
          <dependencies>
              <dependency>
                  <groupId>xerces</groupId>
                  <artifactId>xercesImpl</artifactId>
                  <version>2.11.0</version>
              </dependency>
          </dependencies>
      </dependencyManagement>
      

      Then I looked for the roots of the problem in dependency graph and found out that:

      1. The same issue was created rarely: https://issues.apache.org/jira/browse/GORA-69
      2. There was proposed a workaround with <dependencyManagement>

      But Maven dependency graph reflets the real root of the problem:

      1. Several Gora modules depending on old org.jdom:jdom-1.1.2 package:
        • gora-dynamodb
        • gora-dynamodb
        • gora-cassandra
        • gora-cassandra
        • gora-hbase
        • gora-mongodb
        • gora-tutorial
      2. jdom-1.1.2 depends on jaxen:jaxen-1.1.3
      3. jaxen-1.1.3 depends on xerces:xercesImpl-2.6.2
      4. xercesImpl-2.6.2 does not support setXIncludeAware(true) method.

      I propose to solve this issue just upgrading org.jdom:jdom upto 1.1.3 which does not pull old xerces 2.6.2.

      Attachments

        1. gora-jdom-xerces.patch
          1.0 kB
          Viacheslav Dobromyslov

        Issue Links

          Activity

            People

              dobromyslov Viacheslav Dobromyslov
              dobromyslov Viacheslav Dobromyslov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: