Parse4cn1 connection error - codenameone

I'm facing trouble using parse4cn1 because apparently I have a connection issue with the server(back4app). I was working with parse4cn1 for quite some time and everything went fine until yesterday. Right now I am getting a ParseException when using it -
[parse4cn1] Request failed.
ParseException [code=100, msg=Connection to backend failed., cause=null]
**The project runs perfectly on a different pc. tried to use another network on this computer and still get the same connection issue.
It must be my computer blocking me from using this particular server. unfortunately I do not know how to check if this is true and obviously how to fix it..(am using netbeans if it matters..)
help would be apreciated!
Itay

Eventually the issue was in my codename1 simulator, apparently the default behavior of it is blocking all outgoing network connections (or at least that how it was for me). I had to simply change it to regular network activity.

Related

Why suddenly, localhost runs slowly?

All of the sudden, when I use npm start on any of my projects, it just keeps loading them.
Any idea why did it happen? Didn't happen to me before, just now.
I'm working only with React.
I had the same problem with PHP. I solved it by changing "localhost" to "127.0.0.1" in database connection parameters like someone suggested here: https://serverfault.com/a/444338/62739 . I think it may work for you too, give it a try.
The reason I suggested using the raw IP address for localhost is because Windows does not directly support the type of connection that MySQL/MariaDB tries to use when localhost is specified. This will result in delays of up to several seconds on every page load.

Localhost windows10 took to loong to respond

Hi I'm Surya I'm facing this localhost took to long to respond in my windows computer I thought the problem was with react and again it happened in the expo so it is a problem in my computer
enter image description here
enter image description here
it also compiled successfully I tried disabling my firewall and my antivirus(Quick Heal) and my antivirus is not yet expired everything is good but I do no what is the problem please help me with this problem .
The issue is mostly caused by firewall or antivirus. Re assure that you have disabled antivirus software and firewall. Also, check the network connection and ensure that you are not connected to proxy.
After performing all these, try restarting the system.
I finally solved it the problem was with my antivirus I added localhost to be allowed in my quick heal antivirus now everything is good.
Again the problem started this weird I do no why I ran Windows troubleshooter it gave me this error
the remote device won't accept the connection localhost

Santoku (libimobiledevice)

usbmux_get_device_list: error opening socket!
ERROR: Unable to retrieve device list!
pleasee helppp. (not sure what I'm doing wrong, I have little knowledge of the problem or the solution, my iPhone doesn't boot up correctly and I run Santoku and I am trying to find a way to extraction iOS)
You don't have usbmuxd installed, usbmuxd is not running, or if you're running inside a VM, you did not connect your device to your VM properly.
Did you follow the steps in this article: https://santoku-linux.com/howto/mobile-forensics/howto-create-a-logical-backup-of-an-ios-device-using-libimobiledevice-on-santoku-linux/ ?
That said, if you're planning to use libimobiledevice, why not use a regular Linux distro?

Silverlight not searching for ClientAccessPolicy.xml

I'm working with Silverlight and WebSocket4Net and get an error when attempting to connect. The problem is with the underlying socket:
{System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions.}
There is no InnerException or StackTrace below this.
It does not try to find the ClientAccessPolicy.xml -- at all.
I'm trying to connect to another computer, say 10.0.0.102, and that I'm from 10.0.0.101. I can access 10.0.0.102/ClientAccessPolicy.xml just fine. However, in Fiddler, it doesn't even attempt to load 10.0.0.102/ClientAccessPolicy -- no call is made to find it.
Because of this, my attempt to call and connect to the WebSocket via TCP doesn't work at all (i.e. ws://10.0.0.102:4530/WebSockOutput/). I've manually set the Socket's ClientAccessPolicyProtocol to Http... When I check at the lower layers, it's still setting the CAPP correctly.
Any thoughts?
I'd also like to add that I've rebooted and cleared the Temp directory on both machines several times.
OK, so the problem is REALLY REALLY REALLY sad, on my part.
Apparently it already cached the ClientAccessPolicy.xml (which I'd changed to support the TCP Ports), and though I thought I was killing the temporary internet files, I wasn't. I deleted my history/downloaded data from IE's Options, and that fixed everything.
One would think that Silverlight would attempt to re-download the ClientAccessPolicy a bit more frequently...

Wierd Dbus Issue - dbus_connection_send fail

I am a beginner to DBus and wrote one sample application using dbus but i am facing a weird problem. My app is running fine on guest os as Ubuntu (On virtual box with windows host ) but the same app is not working on standalone Ubuntu system (also tried on meego, no luck thr as well).
Then, i verified the obvious doubts on dbus, glib libraries versions. Its same on both the environments, and the issue is consistent. I mean the app always runs without any prob on virtual box and always crashes on the standalone ubuntu.
Here is the brief desc about the issue.
App is supposed to send 150 signals on dbus and another app is
receiving these signals. (No issues here in send & receive).
I have an array of DbusMessage[150] (also tried with the list of 150 DBusMessage)...appending the arguments on to the dbus msg and sending on to bus..one at a time...no looping...
The sequence of dbus APIs are all correct and verified by referencing multiple sample source code.
All of above works fine, but on the standalone ubuntu system, i can always see segmentation fault, on dbus_connection_send() call.
I reverified everypossible places where in "seg faults" can happen and it all looks fine to me. This is how i am appending my arg to dbus message.
dbus_message_append_args(pDbusMsg, DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &pData, sizeof(pData),
DBUS_TYPE_INVALID) != TRUE)
then connection send..and then calling dbus_connection_flush(). Also as my app has to send the same message again (but not immediately), i am re registering the same signal by calling dbus_message_new_signal()..i have verified all the pointers / memory / dbusmessage..everything looks fine and works fine on virtualized ubuntu os.
Just to add, i tried sending with dbus_connection_send_preallocated() and it works fine for few messages(10-15~), but not consistent enough.
Have you ever had this kind of issue, please let me know any clue to solve this prob....Any help would be appreciated or any examples/tutorials as well taking into consideration I'm just starting out with dbus :P
Thanks
I dont know if you have heard about dbus related debugging tools. For beginning you can try calling the exposed functions using some dbus-debugging-tool. If it doesnt throw segmentation fault when you call using the tool, then probably you should look for issues in your code. Otherwise you should check things related to environment.
One such tool is - DFeet
Another such debugger(commandline based) is provided by Qt people as well.

Resources