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
Administrator
MSohm
Posts: 14,434
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: HttpConnection how to?

Have you stepped through the application on the BlackBerry side?  Is it blocking on any of the calls?
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.
Developer
duksunkim
Posts: 141
Registered: ‎08-06-2008
My Device: Not Specified

Re: HttpConnection how to?

I've stepped blackberry side line by line on simulator.

It is still not connecting the server.

 

Post URL is http://65.98.94.68/mobile/mycom/controller.php;deviceside=true.

 

Is there any example code that working?

 

Thanks,

DK.

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

Re: HttpConnection how to?

The httpdemo included with the BlackBerry JDE is our main HTTP sample.

 

So are you saying that you stepped through the whole application on the BlackBerry and it ran without issue?  If so, this could be a problem on your server side accepting the variables.

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.
Developer
duksunkim
Posts: 141
Registered: ‎08-06-2008
My Device: Not Specified

Re: HttpConnection how to?

Well, does the simulator behavior is different than device?

I'm running on simulator.

 

And as to server, if I request from internet browser, it works fine.

and when I tried httpdemo program in simulator, I can not make request to server. It gives me a exception.

 

Well, I need to talk to server developer.

 

Thanks.

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

Re: HttpConnection how to?

What exception are you getting?  When testing with the BlackBerry Simulator, are you also running the MDS Simulator?
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.
Developer
duksunkim
Posts: 141
Registered: ‎08-06-2008
My Device: Not Specified

Re: HttpConnection how to?

Hi Mark,

 

I've run the httpdemo application which is in 8300 Simulator.

 

I have typed URL part as http://65.98.94.68/mobile/mycon/controller.php;deviceside=true.

Isn't this not gong through MDS?

 

And the exception is "java.io.InterruptedIOException: Local connection timed out after ~120000".

 

How can I run MDS simulator? I'm new to Blackberry, please let me know how to run MDS simulator.

 

Thanks,

Dk

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

Re: HttpConnection how to?

When specifying deviceside=true the connection does not go through the MDS Connection Service (deviceside=false does).  The MDS Simulator is included in most versions of the BlackBerry JDE.  You can also install it separately from here:  http://na.blackberry.com/eng/developers/downloads/simulators.jsp

 

The exception you are receiving indicates that the BlackBerry is unable to contact the destinatation URL.  Are you able to access the URL from your PC?  Are there any local firewalls that could be blocking the BlackBerry Simulator?

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.
Developer
duksunkim
Posts: 141
Registered: ‎08-06-2008
My Device: Not Specified

Re: HttpConnection how to?

I can access the url from my pc and we are just using wireless router without firewall.

 

I will check firewall out.

 

 

Please use plain text.
Developer
duksunkim
Posts: 141
Registered: ‎08-06-2008
My Device: Not Specified

Re: HttpConnection how to?

Mark,

 

I've solved this issue. The problem was that I need to enable network capability in simulator.  That is why I could not make it because I skipped setup procedure in simulator. It's so shameful. Sorry for generating this kind of garbage thereads.

 

Thanks for your help.

 

DK.

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

Re: HttpConnection how to?

No problem, I'm glad to hear you are up and running now.
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.