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

JavaExecGeneratorTest.customize_whenInvoked_shouldNotAddBuildTimestampToBuildDateLabel fails in Java 8 #2409

Closed
manusa opened this issue Oct 4, 2023 · 2 comments · Fixed by #2410
Assignees
Milestone

Comments

@manusa
Copy link
Member

manusa commented Oct 4, 2023

Description

https://ci.eclipse.org/jkube/job/ReleasePipelines/job/ReleaseSnapshots/107/consoleFull

java.lang.ExceptionInInitializerError
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at org.eclipse.jkube.generator.javaexec.JavaExecGeneratorTest.customize_whenInvoked_shouldNotAddBuildTimestampToBuildDateLabel(JavaExecGeneratorTest.java:157)
Caused by: java.lang.NullPointerException: localDateTime
	at java.base/java.time.ZonedDateTime.ofLocal(ZonedDateTime.java:369)
	at java.base/java.time.ZonedDateTime.of(ZonedDateTime.java:342)
	... 2 more

Relates to: #2398 / #2393

@manusa manusa self-assigned this Oct 4, 2023
@manusa manusa moved this to In Progress in Eclipse JKube Oct 4, 2023
@rohanKanojia
Copy link
Member

On pull request checks, I see java 8 check passing. It's using 1.8.0_362 (same as the failing job) .

@manusa manusa moved this from In Progress to Review in Eclipse JKube Oct 4, 2023
@manusa manusa added this to the 1.15.0 milestone Oct 4, 2023
@manusa
Copy link
Member Author

manusa commented Oct 4, 2023

It's the Java distro not the version.
My local environment fails too.

Anyway, it's better to have a way to specifically set the build date. This (#2410) is a much proper way to configure the build plus helps testing stuff without the need for special mocks.

@github-project-automation github-project-automation bot moved this from Review to Done in Eclipse JKube Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants