Welcome! Log In Create A New Profile

Advanced

My application generated on windev mobile gives this error when I run on the phone, what can it be? Type of database not recognized or not supported.

Posted by Allan 
===== Error =====
Date and time=28/05/2020 19:18:35
Message=Type of database not recognized or not supported.
Process=Left-clicking Tela_Login.BTN_Connect
WLanguage stack=Left-clicking Tela_Login.BTN_Connect
Java stack=fr.pcsoft.wdjava.core.erreur.WDErreurManager.a(Unknown Source:23)
fr.pcsoft.wdjava.core.erreur.WDErreurManager.a(Unknown Source:6)
fr.pcsoft.wdjava.database.hf.WDHF_Connexion.c(Unknown Source:118)
fr.pcsoft.wdjava.database.hf.WDHF_Connexion.setProvider(Unknown Source:3)
fr.pcsoft.wdjava.core.WDObjet.setPropString(Unknown Source:129)
fr.pcsoft.wdjava.core.WDObjet.setProp(Unknown Source:0)
com.mycompany.my_project9.wdgen.GWDFTela_Login$GWDBTN_Connect.clicSurBoutonGauche(GWDFTela_Login.java:282)
fr.pcsoft.wdjava.ui.r.executerTraitement(Unknown Source:190)
fr.pcsoft.wdjava.ui.champs.kb.executerTraitement(Unknown Source:9)
fr.pcsoft.wdjava.ui.r.a(Unknown Source:4)
fr.pcsoft.wdjava.ui.r.appelPCode(Unknown Source:90)
fr.pcsoft.wdjava.ui.champs.jb.appelPCode(Unknown Source:9)
fr.pcsoft.wdjava.ui.r.appelPCode_TLM(Unknown Source:17)
fr.pcsoft.wdjava.ui.champs.bouton.g.onClick(Unknown Source:89)
android.view.View.performClick(View.java:7161)
android.view.View.performClickInternal(View.java:7138)
android.view.View.access$3500(View.java:811)
android.view.View$PerformClick.run(View.java:27419)
android.os.Handler.handleCallback(Handler.java:883)
android.os.Handler.dispatchMessage(Handler.java:100)
android.os.Looper.loop(Looper.java:224)
android.app.ActivityThread.main(ActivityThread.java:7520)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Thread=id=2
name=main
priority=5
groupName=main


===== Application =====
Application name=Test1.0.0.0.1
Application version=0.0.7.0
Name of the package=com.mycompany.my_project9
Date and time of startup=28/05/2020 19:18:15
Version of Android framework=24.0.261.0

===== Device =====
Model=POCOPHONE F1
Constructor=Xiaomi
Make=Xiaomi

===== System =====
Version number of Android=10 (unknown)
Android Level Api=29
Total internal storage memory=110,81 GB
Internal storage memory available=38,38 GB
Screen density=440
Screen resolution=1080x2246
the error message indicates a type of DB not supported...

Supported DBs on android are:
- Local : HF classic and SQLLite
- Remote : HF C/S

If you try to use ANYTHING else, you will get that error.
Thanks for the answer, I have the functions of the HF to access a remote daoda abnco, there is no local bank. The connection function was

MyConnection is Connection
// Describe the connection
MyConnection ..User = "USER"
MyConnection ..Password = "PASSWORD"
MyConnection ..Server = "MYSERVER"
MyConnection ..Database = "Database"
MyConnection ..Provider = hAccessHFClientServer
MyConnection ..Access = hOReadWrite
MyConnection ..ExtendedInfo = "Extended information"
MyConnection ..CursorOptions = hClientCursor

HOpenConnection ( MyConnection )
the code you are showing is the example for the help (https://doc.windev.com/en-US/?2512104&name=provider_propriete&product=WD)
If this is your real code, there is NO chance that it will work, as the properties values are clearly wrong
If this is NOT your real code, there is no way we can help check for errors.
my connection is this

MyConnection is Connection
// Describe the connection
MyConnection ..User = "root"
MyConnection ..Password = ""
MyConnection ..Server = "xxxx.xxx.com.br:33xxx"
MyConnection ..Database = "bingo"
MyConnection ..Provider = hnativeacessMySQL
MyConnection ..Access = hOReadWrite

HOpenConnection (MyConnection)

in the windev simulator it works normally, I can make queries, it just doesn't work on my cell phone. I'm out of a PC right now as soon as I'm with him I send the full code
Php4wm
Allan

You cannot use MySql database with Windev Mobile except through web service or Php4WM options

[infosonline.net]
got it, I added php4WX to the latest version of the sqlmanagerX site: I tried a simple code:

My is c_Php4WX

My:TypeBase = "MySQL"

My:mySQLConnecte(xxxx.xxx.com.br:33xxx, "root", "", "bingo)

My:mySQLExec("Select * From apostadores",0)

mySQLConnecte returns true
but mySQLExec returns false

I tested the query in the existing workbench


my windev mobile is in version 23
Your code is not good
Read (in french)
[forum.sqlmanagerx.com]
I'll check, thanks
I did the whole procedure of the link you sent, the application returns this error: Source non identifiée, acces refusée "in php4wx.
You have on youtube a video with a complete explanation for php4wm

[infosonline.net]
Hello,

You will have to set the Public Key in both the WX class file for WinDev and in the PHP script file.

I think this should get you rolling.

--
Yogi Yang
Date and time=30/08/2023 10:48:31
Message=Type of database not recognized or not supported.
Process=Declaring the global variables of WIN_Login
WLanguage stack=Declaring the global variables of WIN_Login
Java stack=fr.pcsoft.wdjava.core.erreur.WDErreurManager.a(WDErreurManager.java:144)
fr.pcsoft.wdjava.core.erreur.WDErreurManager.a(WDErreurManager.java:137)
fr.pcsoft.wdjava.database.hf.WDHF_Connexion.b(WDHF_Connexion.java:7)
fr.pcsoft.wdjava.database.hf.WDHF_Connexion.setProvider(WDHF_Connexion.java:327)
fr.pcsoft.wdjava.core.WDObjet.setPropString(WDObjet.java:1014)
fr.pcsoft.wdjava.core.WDObjet.setProp(WDObjet.java:1062)
com.mycompany.nm_mobile.wdgen.GWDFWIN_Login.declarerGlobale(GWDFWIN_Login.java:874)
fr.pcsoft.wdjava.ui.champs.fenetre.w.onCreateWindow(w.java:436)
fr.pcsoft.wdjava.ui.champs.fenetre.WDFenetre.activity_onCreate(WDFenetre.java:433)
fr.pcsoft.wdjava.ui.activite.e.run(e.java:3)
android.os.Handler.handleCallback(Handler.java:938)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:246)
android.app.ActivityThread.main(ActivityThread.java:8653)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Thread=id=2
name=main
priority=5
groupName=main

===== Application =====
Application name=NM_Mobile
Application version=0.0.40.0
Name of the package=com.mycompany.nm_mobile
Date and time of startup=30/08/2023 10:48:30
Version of Android framework=25.0.285.0

===== Device =====
Model=SM-A507FN
Constructor=samsung
Make=samsung

===== System =====
Version number of Android=11 (unknown)
Android API Level=30
Total internal storage memory=112,17 GB
Internal storage memory available=71,44 GB
Screen density=420
Screen resolution=1080x2340
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: