I'm using a variation of Erel's B4X-Push-Server. The first push to an ios-device causes the following exception and the push-message doesn't arrive on the iphone. After the reconnect, it is no problem to push the device, but even, if i wait an hour or something, the exception raised against with the first push. What is the reason for that? I'm using the sandbox.
B4X:
2015-10-12 18:52:08,642 [qtp1712669532-3054] TRACE - Datei auf dem EIS-Server e
ingegangen:EIS/Kontakte/iPhone6/1444668732258.Stammi.txt
2015-10-12 18:52:08,642 [main] DEBUG - 1 IOS-Device pushed!
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at java.io.InputStream.read(Unknown Source)
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStrea
ms.java:184)
at java.lang.Thread.run(Unknown Source)
2015-10-12 18:52:08,896 [main] ERROR - Fehler: java.net.SocketException: Connec
tion reset
2015-10-12 18:52:08,896 [main] INFO - Try to reconnect!.
..
java.lang.UnsupportedOperationException: The method shutdownInput() is not suppo
rted in SSLSocket
at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(Unknown Source)
at anywheresoftware.b4a.objects.SocketWrapper.Close(SocketWrapper.java:1
88)
at de.sekutor.eisserver.iospush._vvvvvvvvvvv2(iospush.java:92)
at de.sekutor.eisserver.iospush._timer1_tick(iospush.java:238)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA$3.run(BA.java:178)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(Simple
MessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:131
)
at de.sekutor.eisserver.main._appstart(main.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at de.sekutor.eisserver.main.main(main.java:29)
2015-10-12 18:52:12,930 [main] INFO - Mit IOS-Push-Socket verbunden!