BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-16-2007, 10:21 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy connection problems continue

Please Login to Remove!

I installed MDS and am running it when i run my code on the simulator. I get a responsecode of 400 and get a "Connection refused www.lunastaa.com:80" so naturally, my program doesn't fetch the data etc. I get the same error when on the simulator, i use the web browser to go to that site, or any other site.

Do i need to change any settings for the MDS to work? I checked all the threads here dealing with MDS and none of them helped in solving the issue..

Please help. Getting really frustrated with this and getting a bad headache now..
Offline  
Old 11-16-2007, 12:57 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please post all relevant code. Otherwise you're asking us to be psychic.
Offline  
Old 11-16-2007, 01:30 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sure, here it is.

Code:
        String URL = "http://www.lunastaa.com/mobile/";
        HttpConnection conn = null;
and then in a sub-block i have...


Code:
                try
                {
                    conn = (HttpConnection)Connector.open(URL);
                    int rc = conn.getResponseCode();
                    System.out.println("!" + rc + "!");
                                        
                    conn.setRequestMethod(HttpConnection.POST);
                    conn.setRequestProperty("User-Agent", "BlackBerry/3.2.1");
                    String lang = conn.getRequestProperty("Content-Language");

                    InputStream in = conn.openInputStream();
                    
                    byte[] data = new byte[256];
                    int len = 0;
                    StringBuffer raw = new StringBuffer();
                    while (-1 != (len = in.read(data)) )
                    {
                        raw.append(new String(data, 0, len));
                    }
                    text = raw.toString();
                    

                    System.out.println("!!" + text + "!!");
                    
//                    eventLabel.setText(text);
                }
                catch (IOException e)
                {
                    System.err.println(e.toString());
                }
The scope is fine. ResponseCode is 400.. which translates to a "Bad Request".
Most of that code is out of the developer guide. I'll really appreciate the help. Any other problems i've had, i've posted here but gotten no responses to and had to figure them out on my own. This time i'm stuck and have been for a day. All this MDS stuff is new to me.. This is my first Blackberry app.

Last edited by predator : 11-16-2007 at 01:32 PM.
Offline  
Old 11-16-2007, 01:57 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

perhaps I'm oversimplyfing here but in a browser at http://www.lunastaa.com/mobile/ I get a page not found trying to hit that link, I suspect the underlying connection protocol interprets it as a 400 while a browser returns you the default page not found that one sets up in apache et al.
Offline  
Old 11-16-2007, 02:00 PM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply. That's only the "root" of the URL that it's actually pulling, though. I'm sorry, i forgot to paste that. between the two blocks i pasted, i also have..
Code:
URL = "http://www.lunastaa.com/mobile/" + userYear + "_" + userMonth + ".txt";
and I've tried printing out this URL to make sure it's being formed correctly. The URL when i get to that code is..
http://www.lunastaa.com/mobile/2007_11.txt

Which exists, but neither my simulator nor my Blackberry can pull it.
Offline  
Old 11-16-2007, 02:21 PM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, I'm also getting an error code on that site. Snooping the wire it was a 40x code (not 400) but I can't remember which one exactly. The site seems unresponsive right now.

1) Change your URL to something you know works. http://www.falseflag.com/ is my machine and it's just a blank page so feel free to use that; it worked for me.

2) Move getResponseCode() down a bit. That method is what actually opens the HTTP connection, so it makes sense to put that *after* your xxxRequestProperty() calls (in fact, I get IOException unless getResponseCode() is moved to the line just above openInputStream()). EG:

conn.setRequestProperty("User-Agent", "BlackBerry/3.2.1");
int rc = conn.getResponseCode();
InputStream in = conn.openInputStream();
Offline  
Old 11-16-2007, 02:27 PM   #7 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I really appreciate the reply. Unfortunately, that didn't work either.

Code:
                    URL = "http://www.falseflag.com/";
                    conn = (HttpConnection)Connector.open(URL);
                    conn.setRequestMethod(HttpConnection.POST);
                    conn.setRequestProperty("User-Agent", "BlackBerry/3.2.1");
                    String lang = conn.getRequestProperty("Content-Language");
                    
                    int rc = conn.getResponseCode();
                    System.out.println("!" + rc + "!");
                   
                    InputStream in = conn.openInputStream();
                    System.out.println("opened stream");
                    byte[] data = new byte[256];
                    int len = 0;
                    StringBuffer raw = new StringBuffer();
                    System.out.println("While");
                    while (-1 != (len = in.read(data)) )
                    {
                        raw.append(new String(data, 0, len));
                    }
                    text = raw.toString();
                    

                    System.out.println("!!" + text + "!!");

Results in the output..

!400!
opened stream
While
!!Connection refused www.falseflag.com:80!!


So the response code for my request is still 400 and i'm still getting a connection refused.
Offline  
Old 11-16-2007, 03:21 PM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not sure if it helps any but i ran this same code in JDE 4.3.0.1r. Here's the MDS output.


n/Windows XP-x86/libyk.so" Error: "Can't load library: C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\MDS/bin/Windows XP-x86/libyk.so">
<2007-11-16 15:07:29.976 EST>:[121]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.rim.html] text/html->application/vnd.rim.html>
<2007-11-16 15:07:29.976 EST>:[122]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.rim.html] text/plain->application/vnd.rim.html>
<2007-11-16 15:07:29.976 EST>:[123]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.rim.html] application/xhtml+xml->application/vnd.rim.html>
<2007-11-16 15:07:29.976 EST>:[124]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.rim.html] application/vnd.wap.xhtml+xml->application/vnd.rim.html>
<2007-11-16 15:07:29.976 EST>:[125]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.rim.css] text/css->text/css>
<2007-11-16 15:07:29.976 EST>:[126]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.wap.multipart] multipart/related->application/vnd.wap.multipart.related>
<2007-11-16 15:07:29.976 EST>:[127]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.wap.multipart] multipart/alternative->application/vnd.wap.multipart.alternative>
<2007-11-16 15:07:29.976 EST>:[128]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.wap.multipart] multipart/mixed->application/vnd.wap.multipart.mixed>
<2007-11-16 15:07:29.991 EST>:[129]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcoder [vnd.wap.wml] text/vnd.wap.wml->application/vnd.wap.wmlc>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]:>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/mds/http/mappings2prop.xsl HTTP/1.0>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 7 headers>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Connection:close>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:text/xml>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2007-11-16 15:07:29.991 EST>:[130]:<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>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Transcoder:vnd.rim.xml>
<2007-11-16 15:07:29.991 EST>:[130]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION =><2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]:>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/mds/http/mappings2prop.xsl HTTP/1.0>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 7 headers>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Connection:close>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:text/xml>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2007-11-16 15:07:29.991 EST>:[131]:<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>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Transcoder:vnd.rim.xml>
<2007-11-16 15:07:29.991 EST>:[131]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2007-11-16 15:07:51.101 EST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2007-11-16 15:07:51.101 EST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]:>
<2007-11-16 15:07:51.101 EST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.0400 Bad Request>
<2007-11-16 15:07:51.101 EST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [HeadersSection]: 2 headers>
<2007-11-16 15:07:51.101 EST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/plain>
<2007-11-16 15:07:51.101 EST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:40>
<2007-11-16 15:07:51.101 EST>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2007-11-16 15:08:39.820 EST>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Statistics save task started>
<2007-11-16 15:08:54.821 EST>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-1 stopping>
<2007-11-16 15:08:35.070 EST>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records from device storage that are expired or older than 0 hours; 6>
<2007-11-16 15:08:54.821 EST>:[136]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-1 stopped>
<2007-11-16 15:08:54.821 EST>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, XSL stylesheet not found http://www.blackberry.net/go/mobile/...ings2prop.xsl: Resource could not be found>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]:>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = GET /go/mobile/mds/http/mappings.xml HTTP/1.0>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Headers Section]: 7 headers>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Connection:close>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Accept:text/plain>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Host:www.blackberry.net>
<2007-11-16 15:08:54.821 EST>:[138]:<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>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Transcoder:vnd.rim.xml>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = User-Agent:MDS_4.1.4.19>
<2007-11-16 15:08:54.821 EST>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2007-11-16 15:08:54.821 EST>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records process ended; 6>
<2007-11-16 15:08:54.852 EST>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Statistics save task finished -- number of rows inserted:5>
<2007-11-16 15:09:15.774 EST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION =>
<2007-11-16 15:09:15.774 EST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Transmission Line Section]:>
<2007-11-16 15:09:15.774 EST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = HTTP/1.0400 Bad Request>
<2007-11-16 15:09:15.774 EST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [HeadersSection]: 2 headers>
<2007-11-16 15:09:15.774 EST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Type:text/plain>
<2007-11-16 15:09:15.774 EST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = Content-Length:40>
<2007-11-16 15:09:15.774 EST>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToTranscoder, CONNECTIONID = 0, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2007-11-16 15:09:15.774 EST>:[142]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-1 stopping>
<2007-11-16 15:09:15.774 EST>:[143]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-1 stopped>
<2007-11-16 15:09:15.774 EST>:[145]:<MDS-CS_MDS>:<ERROR>:<LAYER = SCM, EVENT = Failed to update device OS to HTTP header compression version mapping For input string: "">
<2007-11-16 15:09:15.805 EST>:[146]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-1 started>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION =>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = [Transmission Line Section]:>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = POST / HTTP/1.1>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = [Headers Section]: 4 headers>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = x-rim-conttime:10000>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = Host:www.falseflag.com>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = Content-Length:0>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = User-Agent:BlackBerry/3.2.1>
<2007-11-16 15:09:15.805 EST>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION =>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = [Transmission Line Section]:>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = POST / HTTP/1.1>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = [Headers Section]: 8 headers>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = Connection:close>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = Via:MDS_4.1.4.19>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = Accept:*/*>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = x-rim-original-accept:*/*>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = x-rim-conttime:10000>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = Host:www.falseflag.com>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = Content-Length:0>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = User-Agent:BlackBerry/3.2.1>
<2007-11-16 15:09:15.805 EST>:[148]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 494170800, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2007-11-16 15:09:18.227 EST>:[149]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Connection Timed Out>
<2007-11-16 15:09:18.227 EST>:[150]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =CreatedSendingQueue, DEVICEPIN = 2100000a>
<2007-11-16 15:09:18.227 EST>:[153]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =Sending, TAG = 2093678593, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = 494170800, SEQUENCE = 0, TYPE = ERROR, SIZE = 21, ERRORCODE = -1, ERRORMSG = [Connection Timed Out]>
<2007-11-16 15:09:18.227 EST>:[154]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Device connections: AVG latency (msecs)0>
<2007-11-16 15:09:18.227 EST>:[155]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: ConnectionsInputStreamesReader0-DefaultJobRunner-1 stopping>
<2007-11-16 15:09:18.227 EST>:[156]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: ConnectionsInputStreamesReader0-DefaultJobRunner-1 stopped>
<2007-11-16 15:09:18.227 EST>:[157]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =RemovedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000a:494170800, ReceivingQueueSize = 0>
<2007-11-16 15:09:18.243 EST>:[158]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =Notification, TAG = 2093678593, STATE = DELIVERED>
<2007-11-16 15:09:19.055 EST>:[159]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =RemovedSendingQueue, DEVICEPIN = 2100000a>
<2007-11-16 15:09:37.009 EST>:[160]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, TRANSCODER = vnd.rim.html, EVENT = Started, DEVICEPIN = 2100000a, CONNECTIONID = 494170800>
<2007-11-16 15:09:37.180 EST>:[161]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER= HTTP, TRANSCODER = vnd.rim.html, EVENT = Stopped, DEVICEPIN = 2100000a, CONNECTIONID = 494170800>
<2007-11-16 15:09:37.180 EST>:[162]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-1 stopping>
<2007-11-16 15:09:37.180 EST>:[163]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-1 stopped>
<2007-11-16 15:09:37.180 EST>:[164]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Finished JobRunner: DefaultJobRunner-1, available threads in DefaultJobPool = 10, time spent = 128970ms>
<2007-11-16 15:13:54.824 EST>:[165]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records from device storage that are expired or older than 0 hours; 6>
<2007-11-16 15:13:54.824 EST>:[166]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records process ended; 6>
<2007-11-16 15:13:54.856 EST>:[167]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Statistics save task started>
<2007-11-16 15:13:54.856 EST>:[168]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Statistics save task finished -- number of rows inserted:5>

So the connection is apparently timing out? What would cause that?

EDIT: and what does "Error: "Can't load library: C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\MDS/bin/Windows XP-x86/libyk.so">" mean? *confused* That file doesn't exist, indeed. I don't think it's supposed to. i tried 2 MDS packages and it doesn't exist in either, and i get that error on both.

Last edited by predator : 11-16-2007 at 03:30 PM.
Offline  
Old 11-16-2007, 05:13 PM   #9 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I'm at a loss. If you want to zip the entire program and attach it to a message I'll take more of a look. Also specify exactly which MDS version and simulator you're using.

So far I'm still getting 200 success codes. Have you tried this on hardware yet?
Offline  
Old 11-16-2007, 05:35 PM   #10 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks dude, i really appreciate it. I'll send you my code in a message. I used the MDS that comes with JDE 4.3.0 as well as the MDS that comes with BlackBerry_Email_MDS_4[1].1.4.exe.

I did try the code on a blackberry 8700c and i tried setting the text that i read as the text of a label on the screen. It shows up blank, so it didn't pull any data, when the file is supposed to have one line of text.
Offline  
Old 11-19-2007, 08:55 AM   #11 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Another day and another 100 questions in my mind about internet connectivity. After Richard's great help, i was able to run the code (seems the code was fine and works on my PC at home but not at work, possibly due to an MDS port being blocked?).

The code still does not run on my BB though. I'm guessing i need to install an MDS server app thing on my BB for it to work? Does this mean that the code isn't actually using the internet to pull this data? For my purposes, i need to have it pull data using the internet since i need to distribute this code to a group who will be using the application and getting them all to install MDS on top of it will be a major inconvenience.. Am I on the right path that i need to install MDS on my BB to get the data from the site, as seen in my code? Can i re-write it or do something to pull it from the internet instead, without requiring any additional installs on the BB besides the app?

Help will be greatly appreciated.
Offline  
Old 11-19-2007, 10:38 AM   #12 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8700c
PIN: N/A
Carrier: AT&T
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Talking

Another update on this for anyone else that may have this problem
I tried displaying the exception caught by the try-catch block for network connectivity and it seems that i was getting the following exception

exception:Java.io.IOException:could not open tunnel - failure

I checked out these posts and had to set my APN in the advanced -> TCP section and now it works!

Java.io.IOException:could not open tunnel - failed exception
BlackBerry Internet - MSN/chat/web/telnet/TCPIP - No BES!

sure am a happy camper right now :D
*HAPPYDANCE!!*
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.