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
Developer
Posts: 70
Registered: ‎11-30-2009
My Device: Not Specified
Accepted Solution

No application instance exception raised during installation on 8520

 

          Hi everybody,

 

     Recently we've noticed a really weird problem on 8520 model. It's the only model, among all models our application can be executed on, that raises a "no instance application" right after it was installed for the very first time. Actually, after installation is done, the device opens the pop-up asking for persmission changes, and when "save" button is pressed this exception is then raised right away.

 

     I doubt that our application has even started yet. That's why I wonder it this is not a deployment issue rahter than a runtime issue ?

 

     Have anyone ever come accross this problem ?

 

          Thanks in advance.

 

 

 

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: No application instance exception raised during installation on 8520

Would you please obtain the full stack trace from the Event Log and post it here?

Developer
Posts: 70
Registered: ‎11-30-2009
My Device: Not Specified

Re: No application instance exception raised during installation on 8520

Here's an extract where we can see where the exception is raised (application name is Wallet) from the event log :

 

[...]

guid:0x97C9F5F641D25E5F timeSmiley SadUTC) Mon Feb 08 17:11:30 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: Wallet(8688) no sig from 0x33
guid:0x97C9F5F641D25E5F timeSmiley SadUTC) Mon Feb 08 17:11:37 2010  severity:0 type:2 appSmiley Frustratedystem data:VM:LINK Wallet
guid:0x97C9F5F641D25E5F timeSmiley SadUTC) Mon Feb 08 17:11:39 2010  severity:0 type:2 appSmiley Frustratedystem data:CMM: Wallet(8688) no sig from 0x33
guid:0xC1A90F9B4F904C57 timeSmiley SadUTC) Mon Feb 08 17:11:40 2010  severity:5 type:2 app:App Perms data:d Wallet:12
guid:0xC1A90F9B4F904C57 timeSmiley SadUTC) Mon Feb 08 17:11:40 2010  severity:5 type:2 app:App Perms data:d Wallet:13
guid:0xC1A90F9B4F904C57 timeSmiley SadUTC) Mon Feb 08 17:11:40 2010  severity:5 type:2 app:App Perms data:d Wallet:29
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:11:41 2010  severity:0 type:2 app:net.rim.browser data:JAD 900
guid:0xBEF92E11214401C3 timeSmiley SadUTC) Mon Feb 08 17:11:42 2010  severity:0 type:2 app:UI data:GS+Q0 d66b0a36net.rim.device.apps.internal.applicationcontrol.ApplicationPermissionsProxy$PermissionsRequestDialog
guid:0xBEF92E11214401C3 timeSmiley SadUTC) Mon Feb 08 17:11:46 2010  severity:0 type:2 app:UI data:GS-D d66b0a36
guid:0x19E57B17BE5FDC12 timeSmiley SadUTC) Mon Feb 08 17:12:01 2010  severity:2 type:2 app:net.rim.gme data:RDKs
guid:0x9C3CD62E3320B498 timeSmiley SadUTC) Mon Feb 08 17:12:02 2010  severity:1 type:3 app:Java Exception data:
    IllegalStateException
    no application instance
    net_rim_cldc-6
     Application
     getApplication
     0x1BD9
    net_rim_os-1
     ApplicationPermissionsManager
     <private>
     0x61D
    net_rim_os-1
     ApplicationPermissionsManager
     invokePermissionsRequest
     0x573
    Wallet-2
     PermissionsChecker
     requestPermissions
     0x4CC
    Wallet
     Wallet
     main
     0xA90C
guid:0xBEF92E11214401C3 timeSmiley SadUTC) Mon Feb 08 17:12:02 2010  severity:0 type:2 app:UI data:GS+Q2 de97b96bnet.rim.device.internal.ui.component.TraceBackDialog
guid:0xBEF92E11214401C3 timeSmiley SadUTC) Mon Feb 08 17:12:20 2010  severity:0 type:2 app:UI data:GS-D de97b96b
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:23 2010  severity:0 type:2 app:net.rim.browser data:Bafd
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:23 2010  severity:0 type:2 app:net.rim.browser data:Brtd 79 0
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:25 2010  severity:0 type:2 app:net.rim.browser data:IPPP-GPMDSEU01:bb,ss,bg,em,http://mobile.blackberry.com/
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:25 2010  severity:0 type:2 app:net.rim.ippp data:TXst   840
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:28 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   497
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:28 2010  severity:0 type:2 app:net.rim.browser data:Brtd 3250 0
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:28 2010  severity:0 type:2 app:net.rim.browser data:IPPP-GPMDSEU01:bb,ss,bg,em,http://mobile.blackberry.com/home.jsf;jsessionid=817591992AB1E74F1F798C31D7A845B7.node1
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:28 2010  severity:0 type:2 app:net.rim.ippp data:TXst   1013
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:31 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   11
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:33 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   8935
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:35 2010  severity:0 type:2 app:net.rim.ippp data:TXst   104
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:35 2010  severity:0 type:2 app:net.rim.browser data:Brtd 6390 14434
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:35 2010  severity:0 type:2 app:net.rim.ippp data:TXst   0
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:36 2010  severity:0 type:2 app:net.rim.browser data:IPPP-GPMDSEU01:bb,ss,bg,em,http://mobile.blackberry.com/
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:36 2010  severity:0 type:2 app:net.rim.ippp data:TXst   1038
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:36 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   11105
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:37 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   41
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:39 2010  severity:0 type:2 app:net.rim.ippp data:TXca
guid:0x389FE34834FB0EDF timeSmiley SadUTC) Mon Feb 08 17:12:39 2010  severity:3 type:2 app:net.rim.mdp data:TXca
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:39 2010  severity:0 type:2 app:net.rim.browser data:Brtd 3156 0
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:40 2010  severity:0 type:2 app:net.rim.browser data:IPPP-GPMDSEU01:bb,ss,bg,em,http://mobile.blackberry.com/
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:40 2010  severity:0 type:2 app:net.rim.ippp data:TXst   1038
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:41 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   11
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:41 2010  severity:0 type:2 app:net.rim.ippp data:TXst   0
guid:0x389FE34834FB0EDF timeSmiley SadUTC) Mon Feb 08 17:12:41 2010  severity:3 type:2 app:net.rim.mdp data:RDpd
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:41 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   329
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:44 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   11
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:45 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   329
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:49 2010  severity:0 type:2 app:net.rim.ippp data:TXst   57
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:49 2010  severity:0 type:2 app:net.rim.ippp data:TXca
guid:0x1A77581FBCC4EC23 timeSmiley SadUTC) Mon Feb 08 17:12:49 2010  severity:0 type:2 app:net.rim.browser data:Brtd 8664 0
guid:0x49A44D2C2C0BFEE5 timeSmiley SadUTC) Mon Feb 08 17:12:49 2010  severity:0 type:2 app:net.rim.srp.prime data:Wlan
guid:0xEA9694AC2B44FBDB timeSmiley SadUTC) Mon Feb 08 17:12:49 2010  severity:3 type:2 app:net.rim.rcp data:WlCe
guid:0x49A44D2C2C0BFEE5 timeSmiley SadUTC) Mon Feb 08 17:12:49 2010  severity:3 type:2 app:net.rim.srp.prime data:Inet
guid:0x49A44D2C2C0BFEE5 timeSmiley SadUTC) Mon Feb 08 17:12:49 2010  severity:3 type:2 app:net.rim.srp.prime dataSmiley Very HappyaUv
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Mon Feb 08 17:12:54 2010  severity:0 type:2 app:net.rim.ippp data:RXCd   41
guid:0x29E95A693C6802B8 timeSmiley SadUTC) Mon Feb 08 17:13:27 2010  severity:0 type:2 app:cmime data:RXCd   647189945
guid:0x49A44D2C2C0BFEE5 timeSmiley SadUTC) Mon Feb 08 17:13:28 2010  severity:3 type:2 app:net.rim.srp.prime data:TPda
guid:0x49A44D2C2C0BFEE5 timeSmiley SadUTC) Mon Feb 08 17:13:28 2010  severity:3 type:2 app:net.rim.srp.prime data:TPda
guid:0x647E5DBBC34B5549 timeSmiley SadUTC) Mon Feb 08 17:14:57 2010  severity:0 type:2 app:net.rim.clock data:-CHG
guid:0xDAA64EAD4E49C5D5 timeSmiley SadUTC) Mon Feb 08 17:14:57 2010  severity:0 type:2 app:net.rim.usb.pwd data:CbDs
guid:0x97C9F5F641D25E5F timeSmiley SadUTC) Mon Feb 08 17:17:01 2010  severity:0 type:2 appSmiley Frustratedystem data:VM:+GC

[...]

 

 

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: No application instance exception raised during installation on 8520

Is "Wallet" your application? If so, then you need to create an event dispatcher thread (typically by invoking Application.enterEventDispatcher() on the main thread) before you invoke a permissions request. For example, a convenient place to invoke a permissions request is inside Application.activate() (you only need to invoke the request first time the activate() method is invoked).

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: No application instance exception raised during installation on 8520

P.S. Just checking: is it your application code that explicitly invokes a permissions request? I'm wondering because you said that your application was not even run...

Developer
Posts: 70
Registered: ‎11-30-2009
My Device: Not Specified

Re: No application instance exception raised during installation on 8520

Actually we're testing this solution right now but it looks like it was the good way to handle it Smiley Happy

And yes we do this call explicitlty in the main...

Highlighted
New Contributor
Posts: 5
Registered: ‎03-25-2010
My Device: Bold 9700
My Carrier: T-Mobile

Re: No application instance exception raised during installation on 8520

I know this is an old thread but I just stumbled upon it because I had the same problem and after some research I think the solution posted by klyubin is not 100 percent accurate.

 

Like the exception indicates, the problem is that an application instance (an Application object) does not exist when invokePermissionsRequest() returns.

 

The solutions is to call that method from the constructor of your app instead of from the main method. See also the ApplicationPermissionsDemo from the samples bundled with the JDE.

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: No application instance exception raised during installation on 8520

Interesting! Thanks!

Developer
Posts: 70
Registered: ‎11-30-2009
My Device: Not Specified

Re: No application instance exception raised during installation on 8520

Thank you ! You might have helped me to fix this issue that was lasting for a lonnng time.

 Smiley Happy