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
Highlighted
Developer
Posts: 59
Registered: ‎07-01-2009
My Device: Android HTC One X
My Carrier: Cellcom

SMS PushRegistry + SMS Connector.open = IOPortAlreadyBoundException. Any fixes?

My code uses an SMS pushregistry machanism, and registers a certain port. While the app. is running, the code also opens a connector on the same port, listening for SMSs

conn = (MessageConnection) Connector.open(string);

 

This code works fine on J2ME devices. BB 9000 Bold throws  

net.rim.device.api.io.IOPortAlreadyBoundException: SMS Port already in use (SMS Port already in use). Is there a fix? What am I doing wrong?

Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: SMS PushRegistry + SMS Connector.open = IOPortAlreadyBoundException. Any fixes?

Not absolutely right solution.. But it has some clue.. Refer this..

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=18571#M18571

 

Cheers.. 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Developer
Posts: 59
Registered: ‎07-01-2009
My Device: Android HTC One X
My Carrier: Cellcom

Re: SMS PushRegistry + SMS Connector.open = IOPortAlreadyBoundException. Any fixes?

This may require some learning time. I will look into it later. Thanks alot.
Developer
Posts: 16,984
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: SMS PushRegistry + SMS Connector.open = IOPortAlreadyBoundException. Any fixes?

[ Edited ]
i use runtimestore to circumvent this problem. This is in fact just a better singleton creator as it persists between application starts.
Message Edited by simon_hain on 07-23-2009 02:55 PM
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Contributor
Posts: 6
Registered: ‎03-09-2010
My Device: Bold 9700
My Carrier: MTC touch

Re: SMS PushRegistry + SMS Connector.open = IOPortAlreadyBoundException. Any fixes?

have u ever solve it?

 

Please help...!!!!

 

thx