adoptium / adoptium/aqa-tests

java/beans/XMLEncoder/java_awt_ScrollPane.java failed with `java.awt.HeadlessException` on Mac

Open
#2,848 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

java/beans/XMLEncoder/java_awt_ScrollPane.java failed with `java.awt.HeadlessException` on Mac.

```
Stacktrace
Execution failed: `main' threw exception: java.awt.HeadlessException: The application is not running in a desktop session, but this program performed an operation which requires it.
Standard Output

Standard Error
java.awt.HeadlessException:
The application is not running in a desktop session,
but this program performed an operation which requires it.
...

JavaTest Message: Test threw exception: java.awt.HeadlessException:
The application is not running in a desktop session,
but this program performed an operation which requires it.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.awt.HeadlessException: The application is not running in a desktop session, but this program performed an operation which requires it.
```
https://ci.adoptopenjdk.net/view/Test_openjdk/job/Test_openjdk16_hs_extended.openjdk_x86-64_mac_testList_1/10/testReport/java_beans_XMLEncoder_java_awt_ScrollPane/java/java_awt_ScrollPane/

Contributor guide

Open the contributing guide

Research direction

Start with java/beans/XMLEncoder/java_awt_ScrollPane.java and the linked CI test report to reproduce the java.awt.HeadlessException on Mac. Determine the test's expected behavior in a non-desktop session and verify that the test completes successfully without this failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.