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
New Developer
bkbonner
Posts: 11
Registered: ‎09-01-2008
My Device: Not Specified
Accepted Solution

400 Error when issuing request via MDS on port 8081 or 8090

I'm working on doing development on a laptop and learned a few things:

 

1.  MDS contacts Blackberry service and can only access sites on the Internet.  I was originally trying to have it issue requests against localhost:8080 and found that when I did this it failed because it was trying to proxy a request to the Blackberry hosted server.

 

2.  You need to run HTTP requests in a separate thread because it blocks the UI.

 

I'm trying to issue requests on port 8081 and 8090.  I've opened access to my development laptop from the Internet.  I can browse to my site from my Blackberry Curve -- so I know the firewall is open.  However when I try to debug using the simulator, I get a 400 error Bad Request.

 

If I hit a website that has a 404 or 500 error, I would expect to get a 404 or 500, not a 400 error.

 

Here's the trace info from the Simulator.  Does anyone have any ideas?

Please use plain text.
New Developer
bkbonner
Posts: 11
Registered: ‎09-01-2008
My Device: Not Specified

Re: 400 Error when issuing request via MDS on port 8081 or 8090

ed-By:ASP.NET>
<2008-09-01 11:36:16.750 EDT>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Set-Coo
kie:TLTHID=CA48E830783B1078150AF63696FDD447; path=/; domain=.blackberry.net>
<2008-09-01 11:36:16.750 EDT>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Set-Coo
kie:TLTSID=CA48E830783B1078150AF63696FDD447; path=/; domain=.blackberry.net>
<2008-09-01 11:36:16.750 EDT>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = ETag:"b
e78b5a7446c51:a38">
<2008-09-01 11:36:16.750 EDT>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Last-Mo
dified:Thu, 21 Apr 2005 13:16:39 GMT>
<2008-09-01 11:36:16.750 EDT>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content
-Type:text/xml>
<2008-09-01 11:36:16.750 EDT>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parame
ters Section]: 0 parameters>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmis
sion Line Section]:smileyembarrassed:
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1
200 OK>

Please use plain text.
New Developer
bkbonner
Posts: 11
Registered: ‎09-01-2008
My Device: Not Specified

Re: 400 Error when issuing request via MDS on port 8081 or 8090

<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers
Section]: 10 headers>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Connectio
n:close>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Accept-Ra
nges:bytes>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Mon,
 01 Sep 2008 15:36:48 GMT>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Server:Mi
crosoft-IIS/5.0>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-L
ength:865>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = X-Powered
-By:ASP.NET>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = x-rim-eta
g:"1B7FC435665DE6FED305B39BDA6846F31016512D">
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = ETag:"be7
8b5a7446c51:a38">
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Last-Modi
fied:Thu, 21 Apr 2005 13:16:39 GMT>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-T
ype:text/xml>
<2008-09-01 11:36:16.765 EDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Paramete
rs Section]: 0 parameters>
<2008-09-01 11:36:16.765 EDT>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: DefaultJobRunner-0 stopping>
<2008-09-01 11:36:16.765 EDT>:[136]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: DefaultJobRunner-0 stopped>
<2008-09-01 11:36:17.000 EDT>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-09-01 11:36:17.000 EDT>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission
 Line Section]:smileyembarrassed:
<2008-09-01 11:36:17.000 EDT>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobil
e/mds/http/mappings.xml HTTP/1.0>

Please use plain text.
New Developer
bkbonner
Posts: 11
Registered: ‎09-01-2008
My Device: Not Specified

Re: 400 Error when issuing request via MDS on port 8081 or 8090

