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

Testing and Deployment

Reply
New Developer
jjrohrer
Posts: 13
Registered: ‎10-19-2010
My Device: 9000
Accepted Solution

Signed app refuses to launch on device - how to debug?

I'm trying to get my first app (Powernap) to run on a physical device.  It runs fine in the simulator, but it won't launch when I try to put it onto an actual device.  I'm not even sure where to start, when i tap the icon, nothing happens.  Literally nothing. 

 

When I tried installing the app before I signed it, I got the standard message about the app trying to access secure APIs (Its a webworks app that plays some sounds).  But now, after I've signed it, no message is displayed, no luanch scree, etc.

 

I have tried deleting the unsigned app, rebooting, and then re-installing.

 

I think that I'm signing correctly since I'm not getting any errors.

 

How can I tell where the problem is?  Any pointers?

 

Here is my build and load steps:

C:\Program Files\Research In Motion\BlackBerry WebWorks Packager\bin>bbwp.exe  "\\vmware-host\Shared Folders\common_cross_builds\torch\ProjPowernap\bu
ild\src.zip" /g
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating application archive
[INFO]                  Parsing config.xml
[INFO]                  Populating application source
[INFO]                  Compiling BlackBerry WebWorks application
[INFO]                  Starting signing tool
[INFO]                  Signing complete
[INFO]                  Generating output files
[INFO]                  BlackBerry WebWorks application packaging complete

C:\Program Files\Research In Motion\BlackBerry WebWorks Packager\bin>JavaLoader.exe load "\\vmware-host\Shared Folders\common_cross_builds\torch\ProjP
owernap\build\bin\StandardInstall\src.cod"
RIM Wireless Handheld Java Loader
Copyright 2001-2009 Research In Motion Limited
Connected
Loading src                           Done
2872980 bytes sent at ~1641702 bps
Disconnected

C:\Program Files\Research In Motion\BlackBerry WebWorks Packager\bin>

 

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Signed app refuses to launch on device - how to debug?

What BlackBerry Smartphone model and BlackBerry device software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

 

Do you see any errors in the BlackBerry Smartphone's event log?  You can extract it using the following command:

 

javaloader -u eventlog > myLog.txt

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
jjrohrer
Posts: 13
Registered: ‎10-19-2010
My Device: 9000

Re: Signed app refuses to launch on device - how to debug?

The device is a torch 9800

 

"JavaLoader device" claims this (which seems odd to me)

  • Copyright 2001-2009 Research In Motion Limited
  • Connected
  • Hardware Id:     0x5001807
  • PIN:             0x235045b0
  • OS Version:      0x0  <-- weird
  • VM Version:      0x60000f6
  • Radio ID:        0x0
  • Vendor ID:       102

My real OS is versino 6.0 Bundle 695

 

 

I followed the following process:

  • I deleted the old app from the phone.
  • I restarted the phone
  • I compiled and signed the package
  • I installed the package
  • I launched the app

When I launch the app, the log produces this:

guid:0x97C9F5F641D25E5F time: Wed Dec 31 19:00:00 1969  severity:0 type:2 app:System data:JVM:INFOp=235045b0,a='6.0.0.246',o='6.4.0.105',h=5001807
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:25:14 2011  severity:0 type:2 app:System data:JL: disconnect
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:25:21 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:25:21 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:25:21 2011  severity:2 type:2 app:Application Control data:IvHS
... (lots of repeats)
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:25:29 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:25:36 2011  severity:0 type:2 app:System data:JL: connect
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:25:37 2011  severity:0 type:2 app:System data:JVM:INFOp=235045b0,a='6.0.0.246',o='6.4.0.105',h=5001807

 (as a side note, the clock on the screen readys 10:25 instead of the 9:25 shown in the log)

 

Hmm, just an idea.  My phone does not have a sim in it because I no longer use it as my primary phone.  Not sure it that might have something to do with it.

New Developer
jjrohrer
Posts: 13
Registered: ‎10-19-2010
My Device: 9000

Re: Signed app refuses to launch on device - how to debug?

My compile & sign line is:

C:\Program Files\Research In Motion\BlackBerry WebWorks Packager\bin>bbwp.exe "\\vmware-host\Shared Folders\common_cross_builds\torch\ProjPowernap\build\src.zip" /g

 

I get the signer dialog after this and enter my password.  It seems to nicely go through and sign everything.  I'm assuming that it signs without errors because the dialog goes away after stepping through 122 steps.

 

 

 My install line is: 

C:\Program Files\Research In Motion\BlackBerry WebWorks Packager\bin>JavaLoader.exe load "\\vmware-host\Shared Folders\common_cross_builds\torch\ProjPowernap\build\bin\StandardInstall\src.cod"

 

 

For completeness, here is the log from just the install portion:

 

guid:0x97C9F5F641D25E5F time: Wed Dec 31 19:00:00 1969  severity:0 type:2 app:System data:JVM:INFOp=235045b0,a='6.0.0.246',o='6.4.0.105',h=5001807
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:00 2011  severity:0 type:2 app:System data:JL: disconnect
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:07 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:09 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:14 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:14 2011  severity:0 type:2 app:System data:JL: connect
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:14 2011  severity:0 type:2 app:System data:CMM: add src(2565)
... lots of repeats
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:27 2011  severity:0 type:2 app:System data:CMM: add src-8(2915)
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:27 2011  severity:0 type:2 app:System data:CMM: add src-9(3327)
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:29 2011  severity:0 type:2 app:System data:JL: disconnect
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:31 2011  severity:0 type:2 app:System data:VM:+RR! RX=26.6M,RF=75.6M,FF=279.1M,OF=981.2K,OS=41.3M,ON=311.7K,OR=0,FR=14.7K,TR=58.2K,RR=0,IS=20.9K RA=49.7M,RS=41.3M,RN=198.5K TA=2.2M,TS=0,TN=12.1K PA=0,PS=0,PN=49.2K R0=59.5M,1=3.7M,2=25K,3=171K,4=1.9M,7=648K,8=6K,9=43.4M,10=30.9K,11=118.1K,12=543.3K,13=65.2K,14=36.5K,15=679.2K,20=5.9K,21=1K,22=108.6K,23=168.6K,24=27.5K
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:32 2011  severity:0 type:2 app:System data:VM:-RR RX=26.6M,RF=75.9M,FF=278.8M,OF=981.2K,OS=41M,ON=311.7K,OR=0,FR=14.7K,TR=58.2K,RR=0,IS=20.9K RA=49.4M,RS=41M,RN=197.2K TA=2.6M,TS=0,TN=13.4K PA=0,PS=0,PN=49.2K R0=59.5M,1=3.7M,2=25K,3=171K,4=1.9M,7=648K,8=6K,9=43M,10=30.9K,11=118.1K,12=543.3K,13=65.2K,14=36.5K,15=679.2K,20=5.9K,21=1K,22=108.6K,23=168.6K,24=27.5K
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:32 2011  severity:0 type:2 app:System data:CMM: slacker_radio(40) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:32 2011  severity:0 type:2 app:System data:CMM: 
... lots of similiar lins
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:32 2011  severity:0 type:2 app:System data:CMM: AppStoreService(9862) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:32 2011  severity:0 type:2 app:System data:CMM: TWCStartBk(10056) no sig from 0x33
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:41 2011  severity:0 type:2 app:System data:VM:LINK src
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:CMM: src(2565) no sig from 0x545252
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:module 2565 cannot reference net.rim.device.api.system.ApplicationManager
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:Module 'src' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:Linker error: 'VerifyError' for src
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:44 2011  severity:0 type:2 app:System data:CMM: src(2565) no sig from 0x33
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:44 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0x75487BEA7FF3BCAC time: Tue Jun 14 09:37:44 2011  severity:4 type:2 app:ThemeReader data:Start theme search
guid:0x75487BEA7FF3BCAC time: Tue Jun 14 09:37:44 2011  severity:4 type:2 app:ThemeReader data:End theme search
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:51 2011  severity:0 type:2 app:System data:VM:-LGCMt=813,s=2492,p=net_rim_bb_ribbon_app
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:51 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:51 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:51 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:51 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:51 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:51 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:51 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:51 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:51 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:51 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:51 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:52 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0x427397A2FBEABF07 time: Tue Jun 14 09:37:52 2011  severity:0 type:2 app:net.rim.ribbon.systemstatus data:New text:Insert SIM Card - rohrer4
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:37:57 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:38:17 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:38:17 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:38:17 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:38:17 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0x38E29AD8D1B8DE63 time: Tue Jun 14 09:38:25 2011  severity:4 type:2 app:net.rim.wlan.link data:Evnt-user
guid:0x38E29AD8D1B8DE63 time: Tue Jun 14 09:38:25 2011  severity:4 type:2 app:net.rim.wlan.link data:Actn-none
guid:0x38E29AD8D1B8DE63 time: Tue Jun 14 09:38:25 2011  severity:4 type:2 app:net.rim.wlan.link data:Wait-active
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:38:25 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:38:25 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0xED7944AEBD0C4AE2 time: Tue Jun 14 09:38:25 2011  severity:2 type:2 app:Application Control data:IvHS
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:38:27 2011  severity:0 type:2 app:System data:JL: connect
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:38:28 2011  severity:0 type:2 app:System data:JVM:INFOp=235045b0,a='6.0.0.246',o='6.4.0.105',h=5001807

 

 

Ok, these lines certainly stand out:

guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:41 2011  severity:0 type:2 app:System data:VM:LINK src
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:CMM: src(2565) no sig from 0x545252
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:module 2565 cannot reference net.rim.device.api.system.ApplicationManager
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:Module 'src' attempts to access a secure API.
guid:0x97C9F5F641D25E5F time: Tue Jun 14 09:37:43 2011  severity:0 type:2 app:System data:Linker error: 'VerifyError' for src

 but I'm not exactly sure how to interpret this since I certain feel like I'm signing the app.  Should the above section be interpreted as the "App was not signed"?  Could it also mean "The app was not signed properly"  Could it also mean "Your config.xml file is whacked."

 

 

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Signed app refuses to launch on device - how to debug?

Your application has not been signed with the RRT key.  Did you install all 3 csi files that you were sent?  Each one pertains to a different key and all are required to sign an application.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
jjrohrer
Posts: 13
Registered: ‎10-19-2010
My Device: 9000

Re: Signed app refuses to launch on device - how to debug?

Just so others know, if you are signing properly, you'll see greened 'signed' things in the Java signing dialog that pops up.

Ok - that sucked. Was that tool really designed to fail silently, or was I missing something.

How did I get so confused? - after looking back, my request for keys generated 17, yes, 17, automated emails from blackberry. I sort of think that one email with three attachments might have been a bit more parsimonious. oh well.
BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Signed app refuses to launch on device - how to debug?


jjrohrer wrote:
. I sort of think that one email with three attachments might have been a bit more parsimonious. oh well.


This is on the TODO list for the next version of code signing we are working on.  :smileyhappy:

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
jjrohrer
Posts: 13
Registered: ‎10-19-2010
My Device: 9000

Re: Signed app refuses to launch on device - how to debug?

Ah, great to hear. We all know these things take time. I really appreciate the help on this thread!