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

Fix JDBC Oracle exclude config for windows native builds #29552

Merged

Conversation

zakkak
Copy link
Contributor

@zakkak zakkak commented Nov 29, 2022

  • Quoting the exclude-config pattern fixes the issue:
Error: Unknown argument: quarkus-integration-test-jpa-oracle-999-SNAPSHOT-runner
  • After quoting the pattern we can use a more complex regex to avoid the need for two excludeconfig build items

@zakkak
Copy link
Contributor Author

zakkak commented Nov 29, 2022

Error: Classes that should be initialized at run time got initialized during image building:
 java.sql.DriverManager the class was requested to be initialized at run time (from 'META-INF/native-image/native-image.properties' in 'file:///project/lib/modified-com.oracle.database.jdbc.ojdbc11-21.5.0.0.jar' with 'java.sql.DriverManager'). To see why java.sql.DriverManager got initialized use --trace-class-initialization=java.sql.DriverManager
To see how the classes got initialized, use --trace-class-initialization=java.sql.DriverManager
com.oracle.svm.core.util.UserError$UserException: Classes that should be initialized at run time got initialized during image building:
 java.sql.DriverManager the class was requested to be initialized at run time (from 'META-INF/native-image/native-image.properties' in 'file:///project/lib/modified-com.oracle.database.jdbc.ojdbc11-21.5.0.0.jar' with 'java.sql.DriverManager'). To see why java.sql.DriverManager got initialized use --trace-class-initialization=java.sql.DriverManager

Hmmm, interesting. I'll have a look.

@zakkak zakkak force-pushed the 2022-11-29-fix-jdbc-oracle-native-windows branch from 08f6299 to c1f8d10 Compare November 29, 2022 16:24
@quarkus-bot quarkus-bot bot added the area/infra-automation anything related to CI, bots, etc. that are used to automated our infrastructure label Nov 29, 2022
@zakkak zakkak force-pushed the 2022-11-29-fix-jdbc-oracle-native-windows branch from c1f8d10 to 25d1d73 Compare November 29, 2022 20:20
@quarkus-bot quarkus-bot bot added the env/windows Impacts Windows machines label Nov 29, 2022
@zakkak zakkak force-pushed the 2022-11-29-fix-jdbc-oracle-native-windows branch from 25d1d73 to c36a548 Compare November 29, 2022 20:21
@zakkak zakkak merged commit 1f7f34a into quarkusio:main Nov 30, 2022
@quarkus-bot quarkus-bot bot added this to the 2.15 - main milestone Nov 30, 2022
@zakkak zakkak deleted the 2022-11-29-fix-jdbc-oracle-native-windows branch November 30, 2022 06:27
@gsmet gsmet modified the milestones: 2.15.0.CR1, 2.13.6.Final Dec 14, 2022
@gsmet gsmet modified the milestones: 2.13.6.Final, 2.7.7.Final Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core area/infra-automation anything related to CI, bots, etc. that are used to automated our infrastructure area/native-image env/windows Impacts Windows machines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants