cancel
Showing results for 
Search instead for 
Did you mean: 

SMP101 blackberry sample application not working

former_member186566
Active Participant
0 Kudos

hi,

I have downloaded the MBO & Native codes for Blackberry from SCN forum http://scn.sap.com/docs/DOC-8803

I followed the SCN tutorial for all the deployment steps, but when i execute the application in BB9220 device, its not fetching data, but device got registered with SMP2.3 server.

I' have tried with SMP2.3 & SUP2.1.3 but no luck. In both way device got registered but data is not fetching.

For the sign in process, i have installed "Code sign in authority tool", generated the SMP.key and pasted this in root folder of the SMP101Blackberry project. after that i signed in the .cod file by "File signer". then i installed the app in BB 9220 device. When i open, It throws the error "App is trying to access the secured API".

So i signed the application again through the certificates i installed in eclipse. After this i am able to register device to SMP server, but its not fetching data.. 😞

I hope im missing something in Code signin process. Did i missed anything or  Did anyone faced this kind of issue? Need help.

Regards

Yokesvaran Kumarasamy

Accepted Solutions (0)

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

What is the error that you are facing in the logs of eclipse and in SCC ?

former_member186566
Active Participant
0 Kudos

HI

the below sql trace i found in Client trace log.

2013-11-14 12:36:07.922 [Thread-603717632] SQL TRACE: Synchronizing... ULRemoteId<Unknown> SynchronizationGroup<default> UserContext<null>

2013-11-14 12:36:09.403 [Thread-603717632] SQL TRACE: truncate table smp101_1_0_changelogimpl

In AMPhost.log

2013-11-14 12:00:58 Starting Log. Platform BlackBerry. Current time: 20131114T120058

2013-11-14 12:00:58 |Error|MocaLog Logging Level: 1

2013-11-14 12:00:58 |Error|AppId: SMP101

2013-11-14 12:00:58 |Error|iMo Version Number: 2.3.2.6861

2013-11-14 12:31:29 Starting Log.  Current time: 20131114T123129

2013-11-14 12:31:29 |Error|MocaLog Logging Level: Everything

2013-11-14 12:31:29 |Error|MocaLog AppId: HWC

2013-11-14 12:31:29 |Error|iMo Version Number: 2.1.3.6319

2013-11-14 12:31:29 |Debug|WorkflowSharedStorage.encode: Encoding

2013-11-14 12:31:29 |Debug|Initializing AmpMessageMailBox

2013-11-14 12:31:29 |Debug|AmpMessageMailBox finished set up

2013-11-14 12:36:08 Starting Log. Platform BlackBerry. Current time: 20131114T123608

2013-11-14 12:36:08 |Error|MocaLog Logging Level: 1

2013-11-14 12:36:08 |Error|AppId: SMP101

2013-11-14 12:36:08 |Error|iMo Version Number: 2.3.2.6861

No errors found in eclipse.

Can you explain the code sign in process for BB apps? so i can validate the steps.

Thanks & Regards

Yokesvaran Kumarasamy

midhun_vp
Active Contributor
0 Kudos

I don't have experience more than 2 weeks in BB development . The signing process is specific to BB and I haven't seen information regarding this before. Please check in this document whether you can get some info, http://docs.blackberry.com/en/admin/deliverables/38816/BlackBerry_Enterprise_Server_5.0_SP3_and_Blac...

- Midhun VP

shivakishore
Explorer
0 Kudos

HI Kumarasamy,

Can you please check whether your BES setup is proper in your device or not...This error arises when the BES setup is improper or When the device is not enrolled to any BES.

thanks  & regards,

Shivakishore

former_member186566
Active Participant
0 Kudos

Hi ,

Device got registered with BES, As i stated in the previous post, it only not fetching data from CDB after registering as supAdmin with SUP, synchronization is not happening between device and CDB.

I have taken the sample from this link http://scn.sap.com/docs/DOC-8803

In objectAPUUtil.java file


public static void initialize()

{
    Application app = Application.getInstance();
    app.setApplicationIdentifier("SMP101", "SMP");

i have added the "SMP" public key file in the source for protecting persistence class file for BB signing process. Further i dont find any persistence class in source.

But sadly no luck, its not working 😞

Regards

Yokesvaran Kumarasamy