<2008-09-01 11:36:17.000 EDT>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Trans
coder:vnd.rim.xml>
<2008-09-01 11:36:17.000 EDT>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MD
S_4.1.4.19>
<2008-09-01 11:36:17.000 EDT>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters S
ection]: 0 parameters>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transm
ission Line Section]:smileyembarrassed:
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.
1 200 OK>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Header
s Section]: 10 headers>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Connect
ion:close>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Accept-
Ranges:bytes>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Mo
n, 01 Sep 2008 15:36:48 GMT>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Server:
Microsoft-IIS/5.0>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content
-Length:507>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = X-Power
ed-By:ASP.NET>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Set-Coo
kie:TLTHID=CA846770783B107806EDD16ACB645C68; path=/; domain=.blackberry.net>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Set-Coo
kie:TLTSID=CA846770783B107806EDD16ACB645C68; path=/; domain=.blackberry.net>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = ETag:"b
e78b5a7446c51:a38">
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Last-Mo
dified:Thu, 21 Apr 2005 13:16:39 GMT>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content
-Type:text/xml>
<2008-09-01 11:36:17.140 EDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parame
ters Section]: 0 parameters>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmis
sion Line Section]:smileyembarrassed:
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.1
200 OK>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers
Section]: 10 headers>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Connectio
n:close>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Accept-Ra
nges:bytes>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Date:Mon,
 01 Sep 2008 15:36:48 GMT>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Server:Mi
crosoft-IIS/5.0>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-L
ength:63>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = X-Powered
-By:ASP.NET>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = x-rim-eta
g:"6A48C1C4457153C7EDEFE2C5FC17B05FF0312A63">
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = ETag:"be7
8b5a7446c51:a38">
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Last-Modi
fied:Thu, 21 Apr 2005 13:16:39 GMT>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-T
ype:text/plain>
<2008-09-01 11:36:17.187 EDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Paramete
rs Section]: 0 parameters>
<2008-09-01 11:36:17.187 EDT>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: DefaultJobRunner-0 stopping>
<2008-09-01 11:36:17.187 EDT>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: DefaultJobRunner-0 stopped>
<2008-09-01 11:36:17.203 EDT>:[142]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: DefaultJobRunner-0 started>
<2008-09-01 11:36:17.203 EDT>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 9381322
75, HTTPTRANSMISSION =>
<2008-09-01 11:36:17.203 EDT>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 9381322
75, HTTPTRANSMISSION = [Transmission Line Section]:smileyembarrassed:
<2008-09-01 11:36:17.203 EDT>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 9381322
75, HTTPTRANSMISSION = GET /hessian2/hello HTTP/1.1>
<2008-09-01 11:36:17.203 EDT>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 9381322
75, HTTPTRANSMISSION = [Headers Section]: 2 headers>
<2008-09-01 11:36:17.203 EDT>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 9381322
75, HTTPTRANSMISSION = x-rim-conttime:10000>
<2008-09-01 11:36:17.203 EDT>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 9381322
75, HTTPTRANSMISSION = Host:www.paraware.com:8090>
<2008-09-01 11:36:17.203 EDT>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 9381322
75, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION =>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = [Transmission Line Section]:smileyembarrassed:
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = GET /hessian2/hello HTTP/1.1>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = [Headers Section]: 6 headers>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = Connection:close>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = Via:MDS_4.1.4.19>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = Accept:*/*>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = x-rim-original-accept:*/*>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = x-rim-conttime:10000>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = Host:www.paraware.com:8090>
<2008-09-01 11:36:17.203 EDT>:[144]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-09-01 11:36:18.203 EDT>:[145]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION =>
<2008-09-01 11:36:18.203 EDT>:[145]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = [Transmission Line Section]:smileyembarrassed:
<2008-09-01 11:36:18.203 EDT>:[145]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = HTTP/1.0 400 Bad Request>
<2008-09-01 11:36:18.203 EDT>:[145]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = [Headers Section]: 2 headers>
<2008-09-01 11:36:18.203 EDT>:[145]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = Content-Type:text/plain>
<2008-09-01 11:36:18.203 EDT>:[145]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = Content-Length:40>
<2008-09-01 11:36:18.203 EDT>:[145]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 938132275, HT
TPTRANSMISSION = [Parameters Section]: 0 parameters>
<2008-09-01 11:36:18.203 EDT>:[146]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: DefaultJobRunner-0 stopping>
<2008-09-01 11:36:18.203 EDT>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: DefaultJobRunner-0 stopped>
<2008-09-01 11:36:18.203 EDT>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = F
inished JobRunner: DefaultJobRunner-0, available threads in DefaultJobPool = 10,
 time spent = 2860ms>
