• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J9 httpsconnection IOException on openInputStream

 
Shawn Fitzgerald
author
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey gang,

I have some code that needs to operate using a HTTPS URL, and the
connector.open(<url> works, as does the getSecurityInfo(), reporting
the Certificate information.
However when I do either a https.openInputStream() or
https.openDataInputStream() I am getting an IOException, and
getMessage() returns 'null'.


This same code works on a blackberry and on NexTel phones, but no joy
on PockePC. Obviously the difference in these devices are the VMs, and
Certs keystores. Keystore has the needed root CA cert on J9.


Opening IO stream is done within a thread as well.


Has anyone got HTTPS connections to work? Any small sample code or
instructions that might help?
Oh ya, someother BIG items I should mention. The device is on a
network that uses DHCP, a Web Proxy internet connections, and is
authenticated using Kerberos. (So not too many obsticles...not)


TIA
-Shawn
 
Shawn Fitzgerald
author
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well answered my own question.
While IBM states that the J9 VM is MIDP2.0 complient this is not 100%
true. There is no HTTPS support in the VM.
This is clearly in contrast to the MIDP2 spec which says supported
connection types must include HTTP/HTTPS, and SSL.


However the wonderful folks at www.MicroDoc.de seem to have fixed this,
or at least seem to be able to included some support for it.


I will post more when I hear back on the details.

-Sfitz
 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi shawn!!

ahh .... well i think i have a slight challenge concerning my app runnin on sony ericsson p900/910
the app runs but when its time 2 send the request (like an sms)
it just does't go.
experienced this b4?
 
Shawn Fitzgerald
author
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it depends on a few factors. When you say time to send, what are you sending (SMS, HTTP, byte[]), how are you sending (openInputStream(), send(), ..), and how you have your data configured (byte[], object(), TextMessage())

Seeing a code snippets would be helpful.

If it's for SMS messaging, most likely you are not coding your destination or setting the open handle correctly.

Also you should put your question into a separate thread so other can find your question too. We have a few folks on the J2ME forum that have a lot of knowledge with SMS, and they may not find your question here in my thread.

Regards,
-Shawn
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic