HttpsConnection, IOException and error -123

263 views
Skip to first unread message

ma...@mansandersson.se

unread,
May 30, 2015, 6:02:46 PM5/30/15
to java...@googlegroups.com
Hi,

I'm trying to set up a secure HTTPS connection on my EHS5 device but my java code throws an undocumented exception as follows. Does anyone know what error -123 means?

I have set up my own CA, installed a CA signed certificate on the web server and installed the public CA certificate on the EHS5 using jseccmd.jar and AT^SJMSEC. The certificate installed should be good, because I supplied a certificate in the wrong format before and that exception looked completely different.

java.io.IOException: Unknown error -123 during socket::read
 
- com.sun.midp.io.j2me.socket.Protocol.read0(), bci=0
 
- com.sun.midp.io.j2me.socket.Protocol.nonBufferedRead(), bci=10
 
- com.sun.midp.io.BufferedConnectionAdapter.readBytes(), bci=30
 
- com.sun.midp.io.BaseInputStream.read(), bci=197
 
- com.sun.midp.io.BufferedInputStream.fill(), bci=120
 
- com.sun.midp.io.BufferedInputStream.read1(), bci=32
 
- com.sun.midp.io.BufferedInputStream.read(), bci=39
 
- com.sun.midp.io.FilterInputStream.read(), bci=5
 
- com.sun.midp.ssl.SSLStreamConnection.Connect(), bci=132
 
- com.sun.midp.ssl.SSLStreamConnection.<init>(), bci=220
 
- com.sun.midp.io.j2me.https.Protocol.connect(), bci=198
 
- com.sun.midp.io.j2me.http.Protocol.streamConnect(), bci=108
 
- com.sun.midp.io.j2me.http.Protocol.startRequest(), bci=7
 
- com.sun.midp.io.j2me.http.Protocol.sendRequest(), bci=33
 
- com.sun.midp.io.j2me.http.Protocol.sendRequest(), bci=3
 
- com.sun.midp.io.j2me.http.Protocol.getResponseCode(), bci=5

Thanks,
// Måns

em

unread,
May 31, 2015, 3:57:32 AM5/31/15
to java...@googlegroups.com

Hi,  you can check gemalto forum https://developer.gemalto.com/threads/netdemo-sample-application-throws-execption

--
javacint group - http://www.javacint.com/
---
You received this message because you are subscribed to the Google Groups "Cinterion Java enabled chips support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacint+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages