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
dbryant-uk
Posts: 4
Registered: ‎07-29-2009
My Device: 8900
Accepted Solution

8900 http comm hangs after second connection (not seen with 83XX devices or 8900 simulator)?

Hi,

I current have a j2me app deployed in production onto various BB devices. The app is fairly simple and essentially collects data from the user (via text fields, combo boxes etc.) and sends this data to our server via an http connection

The app has been deployed in production for over 6 months and working with end-users using various BB devices, such as the 8310, 8320 and 9000.

Our end-users now upgrading to the 8900, and we assumed that our app would work in the same manner as it does the on 8320 - I even tested my app on the 8900 simulator and everything works fine.

However, using the app on a real 8900 device connected to the Vodafone Network here in the UK has thrown up some bizarre problems. The app installs OTA fine, initially communicates fine (as we login via an http post), but then any subsequent communication attempt over http simply hang with no error thrown?

Closing the app does not cause any change, and any communication attempt hangs. If I reboot the device (battery out etc) and start the app then I can connect one more time, and then the app simply hangs again.

I can't track the cause down, and the fact that the other physical devices and even the 8900 simulator work fine is bizarre!

Any help or pointer as to where to start looking in my code/settings would be much appreciated?

Daniel
...........................................................................................
Daniel Bryant | Tai-Dev Ltd | daniel.bryant@tai-dev.co.uk
Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: 8900 http comm hangs after second connection (not seen with 83XX devices or 8900 simulator)?

try attaching your device to the debugger. and put some breakpoints in your class where you do the actually connection. this might help you determine the cause of the exception/error.
Please use plain text.
New Developer
dbryant-uk
Posts: 4
Registered: ‎07-29-2009
My Device: 8900

Re: 8900 http comm hangs after second connection (not seen with 83XX devices or 8900 simulator)?

Thanks John - I really should have thought of that myself :smileyhappy:

 

I'll give it a try over the next couple of days and let you know how I get on...

...........................................................................................
Daniel Bryant | Tai-Dev Ltd | daniel.bryant@tai-dev.co.uk
Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: 8900 http comm hangs after second connection (not seen with 83XX devices or 8900 simulator)?

no problem Daniel. :smileyhappy: just post your update. 
Please use plain text.
New Developer
dbryant-uk
Posts: 4
Registered: ‎07-29-2009
My Device: 8900

Re: 8900 http comm hangs after second connection (not seen with 83XX devices or 8900 simulator)?

Hi,

 

Very interesting indeed. The app appears to hang after we attempt to open an arbitary http connection (of which throughout the app lifecycle we have done many times before)

 

The debug window in the JDE then suddenly fills with the text included below... My thoughts now point to a memory/gc problem?

 

Best wishes,

 

Daniel

 

 

++++++++++++++++ doInitialise ++++++++++++++
Writing 3
---- END storesubmittedobservation com.triopsis.mob.dao.SubmittedObservation@7c7b84da
++++++++++++++ Index 19 : We are going to read 10000 bytes
Send Observation Packet #20 of 75 sz 10000b. TransientPK# 20
JVM: bklt[1] @7221680: JBSC on=0
JVM: bklt[1] @7221680: SC 0
JVM: bklt[1]: setTimeout 30
VM:+GC(f)w=10
VM:-GCt=43,b=1,r=0,g=f,w=10
VM:+RR

RX=10.2M,RF=10.6M,FF=115M,OF=383.2K,OS=10.8M,ON=128.7K,OR=0,FR=46.1K,TR=114.5K,RR=0,IS=13.5K
RA=12.4M,RS=10.8M,RN=51.2K
TA=7.5M,TS=0,TN=30.6K
PA=0,PS=0,PN=20.9K
R0=70.6M,1=420.6K,2=15K,3=86.8K,4=2.2M,7=100.9K,8=3K,9=11.1M,10=15.7K,11=83K,12=387.3K,13=29.3K,14=1.8K,15=168.5K,20=4.7K,21=524,22=71.2K
VM:-RR

RX=10.2M,RF=10.9M,FF=114.6M,OF=383.2K,OS=10.5M,ON=128.7K,OR=0,FR=46.1K,TR=114.5K,RR=0,IS=13.5K
RA=12.1M,RS=10.5M,RN=50.6K
TA=7.9M,TS=0,TN=31.2K
PA=0,PS=0,PN=20.9K
R0=70.6M,1=420.6K,2=15K,3=86.8K,4=2.2M,7=100.9K,8=3K,9=10.7M,10=15.7K,11=83K,12=387.3K,13=29.3K,14=1.8K,15=168.5K,20=4.7K,21=524,22=71.2K
VM:+CR
VM:-CR=5
FS: CLEAN(710 5)
VM:ICSFv=1,w=131044

...........................................................................................
Daniel Bryant | Tai-Dev Ltd | daniel.bryant@tai-dev.co.uk
Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: 8900 http comm hangs after second connection (not seen with 83XX devices or 8900 simulator)?

please make sure you close your connection. :smileyhappy: or check if the current connection is close before opening a new one. 
Please use plain text.
New Developer
dbryant-uk
Posts: 4
Registered: ‎07-29-2009
My Device: 8900

Re: 8900 http comm hangs after second connection (not seen with 83XX devices or 8900 simulator)?

Ah - that was it! What strange behaviour/output from the device (and not from other older devices or the Simulator?)

 

There are still a few other bugs I've got to tidy up and then hammer the testing, but everything looks good and your advice has been invaluable!

 

Thanks Again John,

 

Daniel

...........................................................................................
Daniel Bryant | Tai-Dev Ltd | daniel.bryant@tai-dev.co.uk
Please use plain text.