mongodb / mongo-jdbc-driver

JDBC Driver for MongoDB Atlas SQL interface
Apache License 2.0
35 stars 33 forks source link

Driver not working under JBoss Log Manager / Quarkus #265

Open otgerrogla opened 2 weeks ago

otgerrogla commented 2 weeks ago

When using JBoss Log Manager as the log manager (which for instance is used by the Quarkus framework), when trying to connect the driver throws a SQLException caused by the call here to Logger.setParent .

This happens because the JBoss Logger implementation for some reason doesn't support setParent and unconditionally throws a SecurityException. But this prevents using the JDBC driver in Quarkus applications, so it would nice if it could be patched to support it, even if just try-catching the setParent call and silently ignoring this error.

Thanks

nbagnard commented 2 weeks ago

Thank you for reporting this issue. We created a ticket on our side to track this and will look into it.

Cheers, Natacha