Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 242
Registered: ‎02-19-2013
My Device: 9500
My Carrier: _

IO Exception in open method

conn = (HttpConnection) Connector.open(u);


This function throwing the IOException. Can anone suggest why its so.

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: IO Exception in open method

Could be a number of reasons.  The best thing to to do is to print the message associated with the exception - code below - and see what it says.


The most likely cause is a bad URL.


try {


conn = (HttpConnection) Connector.open(u);


} catch (IOException ioe) {

system.out.println("IOE: " + ioe.toString());