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
Trusted Contributor
hims_3009
Posts: 227
Registered: ‎12-16-2009
My Device: 9530,8900,9000

java.io.IOException:General socket error

I have developed application for BB APP world But they have rejected the application and replied.

 

Please fix the following issue and resubmit your application as a new release.

On the 8520 device, if the user launches the application, then the user notices the following error message with an "OK" option to dismiss it: "java.io.IOException:General socket error".

Steps to Reproduce:

1. Wipe the test device.
2. Install the application using Java loader.
3. Launch the application.
4. Notice the above mentioned error message appears and the application fails to launch.

 

Here I have attached my code. Don't know the reason for this.
As my code

Browser.getDefaultSession().displayPage(displayURL); 

surrounded with try-catch block then what fires the exception and what to do to approve this on AppWorld??

Lathiya Himanshu
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: java.io.IOException:General socket error

Can you reproduce this problem on an 8520, Simulator, or even another device?

Trusted Contributor
hims_3009
Posts: 227
Registered: ‎12-16-2009
My Device: 9530,8900,9000

Re: java.io.IOException:General socket error

Hello Peter,

I have tested it on BB 8520,8900 Simulator And getting this error.

"A problem occur while trying to render the page" Dialog,  with OK button.

 

Also tested on Device 8520 with 5.0 OS and getting following error.

net.rim.device.internal.io.CriticalIOException: Critical tunnel failure

 

 

 

 

 

Lathiya Himanshu
Trusted Contributor
hims_3009
Posts: 227
Registered: ‎12-16-2009
My Device: 9530,8900,9000

Re: java.io.IOException:General socket error

Can AnyOne suggest what to do?
Is there any problem related to postUrl?

Or may be Problem in WebPage?

 

 

Lathiya Himanshu
Developer
vishnuskumar
Posts: 39
Registered: ‎01-21-2014
My Device: Blackberry curve

Re: java.io.IOException:General socket error

I have the same error while loading images from my db. the images are loaded on the screen as banners

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: java.io.IOException:General socket error

I suggest you start a new problem, and describe your specific situation as completely as you can.  Make sure you describe where your db is, how you are loading the image, and the line in your program that is failing with this exception.  Also confirm the OS level and if you are seeing this on the Simulator or the device.