Hi, I'm develop an App that send a UDP package every "x" time.
The problem is in "some devices" (In some it works perfectly without stopping.).. after working well for a long time, this error occurs:
SendData (01/11/2018 11:30:00): kp;BH901DCK5P;1;0;82
01/11/2018 11:30:00 184
java.io.IOException: Operation not permitted
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:696)
at anywheresoftware.b4a.objects.SocketWrapper$UDPSocket$1.run(SocketWrapper.java:479)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
And this error is repeated every time that my app try to send the UDP Package.
Any idea?.. what can I do?
The problem is in "some devices" (In some it works perfectly without stopping.).. after working well for a long time, this error occurs:
SendData (01/11/2018 11:30:00): kp;BH901DCK5P;1;0;82
01/11/2018 11:30:00 184
java.io.IOException: Operation not permitted
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:696)
at anywheresoftware.b4a.objects.SocketWrapper$UDPSocket$1.run(SocketWrapper.java:479)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
And this error is repeated every time that my app try to send the UDP Package.
Any idea?.. what can I do?