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
Regular Contributor
mobiledeveloper
Posts: 78
Registered: ‎04-05-2010
My Device: Storm

How to hear on default port for sms and send on the same

Whenever I am trying to set port to 0 in place of 3590 in _openString = "sms://:3590";  in smsdemo sample it is giving following error:

 

JVM error 104 Uncaught ArrayIndexOutofBoundsException

 

Can anyone please help me?

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

Re: How to hear on default port for sms and send on the same

What BlackBerry Smartphone model and BlackBerry device software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.  What line of code in the sample is triggering this?

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.
Regular Contributor
mobiledeveloper
Posts: 78
Registered: ‎04-05-2010
My Device: Storm

Re: How to hear on default port for sms and send on the same

Thanks for reply I am using simulator for 8900 and software version is 4.6.1.

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

Re: How to hear on default port for sms and send on the same

I wasn't able to reproduce this.  Did you change the port in both locations?  What line of code is triggering the exception?

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.