llmhyy / microbat

A feedback-based debugger for interactively recommending suspicious step in buggy program execution.
55 stars 16 forks source link

Issue with compiling mysql-connector #231

Open dingyuchen opened 2 years ago

dingyuchen commented 2 years ago

Instrumentator unable to connect to the mysql database. (There is no issue with the plugin connector)

Stacktrace:

==java.lang.ExceptionInInitializerError
    at com.mysql.jdbc.ConnectionPropertiesImpl.<clinit>(ConnectionPropertiesImpl.java:600)
    at microbat.sql.DbService.<clinit>(DbService.java:19)
    at microbat.sql.Recorder.create(Recorder.java:22)
    at microbat.instrumentation.TraceAgent.shutdown(TraceAgent.java:69)
    at microbat.instrumentation.Agent.stop(Agent.java:124)
    at microbat.instrumentation.Agent._exitProgram(Agent.java:94)
    at exp.concurrency.case1.DiningPhilosophersDebug.main(DiningPhilosophersDebug.java:23)
Caused by: java.lang.RuntimeException: Can't load resource bundle due to underlying exception java.lang.NullPointerException
    at com.mysql.jdbc.Messages.<clinit>(Messages.java:54)
    ... 7 more
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1581)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:782)
    at com.mysql.jdbc.Messages.<clinit>(Messages.java:52)
    ... 7 more