Gemalto is now part of the Thales Group, find out more.

You are here

Problem with multiple HttpConnections EHS6 | Thales IoT Developer Community

August 5, 2015 - 8:49am, 2842 views

Hello,

I am using a EHS6 USB terminal to act as a platform for a Internet of Things client. This involves sending measurement data to IoT server in regular intervals.

My problem is that after exactly 8 ***** of opening and closing an HttpConnection, the next Connector.open() throws an IOException: IOError in socket::open: -137.

Any ideas what might be causing this? I'm thinking it might be something related to Java security and MIDlet restrictions (preventing them from racking up your phone bill) but so far I've found no solutions. Restarting the MIDlet works, but as far as I know there's no way to automatically restart unless the MIDlet shuts down ungracefully due to an unhandled exception.