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
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: HTTP error code 502 when connecting from Java application

This sounds like an issue with your LAN or proxy configuration and not with the BlackBerry application.  It seems like browser types a possible proxy may recognized are being passed through, but it is not working with unknown types.  To test this theory, you can add the user agent header that is used by the BlackBerry Browser to the httpdemo or your application.  The link below explains how this can be done.  If this does solve the problem I recommend contacting your IT department to see what changes have been made to your network recently.

 

How To - Use reliable push without making a BlackBerry Browser request
Article Number: DB-00518

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To_...

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
New Developer
Posts: 10
Registered: ‎07-17-2008
My Device: Not Specified

Re: HTTP error code 502 when connecting from Java application

Hi again,

 

I have included the request headers in HTTP demo example this way :

 

    httpConn.setRequestProperty("User-Agent", "BlackBerry8800/4.2.1");
    httpConn.setRequestProperty("UAProf", "http://www.blackberry.net/go/mobile/profiles/uaprof/8800/4.2.1.rdf");

 

But, using 8800 simulator shipped with JDE 4.2.1, HTTP 502 error code is still being returned.

 

Any other ideas?

 

Thanks

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: HTTP error code 502 when connecting from Java application

Please enable verbose HTTP logging within the MDS Simulator, perform a request and paste the log.  The following link explains how to enable verbose HTTP logging:

 

How To - Enable HTTP and HTML logging in the Mobile Data Service Simulator
Article Number: DB-00156

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800738/800792/801079/...

 

Depending on your version of MDS Simulator, you may also need to add the following lines if they are not present.

 

[Logging] Logging.level=4 Logging.console.log.level=4 Logging.file.location=logs Logging.file.log.level=4

 

The log file should be located the [install directory]\MDS\logs and be called [current date]_MDS_MDS.txt
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
New Developer
Posts: 10
Registered: ‎07-17-2008
My Device: Not Specified

Re: HTTP error code 502 when connecting from Java application

Hi Mark, thanks for your support.

 

I paste MDS log below (is it possible to post a message with attachment??). I made an unsuccesful request to www.blackberry.com using HTTP Demo sample application and later, a succesful request using BlackBerry simulator browser.

 


<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/mds/http/mappings2prop.xsl HTTP/1.0>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 7 headers>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Connection:close>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:text/xml>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = x-rim-xsl-url:http://www.blackberry.net/go/mobile/mds/http/mappings2prop.xsl>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Transcoder:vnd.rim.xml>
<2008-07-23 08:33:01.890 CEST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/mds/http/mappings2prop.xsl HTTP/1.0>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 7 headers>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Connection:close>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:text/xml>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = x-rim-xsl-url:http://www.blackberry.net/go/mobile/mds/http/mappings2prop.xsl>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Transcoder:vnd.rim.xml>
<2008-07-23 08:33:01.906 CEST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:02.046 CEST>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, application.handler.http.maxContentLength = 10485760>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1 502 Bad Gateway>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/html>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Pragma:no-cache>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:32:48 GMT>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Cache-Control:no-cache>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Proxy-Connection:close>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:203>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Entity Content Section]: 203 bytes>
<2008-07-23 08:33:02.046 CEST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = ---------- Content ------------->
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1 502 Bad Gateway>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/html>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Pragma:no-cache>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:32:48 GMT>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Cache-Control:no-cache>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Proxy-Connection:close>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:203>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Entity Content Section]: 203 bytes>
<2008-07-23 08:33:02.171 CEST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = ---------- Content ------------->
<2008-07-23 08:33:02.187 CEST>:[136]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-9 stopping>
<2008-07-23 08:33:02.187 CEST>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-9 stopped>
<2008-07-23 08:33:02.187 CEST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, XSL stylesheet not found http://www.blackberry.net/go/mobile/mds/http/mappings2prop.xsl: Resource could not be found>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/mds/http/mappings.xml HTTP/1.0>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 7 headers>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Connection:close>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:text/plain>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = x-rim-xsl-url:http://www.blackberry.net/go/mobile/mds/http/mappings2prop.xsl>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Transcoder:vnd.rim.xml>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2008-07-23 08:33:02.187 CEST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1 502 Bad Gateway>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/html>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Pragma:no-cache>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:32:48 GMT>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Cache-Control:no-cache>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Proxy-Connection:close>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:203>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Entity Content Section]: 203 bytes>
<2008-07-23 08:33:02.328 CEST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = ---------- Content ------------->
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1 502 Bad Gateway>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/html>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Pragma:no-cache>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:32:48 GMT>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Cache-Control:no-cache>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Proxy-Connection:close>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:203>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Entity Content Section]: 203 bytes>
<2008-07-23 08:33:02.343 CEST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = ---------- Content ------------->

New Developer
Posts: 10
Registered: ‎07-17-2008
My Device: Not Specified

Re: HTTP error code 502 when connecting from Java application

and here's the succesful response... (part 1)

 

<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION =>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = GET / HTTP/1.1>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Headers Section]: 12 headers>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-bsm-id:202821678>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = profile:http://www.blackberry.net/go/mobile/profiles/uaprof/8800/4.2.1.rdf>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-wap-profile:"http://www.blackberry.net/go/mobile/profiles/uaprof/8800/4.2.1.rdf">
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept:application/vnd.rim.html,text/html,application/xhtml+xml,application/vnd.wap.xhtml+xml,application/vnd.wap.wmlc;q=0.9,application/vnd.wap.wmlscriptc;q=0.7,text/vnd.wap.wml;q=0.7,text/vnd.sun.j2me.app-descriptor,image/vnd.rim.png,image/jpeg,application/x-vnd.rim.pme.b,application/vnd.rim.ucs,image/gif;anim=1,*/*;q=0.5>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-default-charset:ISO-8859-1>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-image-threshold:2147483647>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept-Charset:ISO-8859-1,UTF-8,US-ASCII,UTF-16BE,windows-1252,UTF-16LE,windows-1250>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept-Language:en-GB,en;q=0.5>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = User-Agent:BlackBerry8800/4.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/-1>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-transcode-content:*/*>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Host:www.blackberry.com>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-gw-properties:16.9>
<2008-07-23 08:33:40.062 CEST>:[196]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION =>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = GET / HTTP/1.1>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Headers Section]: 15 headers>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Connection:close>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-original-accept:application/vnd.rim.html,text/html,application/xhtml+xml,application/vnd.wap.xhtml+xml,application/vnd.wap.wmlc;q=0.9,application/vnd.wap.wmlscriptc;q=0.7,text/vnd.wap.wml;q=0.7,text/vnd.sun.j2me.app-descriptor,image/vnd.rim.png,image/jpeg,application/x-vnd.rim.pme.b,application/vnd.rim.ucs,image/gif;anim=1,*/*;q=0.5>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-bsm-id:202821678>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = profile:http://www.blackberry.net/go/mobile/profiles/uaprof/8800/4.2.1.rdf>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-wap-profile:"http://www.blackberry.net/go/mobile/profiles/uaprof/8800/4.2.1.rdf">
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept:application/vnd.rim.html,text/html,application/xhtml+xml,application/vnd.wap.xhtml+xml,text/vnd.sun.j2me.app-descriptor,image/vnd.rim.png,image/jpeg,application/x-vnd.rim.pme.b,application/vnd.rim.ucs,image/gif;anim=1,application/vnd.wap.wmlc;q=0,9,application/vnd.wap.wmlscriptc;q=0,7,text/vnd.wap.wml;q=0,7,*/*;q=0,5>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-default-charset:ISO-8859-1>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-image-threshold:2147483647>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept-Charset:ISO-8859-1,UTF-8,US-ASCII,UTF-16BE,windows-1252,UTF-16LE,windows-1250>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept-Language:en-GB,en;q=0.5>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = User-Agent:BlackBerry8800/4.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/-1>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-transcode-content:*/*>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Host:www.blackberry.com>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-gw-properties:16.9>
<2008-07-23 08:33:40.078 CEST>:[197]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION =>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = HTTP/1.1 200 OK>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Content-Type:text/html>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Connection:close>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Set-Cookie:TLTHID=41DD456A588110580858F94CF6531E7A; path=/; domain=.blackberry.com>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Set-Cookie:TLTSID=41DD456A588110580858F94CF6531E7A; path=/; domain=.blackberry.com>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:33:27 GMT>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept-Ranges:bytes>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Server:Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7d>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Entity Content Section]: 17875 bytes>
<2008-07-23 08:33:40.968 CEST>:[198]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = ---------- Content ------------->
<2008-07-23 08:33:40.984 CEST>:[199]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, TRANSCODER = vnd.rim.html, EVENT = Started, DEVICEPIN = 2100000a, CONNECTIONID = 872173262>
<2008-07-23 08:33:41.671 CEST>:[200]:<MDS-CS_MDS>:<DEBUG>:<TRANSCODER = image, created profile fetcher>

 

 

New Developer
Posts: 10
Registered: ‎07-17-2008
My Device: Not Specified

Re: HTTP error code 502 when connecting from Java application

The succesful response (part 2)

 

<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/profiles/uaprof/8800/4.2.1.rdf HTTP/1.1>
<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 3 headers>
<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:application/rdf+xml,application/xml,text/xml>
<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2008-07-23 08:33:41.671 CEST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/profiles/uaprof/8800/4.2.1.rdf HTTP/1.1>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 5 headers>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Connection:close>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:application/rdf+xml,application/xml,text/xml>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2008-07-23 08:33:41.671 CEST>:[202]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1 502 Bad Gateway>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/html>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Pragma:no-cache>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:33:28 GMT>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Cache-Control:no-cache>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Proxy-Connection:close>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:203>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Entity Content Section]: 203 bytes>
<2008-07-23 08:33:41.812 CEST>:[203]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = ---------- Content ------------->
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1 502 Bad Gateway>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/html>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Pragma:no-cache>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:33:28 GMT>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Cache-Control:no-cache>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Proxy-Connection:close>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:203>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = [Entity Content Section]: 203 bytes>
<2008-07-23 08:33:41.812 CEST>:[204]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToTranscoder, DEVICEPIN = 2100000a, CONNECTIONID = 0, HTTPTRANSMISSION = ---------- Content ------------->
<2008-07-23 08:33:41.812 CEST>:[205]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: ImageJobRunner-1 stopping>
<2008-07-23 08:33:41.812 CEST>:[206]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: ImageJobRunner-1 stopped>
<2008-07-23 08:33:42.140 CEST>:[210]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, DEVICEPIN = 2100000a, URL = http://www.blackberry.com/ : SKIPPED IMGS 0 total size 0.0K, SENT IMGS 2, UPDATED IMGS 0, SKIPPED JS 0 total size 0.0K, SENT JS 0, UPDATED JS 0, SKIPPED CSS 0 total size 0.0K, SENT CSS 0, UPDATED CSS 0>
<2008-07-23 08:33:42.140 CEST>:[211]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, TRANSCODER = vnd.rim.html, EVENT = Stopped, DEVICEPIN = 2100000a, CONNECTIONID = 872173262>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION =>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = HTTP/1.1 200 OK>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Headers Section]: 7 headers>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Content-Type:application/vnd.rim.html>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Connection:close>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Set-Cookie:TLTHID=41DD456A588110580858F94CF6531E7A; path=/; domain=.blackberry.com>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Set-Cookie:TLTSID=41DD456A588110580858F94CF6531E7A; path=/; domain=.blackberry.com>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Date:Wed, 23 Jul 2008 06:33:27 GMT>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = x-rim-etag:"055C5DF80317EF47E0F586AC7620F71831B9CA59">
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Accept-Ranges:bytes>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = Server:Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7d>
<2008-07-23 08:33:42.140 CEST>:[212]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 872173262, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-07-23 08:33:42.140 CEST>:[213]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-0 stopping>
<2008-07-23 08:33:42.140 CEST>:[214]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-0 stopped>
<2008-07-23 08:33:42.140 CEST>:[215]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Fin

 

Thank you very much!

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: HTTP error code 502 when connecting from Java application

It looks like the MDS Simulator is receiving the 502 from your proxy server.  What you can do is capture a network request (using any network capture program) from the MDS Simulator and compare the request made between the BlackBerry Browser and your application.

 

This could may provide some information to allow you to work around this restriction.  But I recommend providing this information to your network administrator who could make a configuration change to also allow this type of connection.  It doesn't appear that the error is originating from 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
Highlighted
Developer
Posts: 43
Registered: ‎10-06-2009
My Device: Not Specified

Re: HTTP error code 502 when connecting from Java application

Hi, in the link of how to work behind a proxy, there is this line "application.handler.http.proxyAutoConfigURL=http://URL_to_Your_Config_File"

I don't see where i can find the URL_to_Your_Config_File

thank you