cancel
Showing results for 
Search instead for 
Did you mean: 

Running app on BB Device - SUP

tahir_z
Contributor
0 Kudos

Hi,

Im trying to run my app on BB device but getting the following error : "Communication Error- Bad DNS adress detail".. I need help please if anyone tried app on phsycal BB device and run it successfully.

Thnx in Advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Where do you get this error message, on the BlackBerry device? You should check the logs on the server to see if there are errors that could explain this.

Regards,

Pierre

tahir_z
Contributor
0 Kudos

Hi,

Yes, in the simulator it works fine but in device i get that error. I can also ping the 2000 and 2480 ports. I searched it on the net and most are saying "APN settings". First it was "Communication error-Tunel failed" after i set APN settings the error changed to "Communication error- Bad DNS adress detail". I don't really sure if i missed anything.

thnx in advance

Former Member
0 Kudos

I guess your BlackBerry device is not registered on a BES (BlackBerry Enterprise Server)? Are you certain your device is able to communicate with the server? Your server must be accessible from the outside (internet) if you are not using a BES (on the same network).

Pierre

tahir_z
Contributor
0 Kudos

Hi Pierre,

Do i have to install BES as well ? I havent seen any info about it in infocenter.sybase. Im trying to connect to SUP server localy.

i can ping ip and ports but im not sure if device sees it. Well if BES is needed i think thats the problem ?

Former Member
0 Kudos

No, you don't have to install a BES. But it's easier when you have a BES and the SUP server on the same network because the BlackBerry devices gain access to the SUP server though the BES. It works like a VPN. I've always used a BES so I don't really know what you have to do if you don't.

Pierre

Former Member
0 Kudos

it depends on how you are trying to connect SUP from BB.

1. you can use BB Wi-Fi to connect to the SUP server's network and check.

2. if you are using GPRS the server and sync port should to opened to the internet.

Regards,

Joseph.

tahir_z
Contributor
0 Kudos

Hi Joseph,

Im trying to connect to server with Wi-Fi. First i disable the device network(gprs) just leave the Wi-Fi in connect. If i do this i get "Failed to transmit the wireless might be off"(Wi-Fi is connected), other way if i make enable the device netwok then i get "Communication error......". I think the device doesnt see the wi-fi connection or is there anything else that i sould configure on device or on server ?

Thnx in advance

Former Member
0 Kudos

check whether you are able to browse to the internet after connecting to WI-Fi. it seems Wi-Fi is not connected properly

For GPRS chech whether you are able to access SUP server from internet without using VPN or local network

tahir_z
Contributor
0 Kudos

Joseph,

I have connected to sup server over http by using gprs and its ok. But in another way i mean Wi-Fi doesn't work for me, i can ping the server from BB device localy and i opened the browser so net works fine, mds is running as well. But the app doesnt work with wi-fi. Do i need make some configuration while i develop the application?

Himagiri ,

It build by Device application designer. Do i need to set any sychronization profile ? I guess it sets itself once you run the program.

Thanx in advcance

Regards

Former Member
0 Kudos

It does automatically but since you want to use WIFI and that support is not automatically included in the generated code at this point, you'd have to make the modificaiton as I indicated.

Former Member
0 Kudos

is it that you are able to sync and get data when using GPRS, and not able to get the same when using Wi-Fi ?

is you device registered with the BES ?

tahir_z
Contributor
0 Kudos

Joseph,

Yes, Im not able to sych with Wi-Fi. I dont have installed BES, Do i need it ? Because in documentation i havent seen any thing about installing BES.

Former Member
0 Kudos

it is not manditory to install BES without BES also it will work.

check if the SUP Server and port is accessable via Wi-Fi.

what error you are getting now while trying to sync using Wi-Fi?

tahir_z
Contributor
0 Kudos

Joseph,

I can access to server and im able to ping sync port 2480. I didnt add custom code for wi-fi just like himagiri said, im developing it by using DAD. I think i sould add it as well ?

Former Member
0 Kudos

ok then can you test it using your BB Emulator by using Wi-Fi network in you laptap.

tell us what error you are getting exactly

tahir_z
Contributor
0 Kudos

Joseph,

When i turned off GPRS and leaving the wi-fi on , then i get the following error "Failed to transmit the wireless might be off". This seems like my app doesn't see the wi-fi connection.

Regards

Former Member
0 Kudos

Hi ozmrdn,

I was able to sign APIs, but now I have your same problem! Have you changed the code as said Hima?

Have you tried via 3G?

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Friends,

when i am trying to synchronize data in to BB device simulator, An error generated. like,

while synchronized package "SAP101:10" and publication "default" :

com.sybase.persistence.SynchronizeException:

ianywhere.ultralitej.implementation.JrException:UltraLiteJ

Error-857: Synchronization

failed due to an error on the server :

(SQLCODE - 10244) The Mobilink Server has encountered an error

and the synchronized has been aborted

And in my desktop machine.. I used BB simulator to check the application so Which Synchronization method will be used like WIFI or TCP or BES or WAP 1.0 or ...

Regards,

Tapan

Former Member
0 Kudos

Is this BB application directly using MBO Object API and written in JDE or is it written using Device Application Designer. Anycase, essentially a property needs to be set on the synchronization profile before synchronize to enable using WIFI transport.

If you write the application using JDE yourself, in the initialization part you can call this method on <Packagename>Database class file.

OrderApprovalDatabase.getSynchronizationProfile().setString("transport", "WIFI");

OrderApprovalDatabase.synchronize();

Former Member
0 Kudos

HI! How did you for signatures? I can't test my applications on a physical device 😕

tahir_z
Contributor
0 Kudos

>

> HI! How did you for signatures? I can't test my applications on a physical device 😕

You have to get signing tools from RIM. I think it cost 20 $

Former Member
0 Kudos

Thanks! Sorry i can't give you points

Edited by: Alessandro Iannacci on Feb 8, 2011 2:05 PM