Hello
Error with the library [chargeable] MSMySQL
Error occurred on line 151 (Conf_Mysql)
java.lang.ClassNotFoundException: from $ donmanfred $ B4A $ MariaDB
at anywheresoftware.b4a.shell.Shell.getCorrectClassName (Shell.java:544)
at anywheresoftware.b4a.shell.Shell.createObject (Shell.java:516)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl (Shell.java:320)
at anywheresoftware.b4a.shell.Shell.raiseEvent (Shell.java:238)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:521)
at anywheresoftware.b4a.ShellBA.raiseEvent2 (ShellBA.java:121)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:175)
at anywheresoftware.b4a.BA.raiseEvent (BA.java:171)
anywheresoftware.b4a.objects.ViewWrapper at $ 1.onClick (ViewWrapper.java:78)
at android.view.View.performClick (View.java:2408)
android.view.View at $ PerformClick.run (View.java:8816)
at android.os.Handler.handleCallback (Handler.java:587)
at android.os.Handler.dispatchMessage (Handler.java:92)
at android.os.Looper.loop (Looper.java:123) ~ e: at android.app.ActivityThread.main (ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:521)
com.android.internal.os.ZygoteInit at $ MethodAndArgsCaller.run (ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:626)
at dalvik.system.NativeStart.main (Native Method)
Code
Sub test_Click
Dim db As MSMaria
If Edit_Servidor.Text = "" Or Edit_Usuario.Text = "" Or Edit_Datos.Text = "" Or Edit_Clave.Text = "" Then
Msgbox ("missing fields to be completed", "Error")
Else
Try
str_sql = "Select * from Server"
c = Main.sql_conexion.ExecQuery (str_sql)
If c.RowCount = 0 Then
Msgbox ("No server is configured", "Error")
Else
c.Position = 0
db.Initialize("MySQL",c.GetString("Servidor"),c.GetString("Usuario"),c.GetString("Clave"),c.GetString("Datos"))
MsgBox ("Connection", "")
End If
Catch
ToastMessageShow ("Error when checking", True)
Activity.Finish
End Try
End If
End Sub
Dim db As error MSMaria
Thank You