Buongiorno,
sapete come filtrare questo tipo di errore su Sub JobDone(Job As HttpJob) ?
Ho notato che mi segnala questo quando ho problemi di rete o wifi . Se cambio wifi con connessione più forte , ho notato che l'errore scompare .
la Query la lancio tramite il seguente codice, tramite il routine in php presente sul server
sapete come filtrare questo tipo di errore su Sub JobDone(Job As HttpJob) ?
Ho notato che mi segnala questo quando ho problemi di rete o wifi . Se cambio wifi con connessione più forte , ho notato che l'errore scompare .
la Query la lancio tramite il seguente codice, tramite il routine in php presente sul server
B4X:
Sub ExecuteRemoteQuery(Query As String, JobName As String)
Dim job As HttpJob
job.Initialize(JobName, Me)
job.PostString("https://appmacro.netsons.org/app/connessione.php", Query)
End Sub
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
JAVA [Initialize] eventname = objWFI
Ver. 1.94
ExecuteRemoteQuery 350
FetchCountriesList 218
ExecuteRemoteQuery 350
FetchCountriesList-----
Network WIFI connected
WifiAvailable:true
WifiConnected:true
Ping not available in Demo Version.** DONATIONWARE **
MobileAvailable:true
BroadcastReceiver:nReceive::android.net.conn.CONNECTIVITY_CHANGE
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Service (httputils2service) Start **
---- AppUpdating.ReadWebVN
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
JobDone riga 361
Response from server: <!DOCTYPE html>
<html lang="{ngx.var.captcha_lang or "en"}">
<head>
<meta charset="UTF-8">
<title>Captcha</title>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin="anonymous">
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII="
rel="icon" type="image/x-icon"/>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://www.google.com/recaptcha/api.js?hl={ngx.var.captcha_lang or "en"}"
async defer>
</script>
<style>
html, body {
height: 100%;
}
.wraper {
padding-bottom: 56px;
position: relative;
min-height: 100%;
}
.invisible_mode .wraper {
display: none;
}
.header {
height: 63px;
background-color: white;
}
.middle {
height: 186px;
background-color: rgba(55, 171, 99, 0.75);
}
.bottom {
background-color: #f2f2f2;
position: absolute;
bottom: 0px;
top: 249px;
width: 100%;
}
.captcha_absolute {
margin-top: -153px;
}
.captcha_div {
width: 485px;
margin: 0 auto;
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.18), 0 0 8px 0 rgba(0, 0, 0, 0.12);
background-color: white;
padding: 47px 48px 18px 48px;
position: relative;
}
.cap_head {
border-bottom: 1px solid #d8d8d8;
padding-bottom: 17px;
margin: 0 10px 20px 10px;
}
.logo_shield {
display: inline-block;
}
.logo_shield img {
width: 54px;
height: 72px;
}
.cap_side {
width: 295px;
}
h4#text {
font-size: 20px;
line-height: 1.38;
color: #000000;
font-weight: bold;
font-family: Noto Sans, sans-serif;
margin: 6px 0 0 0;
}
.cap_text {
font-family: Noto Sans, sans-serif;
font-weight: normal;
font-style: normal;
font-stretch: normal;
line-height: 1.65;
color: #000000;
}
p.cap_note {
font-size: 20px;
margin: 0;
}
.captcha_passed h4#text, .captcha_passed p.cap_note { font-size: 18px }
.cap_mess {
font-size: 13px;
}
.powered_span {
position: absolute;
bottom: 15px;
width: 100%;
text-align: center;
height: 18px;
opacity: 0.45;
font-family: Noto Sans;
font-size: 13px;
font-weight: normal;
font-style: normal;
font-stretch: normal;
color: #1d1d1d;
}
/* A few hacks for re-captcha */
.invisible_mode .re-captcha-wrapper { /* shift reCAPTCHA below our text */
top: 350px !important;
}
.invisible_mode .re-captcha-wrapper > div:first-child { /* hide reCAPTCHA mask */
display: none !important;
}
.visible_mode #re-captcha { /* align to center */
width: 305px;
margin: 0 auto;
}
/* Imunify360 preloader */
.big_loader {
position: absolute;
left: 0;
right: 0;
Message longer than Log limit (4000). Message was truncated.
Error occurred on line: 381 (Main)
java.lang.RuntimeException: JSON Array expected.
at anywheresoftware.b4a.objects.collections.JSONParser.NextArray(JSONParser.java:62)
at org.appmarco.serviceappnew.main._jobdone(main.java:1549)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)