If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

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

Reply
Developer
Jeff_Lu
Posts: 384
Registered: ‎08-12-2008
My Device: 8700

Connector.open StreamConnectionNotifier always StringIndexOutOfBoundsException

Hi,

 

My application works fine on 4.2 OS 4.5 OS except the Mode 8330 with OS 4.3

 

when I open a StreamConnectionNotifier with Connector.open("http://3636")

 

it always throws me an exception,java.lang.StringIndexOutOfBoundsException String index out of range: 2

 

is there any issue on Model 8330 with OS 4.3, if I install 4.5, it works fine.

 

my device carrier is Telus.

 

Thanks

 

Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Connector.open StreamConnectionNotifier always StringIndexOutOfBoundsException

This is a known issue that has been corrected in BlackBerry handheld software version 4.5.0.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
rtortora
Posts: 3
Registered: ‎01-23-2009
My Device: Not Specified

Re: Connector.open StreamConnectionNotifier always StringIndexOutOfBoundsException

What is the nature of the issue? Are there any workarounds other than asking users to upgrade their Blackberry OS?

My app is doing a Connector.Open("sms://:0") and the same exception is being thrown:

java.lang.StringIndexOutOfBoundsException: String index out of range: 2 

Please use plain text.