Derby database connection not possible #24347
Replies: 2 comments
-
In my opinion, the problem is that the embedded driver is missing in the Derby library. I tried to specify it directly - i.e. quarkus.datasource.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver -, but this doesn't work, because it is not included in the library. |
Beta Was this translation helpful? Give feedback.
-
i use quarkus 3.4.3 and i've the same probleme with embeded file jdbc url...
after searching, i found that quarkus pom not use the correct dependency, they use the network version only of derby, and the driver autoconfig of quarkus autoselect the network driver version only of derby.... plus the derby network driver not send comprehensible error message to advertize the user of the nature of the error... in v10.14 the quarkus/extensions/jdbc/jdbc-derby/runtime/pom.xml Lines 25 to 28 in 44f9b08 in v10.14.2.0 is ok for me when set
PS: I think that quarkus must add the in v10.15.2.0 i need to add this dependcy to compile:
but i got : java.lang.NullPointerException: Cannot invoke "java.sql.Driver.acceptsURL(String)" because the return value of "org.apache.derby.jdbc.EmbeddedDriver.getDriverModule() in v10.16.1.1 i need the same new dependency as v10.15 but i got: i think v10.15+ are buggy... and need issue to be emited on bugzilla of derby project |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm building a quarkus application that should connect to a embedded derby database in order to store the application data.
The driver is not able to use the provided URL to connect to the database
jdbc:derby:memory:myDB
. For test purposes i implanted a example project. Her i use only a memory database.application.properties
build.gradle (dependencies)
Error message
Beta Was this translation helpful? Give feedback.
All reactions