Skip to main content

How to access metadata in MySql from Java application (User does not have access to metadata ,SQLException)



When you get an error message like:
java.lang.Exception: java.sql.SQLException: User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted, configure connection with "noAccessToProcedureBodies=true" to have driver generate parameters that represent INOUT strings irregardless of actual parameter types.

Ans:

Please use the below connection string settings:

 private Connection con;

 String connectionURL = "jdbc:mysql://<ip address>:3306/<database name>?user=<username>&password=<password>&noAccessToProcedureBodies=true";

con = DriverManager.getConnection(connectionURL);

Comments

Popular posts from this blog

Re-programming Ubislate 7C+

Re-Programming / Flashing Ubislate 7c+ This procedure of flashing / re-programming will help you to solve many problems as below... Tablet Stuck at home screen, Freezed Any Software related bug, developed later on which can't be solved with Factory reset. Since this is the procedure from Datawind itself, so you don't need to worry before doing any step. You need 1 tool & 1 image file before starting the process. Phoenix Card SW Any Micro SD Memory Card Image file - SW for Ubislate, 281 Mb  Steps:- 1)    Kindly download the Phoenix card software from here.         https://mega.co.nz/#!coc0HTQJ!WpZmCGRdGwXnzCOaUInqpBzMfDtFjCwEqVWfPg16N20 2)    Extract PhoenixCard.rar by using Winzip or Winrar. 3)    Then download the image file which is SW for your tablet from below link (281 Mb) https://mega.co.nz/#!Iwt1SLhL!eSTrg0vtswcZBUszaeSSmyHjt6QlD2U1LJE0MDV5qOc 4)    And ...

Enable Wifi (if not working) in Ubislate / Aakash Tablet

After doing below commands the wifi works in Ubislate 7c+: a)  Install "terminal emulator" in the device (copy the apk to device using memory card or data cable connection). b) Open terminal emulator type the following two commands & press enter after each > su > insmod /vendor/modules/8192cu.ko c) Open wifi in the settings and on/off wifi d) It works!!! WiFi will be worked till reboot. After reboot/restart device you need to run the command again Terminal Emulator.