Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ./gradlew checkSetup fails with Java 8 on Docker dev image #34242

Open
17 tasks
charlespnh opened this issue Mar 11, 2025 · 2 comments
Open
17 tasks

[Bug]: ./gradlew checkSetup fails with Java 8 on Docker dev image #34242

charlespnh opened this issue Mar 11, 2025 · 2 comments

Comments

@charlespnh
Copy link
Contributor

charlespnh commented Mar 11, 2025

What happened?

I was setting up the dev environment using Docker and came across the NullPointerException error when running task :sdks:java:core:compileJava. From the Docker image I was using Java 8 and got this error. It is fine if I use Java 11 instead.

beam-docker-dev-error

I setup a GitHub Action workflow to reproduce the error here: https://github.com/charlespnh/beam/actions/runs/13744591726?pr=1

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@yuwtennis
Copy link

yuwtennis commented Mar 16, 2025

I was following this issue and did some testing . Looks like compileJava task fails when the docker is running on particular os . For this I did testing on multiple ubuntu releases.

https://github.com/yuwtennis/beam/actions/runs/13880748050/job/38838923540

version result
20.04 pass
22.04 pass
24.04 fail

@liferoad
Copy link
Contributor

The dev docker is always built with ubuntu:20.04 https://github.com/apache/beam/blob/master/dev-support/docker/Dockerfile#L21. I do not understand why the base OS could cause the docker fails to run compileJava. Thanks for your discovery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants