I have posted this question in the wrong section; it is a B4J question. Please move it to that section.
Hi,
I have a strange problem using asyncstreams.
My program is a server program running on a raspberry, newest version . It accepts messages arriving from sensors with some intervals via the USB port using asyncsteamtext.
It runs for some time accepting messages and the suddenly it stops with the following error information:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.net.SocketInputStream.read(SocketInputStream.java:107)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:184)
at java.lang.Thread.run(Thread.java:744)
error: (SocketException) java.net.SocketException: Connection reset
Sometimes it runs only for some minutes, sometimes it runs for an hour.
The program is also listening to two other streams, a second asyncstreamtext and one asyncstreamobject, but on these streams nothing happens. This error occurs both in debug mode and in release mode.
What can be the reason for this error and how can I get more information on the reason?
Harry
Hi,
I have a strange problem using asyncstreams.
My program is a server program running on a raspberry, newest version . It accepts messages arriving from sensors with some intervals via the USB port using asyncsteamtext.
It runs for some time accepting messages and the suddenly it stops with the following error information:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.net.SocketInputStream.read(SocketInputStream.java:107)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:184)
at java.lang.Thread.run(Thread.java:744)
error: (SocketException) java.net.SocketException: Connection reset
Sometimes it runs only for some minutes, sometimes it runs for an hour.
The program is also listening to two other streams, a second asyncstreamtext and one asyncstreamobject, but on these streams nothing happens. This error occurs both in debug mode and in release mode.
What can be the reason for this error and how can I get more information on the reason?
Harry
Last edited: