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

Quarkus Native with OpenTelemetry-jdbc Unable to find a driver that accepts url: jdbc:oracle:thin@ #29110

Closed
brianmolinaspring opened this issue Nov 7, 2022 · 5 comments
Labels
area/tracing kind/bug Something isn't working triage/duplicate This issue or pull request already exists

Comments

@brianmolinaspring
Copy link

Describe the bug

hello guys, I need your support, I'm getting this error when trying to run my ms with quarkus native but it tells me that it can't find a driver, it should be noted that in jvm mode it works without problems:

at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:105)
at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:359)
at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:218)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:519)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.ja va:364)
at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73)
at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:151)
at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:91)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:555)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:833)
at com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:704)
at com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine(PosixPlatformThreads.java:202)

Caused by: java.lang.IllegalStateException: Unable to find a driver that accepts url: jdbc:oracle:thin:@(
at io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver.findDriver(OpenTelemetryDriver.java:113)
at io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver.connect(OpenTelemetryDriver.java:161)
at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:226)
at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:535)
at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:516)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
... 3 more

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@brianmolinaspring brianmolinaspring added the kind/bug Something isn't working label Nov 7, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Nov 7, 2022

/cc @brunobat, @radcortez

@geoand
Copy link
Contributor

geoand commented Nov 8, 2022

This looks like a duplicate of #28915. Can you confirm @brunobat ?

@brunobat
Copy link
Contributor

brunobat commented Nov 8, 2022

@geoand @brianmolinaspring correct and there is a PR: #28921
@brianmolinaspring can you please review that PR and see if your issue is solved by it?

@brianmolinaspring
Copy link
Author

@brunobat check and I'll tell you

@michalvavrik
Copy link
Member

We discussed this with @brianmolinaspring in open-telemetry/opentelemetry-java-instrumentation#7028 sufficiently, and this is definitely a duplicate of #28915, hence we should close the issue.

@michalvavrik michalvavrik added the triage/duplicate This issue or pull request already exists label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tracing kind/bug Something isn't working triage/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants