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

[JDK 23/22 EA] quarkus-integration-test-hibernate-search-orm-elasticsearch-outbox-polling native integration test fails due to NumberFormatException #39664

Closed
jerboaa opened this issue Mar 25, 2024 · 4 comments

Comments

@jerboaa
Copy link
Contributor

jerboaa commented Mar 25, 2024

Describe the bug

We see native integration test failures in Mandrel CI. The org.awaitability code doesn't seem to cope with the 23-beta version string. Failure looks like:

 2024-03-25 02:43:30,274 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-1) HTTP Request to /test/hibernate-search-outbox-polling/check-agents-running failed, error id: 772a0050-aca3-4693-93bd-e47597e4b754-1: org.jboss.resteasy.spi.UnhandledException: java.lang.NumberFormatException: For input string: "23-beta"
	at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:107)
	at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:344)
	at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:205)
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:452)
	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invokePropagateNotFound$6(SynchronousDispatcher.java:275)
	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:154)
	at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:321)
	at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:157)
	at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:260)
	at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:84)
	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:151)
	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:97)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:599)
	at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:11)
	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:11)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base@23-beta/java.lang.Thread.runWith(Thread.java:1588)
	at java.base@23-beta/java.lang.Thread.run(Thread.java:1575)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:836)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:812)
Caused by: java.lang.NumberFormatException: For input string: "23-beta"
	at java.base@23-beta/java.lang.Integer.parseInt(Integer.java:588)
	at java.base@23-beta/java.lang.Integer.parseInt(Integer.java:685)
	at org.awaitility.core.JavaVersionDetector.getJavaMajorVersion(JavaVersionDetector.java:21)
	at org.awaitility.core.LambdaErrorMessageGenerator.getLambdaDetectionClassName(LambdaErrorMessageGenerator.java:86)
	at org.awaitility.core.LambdaErrorMessageGenerator.isLambdaClass(LambdaErrorMessageGenerator.java:30)
	at org.awaitility.core.AssertionCondition.generateDescriptionPrefix(AssertionCondition.java:87)
	at org.awaitility.core.AssertionCondition.getMatchMessage(AssertionCondition.java:73)
	at org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:54)
	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
	at java.base@23-beta/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base@23-beta/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base@23-beta/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	... 4 more

See for example here:
https://github.com/graalvm/mandrel/actions/runs/8413746359/job/23037180271#step:12:1589

Copy link

quarkus-bot bot commented Mar 25, 2024

/cc @Karm (mandrel), @galderz (mandrel), @gsmet (elasticsearch,hibernate-search), @loicmathieu (elasticsearch), @yrodiere (elasticsearch,hibernate-search), @zakkak (mandrel,native-image)

@jerboaa
Copy link
Contributor Author

jerboaa commented Mar 25, 2024

Upstream issue: awaitility/awaitility#277

@jerboaa jerboaa changed the title [JDK 23 EA] quarkus-integration-test-hibernate-search-orm-elasticsearch-outbox-polling native integration test fails due to NumberFormatException [JDK 23/22 EA] quarkus-integration-test-hibernate-search-orm-elasticsearch-outbox-polling native integration test fails due to NumberFormatException Mar 28, 2024
@marko-bekhta
Copy link
Contributor

I think we can close this one now since awaitility was bumped to 4.2.2 in #42385 and it includes the fix for awaitility/awaitility#277

@jerboaa
Copy link
Contributor Author

jerboaa commented Aug 12, 2024

Agreed. Closing it now.

@jerboaa jerboaa closed this as completed Aug 12, 2024
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

2 participants