Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2681

ClassCastException - Apache Nutch 1.x, Selenium v2.48.2, firefox 31.4.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 1.15
    • None
    • fetcher
    • None

    Description

      Fetching of Ajax content using protocol-selenium, with the specified selenium and firefox versions, while executing bin/nutch fetch, below ClassCastException thrown

      Caused by: org.openqa.selenium.WebDriverException: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

      Build info: version: '2.48.2', revision: '41bccdd10cf2c0560f637404c2d96164b67d9d67', time: '2015-10-09 13:08:06'

      System info: host: '24labs', ip: '10.0.10.24', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-327.13.1.el7.x86_64', java.version: '1.8.0_191'

      Driver info: driver.version: FirefoxDriver

       at org.openqa.selenium.firefox.internal.FileExtension.readIdFromInstallRdf(FileExtension.java:142)

       at org.openqa.selenium.firefox.internal.FileExtension.writeTo(FileExtension.java:61)

       at org.openqa.selenium.firefox.internal.ClasspathExtension.writeTo(ClasspathExtension.java:64)

       at org.openqa.selenium.firefox.FirefoxProfile.installExtensions(FirefoxProfile.java:443)

       at org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:421)

       at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:95)

      ... 12 more

      Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

       at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)

       at org.openqa.selenium.firefox.internal.FileExtension.readIdFromInstallRdf(FileExtension.java:95)

      Also tried with below firefox versions (Firefox: 60.3 oesr (64 bit), Selenium : v3.4.0,  Geckodriver: 0.23.0 ( 2018-10-04)), ended with same casting exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            venkata.mr@hcl.com Venkata Madhusudhana Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: