Skip to content

[🐛 Bug]: Expected to read a START_MAP but instead have: END. Last 0 characters #12217

@bchhabra

Description

@bchhabra

What happened?

private FirefoxDriver prepareFirefoxWebDriver () {
FirefoxOptions options = new FirefoxOptions();
options.addArguments("--headless=new");
return new FirefoxDriver(options);
}

<selenium.version>4.10.0</selenium.version>
Issue happens only in jenkins while launching the browser in headless mode.

not able to reproduce in macos Ventura 13.4 or Windows.

How can we reproduce the issue?

launch Firefox as headless on RHEL 7.9

NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"

Relevant log output

Error Message

Unable to obtain: Capabilities {acceptInsecureCerts: true, browserName: firefox, moz:debuggerAddress: true, moz:firefoxOptions: {args: [--headless=new]}}

Stacktrace

org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: Capabilities {acceptInsecureCerts: true, browserName: firefox, moz:debuggerAddress: true, moz:firefoxOptions: {args: [--headless=new]}}
	at com.sample.test.ratePayTest(PPRTest.java:41)
Caused by: org.openqa.selenium.json.JsonException: Unable to parse: 
	at com.sample.test.ratePayTest(PPRTest.java:41)
Caused by: org.openqa.selenium.json.JsonException: 
Expected to read a START_MAP but instead have: END. Last 0 characters read: 
Build info: version: '4.10.0', revision: 'c14d967899'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-1160.92.1.el7.x86_64', java.version: '1.8.0_361'
Driver info: driver.version: FirefoxDriver
	at at com.sample.test.ratePayTest(PPRTest.java:41)

Operating System

RHEL 7.9

Selenium version

4.10.0

What are the browser(s) and version(s) where you see this issue?

Firefox

What are the browser driver(s) and version(s) where you see this issue?

firefox-102.11.0-2.el7_9 geckodriver-0.29.1-2

Are you using Selenium Grid?

NO

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-javaJava BindingsI-defectSomething is not working as intendedI-questionApplied to questions. Issues should be closed and send the user to community resources.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions