Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
NOTiFYPiNPOiNT
Posts: 55
Registered: 07-21-2009
My Carrier: Orange UK
Accepted Solution

My BB app suddenly stopped communication with my server!

I have developed a simple tracking application for my BlackBerry 8820 running v4.5.0.174 (platform 2.7.0.105) developed under Eclipse using the Eclipse Plug-in Component Pack 5.0.0.7. Running on the Orange UK network. I have my APN set to “orangeinternet” with a ‘blank’ user id and password.

It has been running fine since end of June, connecting to my server.

On  my server I have a simple listener (on port 55555) which received a text string sent from the BB, parses it sends it to the JBoss Application Server where processing starts.

On Saturday 31st October @ 10.20 (GMT) my server stopped receiving the data from the BB. No exception has been thrown on BB. The listener is just sitting there waiting and listening.

I’ve added some debugging statements on the BB app and no exception is thrown.

To connect to my Server I call;

socketConnection = (SocketConnection) Connector.open(URL);

URL is “Socket://217.174.251.19:5555”

I f I print the address using;

log("Address: " + socketConnection.getAddress() + ":" + Integer.toString(socketConnection.getPort()));

I get;

Address:192.168.71.35:55555

Which is the Orange UK WAP MMS GPRS setting?

So it appears to be leaving my BB okay.

Orange support won’t help any further as I have an internet connection from my BB and email is working!

By the way, using a Java SE client I can send a test data to my Server, which is received and processed, so I am sure that is all still okay. I can also Ping it.

Any suggestions what to look for?

Thanks.

"It's all about quality (of posts) not quantity"
Please use plain text.
Developer
Developer
mb1
Posts: 235
Registered: 05-26-2009

Re: My BB app suddenly stopped communication with my server!

This is a long shot.

But could it be that Orange UK network changed its policies regarding allowing connections to non-standard port numbers?

 

To test you could trying running your service on port 80 and check if it works.

Please use plain text.
Developer
Posts: 1,474
Registered: 04-14-2009

Re: My BB app suddenly stopped communication with my server!

So, what error(s) are you getting on that BlackBerry?

Please use plain text.
Developer
peter_strange
Posts: 13,585
Registered: 07-14-2008

Re: My BB app suddenly stopped communication with my server!

Also can you confirm the full URL you are using, including the connection suffix you are adding.

Please use plain text.
Developer
NOTiFYPiNPOiNT
Posts: 55
Registered: 07-21-2009
My Carrier: Orange UK

Re: My BB app suddenly stopped communication with my server!

I'm getting no errors or exceptions on my BB. Just continues to "send" the data.

 

To connect I use (and have been doing since June);

 

 

private static final String URL = "socket://217.174.251.19:55555"

"It's all about quality (of posts) not quantity"
Please use plain text.
Developer
RexDoug
Posts: 4,568
Registered: 07-21-2008

Re: My BB app suddenly stopped communication with my server!

Probably would not hurt to resend the service books, if you have not already done this.

 

Please use plain text.
Developer
NOTiFYPiNPOiNT
Posts: 55
Registered: 07-21-2009
My Carrier: Orange UK

Re: My BB app suddenly stopped communication with my server!

Resent the Service Books, made no difference.

"It's all about quality (of posts) not quantity"
Please use plain text.
Developer
Posts: 1,474
Registered: 04-14-2009

Re: My BB app suddenly stopped communication with my server!

"continues to send the data..." Do you mean that OutputStream.write blocks forever or that OutputStream.write + flush() succeed but nothing is received on the server-side?

 

Do you have another thread reading from the connection at all times (in a loop)? If not, then how do you know whether the data were actually sent?

 

Lastly, I'm not sure whether you are trying to use Direct TCP or WAP. If you want to use Direct TCP and thus the APN settings you've mentioned earlier, you should append ";deviceside=true;connectionhandler=none" to the Connector.open URL to explicitly request Direct TCP. If you are trying to use WAP 2.0 TCP, you need to append ";ConnectionUID=<WPTCP SB record UID here>" to the Connector.open URL, where WPTCP SB record UID is the UID of the carrier's WPTCP transport Service Book record.

Please use plain text.
Developer
NOTiFYPiNPOiNT
Posts: 55
Registered: 07-21-2009
My Carrier: Orange UK

Re: My BB app suddenly stopped communication with my server!

[ Edited ]

 Lastly, I'm not sure whether you are trying to use Direct TCP or WAP. If you want to use Direct TCP and thus the APN settings you've mentioned earlier, you should append ";deviceside=true;connectionhandler=none" to the Connector.open URL to explicitly request Direct TCP.

 

Added  "deviceside=true;connectionhandler=none"  and it's working again!

 

 

Many thanks for your help.

 

"It's all about quality (of posts) not quantity"
Please use plain text.