Bug? [Fixed] Httputils2 Raspberry pi

woniol

Active Member
Licensed User
I have a problem using program with calls httputils2 on raspberry pi.
I call openweather web service with a timer and don't get JobDone fired to all requests.
Looks like Response.GetAsynchronously in HttUtils2Service returns False, Response_StreamFinish is not fired and JobDone is not fired.
 

Attachments

billzhan

Active Member
Licensed User
Same thing find here.

Project works fine on pc(win7) in release and debug mode.
Rpi (B4J-bridge connected) works fine in debug mode . In release mode the first Response.GetAsynchronously returns True, the following ones return false.


B4X:
Weater_Call
Weater_Call
hc_ResponseSuccess:  false
hc_ResponseSuccess:  true
Weather :: Got data from WeathrService
Weater_Call
hc_ResponseSuccess:  false
Weater_Call
hc_ResponseSuccess:  false
Weater_Call
hc_ResponseSuccess:  false
Weater_Call
hc_ResponseSuccess:  false
Weater_Call
hc_ResponseSuccess:  false
Weater_Call
hc_ResponseSuccess:  false
Weater_Call
hc_ResponseSuccess:  false
Weater_Call
hc_ResponseSuccess:  false
 

woniol

Active Member
Licensed User
Thanks for testing it.
For me it looks like some kind of timing problem or /tmp folder access problem.
Maybe Erel could have a look at it.
 

woniol

Active Member
Licensed User
Hi, it look like this:

hc_ResponseError is not beeing calld since hc_ResponseSuccess is called.
But in hc_ResponseSuccess, Response.GetAsynchronously returns False
and thats probably why Response_StreamFinish is not called.
Log:
B4X:
root@raspberrypi:/usr/local/sbin# java -jar 1.jar
Http_Call
Http_Call
Response.GetAsynchronously: true
Response.GetAsynchronously: true
Job Done
Job Done
Http_Call
Response.GetAsynchronously: false
Http_Call
Response.GetAsynchronously: false
Http_Call
Response.GetAsynchronously: false
 

woniol

Active Member
Licensed User
There you go;
B4X:
root@raspberrypi:/usr/local/sbin# java -jar 1.jar
Http_Call
TaskId_hc_ResponseSuccess: 1
Response.GetAsynchronously: true
TaskId_Response_StreamFinish: 1
TaskId_CompleteJob: 1
Job Done
Http_Call
TaskId_hc_ResponseSuccess: 2
Response.GetAsynchronously: false
Http_Call
TaskId_hc_ResponseSuccess: 3
Response.GetAsynchronously: false
Http_Call
TaskId_hc_ResponseSuccess: 4
Response.GetAsynchronously: false
Http_Call
TaskId_hc_ResponseSuccess: 5
Response.GetAsynchronously: false
 
Top