Issue does not seem to be linked to the barcode scanner widget, it states that it cannot open a jdbc connection to your database. Close and reopen studio pro might do the trick, another option would be reboting yoour machine.
Hello,
below I have attached a short video on how to use the barcode scanner in Mendix.