<2008-09-01 11:36:18.203 EDT>:[149]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
CreatedSendingQueue, DEVICEPIN = 2100000a>
<2008-09-01 11:36:18.203 EDT>:[152]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 1197408256, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = 93
8132275, SEQUENCE = 0, TYPE = DISCONNECT-ORDER, SIZE = 53>
<2008-09-01 11:36:18.218 EDT>:[153]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = D
evice connections: AVG latency (msecs)15>
<2008-09-01 11:36:18.218 EDT>:[154]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: ConnectionsInputStreamesReader0-DefaultJobRunner-0 stopping>
<2008-09-01 11:36:18.218 EDT>:[155]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thr
ead: ConnectionsInputStreamesReader0-DefaultJobRunner-0 stopped>
<2008-09-01 11:36:18.218 EDT>:[156]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
RemovedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000a:938132275, ReceivingQue
ueSize = 0>
<2008-09-01 11:36:18.250 EDT>:[157]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Notification, TAG = 1197408256, STATE = DELIVERED>
<2008-09-01 11:36:23.390 EDT>:[158]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
RemovedSendingQueue, DEVICEPIN = 2100000a>
 

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: 400 Error when issuing request via MDS on port 8081 or 8090

I believe your comment that "can only access sites on the Internet" to be incorrect.  In fact, one of the benefits of MDS is that it runs behind the firewall, and so can access intranet sites.  I think you will find that localhost is not a supported URL for the MDS Simulator.  Have a look at this post for example:

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=3013&query.id=517...

 

However I haven't an answer for your other issues sorry.  Looking at the log, it seems the request is not even being forwarded by the MDS, almost as if the MDS Simulator was complaining about a URL with a Port address in it.  Perhaps there is some MDS or MDS Simulator setting required.  I suggest you try using your local IP address just to prove that there is no network involvement in the response and let us know. 

 

Can you tell us the level of JDE and MDS Simulator you are using?

 

 

 

Please use plain text.
New Developer
bkbonner
Posts: 11
Registered: ‎09-01-2008
My Device: Not Specified

Re: 400 Error when issuing request via MDS on port 8081 or 8090

Hi Peter,

 

I tried your suggestion and you ARE the man.  Thank you very much.  I've futzed with this for a while before I posted out here.  And my suspicions were indeed incorrect.  I used my machine address and 'deviceside=true'.  What does deviceside=true do?  This resolved the issue and things are working now.  Thanks for the help -- now onto the rest of my program.

 

Brian

Please use plain text.
New Developer
bkbonner
Posts: 11
Registered: ‎09-01-2008
My Device: Not Specified

Re: 400 Error when issuing request via MDS on port 8081 or 8090

Hi Peter, I did a quick search on deviceside and answered my own question.  With one of your prior posts:  http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=3403&query.id=54662#M3403

 

Thanks again for the help.

 

Brian

Please use plain text.
New Developer
bkbonner
Posts: 11
Registered: ‎09-01-2008
My Device: Not Specified

Re: 400 Error when issuing request via MDS on port 8081 or 8090

Just watched this video, Peter.  Is there a reason why I need deviceside=true, if I'm using the MDS Simulator?  I couldn't get it to work with no parameter or deviceside=false.
Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: 400 Error when issuing request via MDS on port 8081 or 8090

The MDS Simulator does not allow access to localhost or 127.0.0.1.  Instead, use your real IP address or PC name.
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.