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

Payment Service

Reply
Developer
Developer
Posts: 39
Registered: ‎03-17-2009
My Device: Not Specified

IllegalStateException and IllegalMonitorStateException in BlackBerry World making purchases: both download & pmt svc

I'm trying to get in-app purchase working. My app is in BlackBerry World and I have one digital good defined. It is not yet released for public purchase. I noticed instances of IllegalStateException and IllegalMonitorStateException in BlackBerry World making purchases. The physical device is a BlackBerry 9000 running BBOS 5.0.0.1067. My app is linked with BlackBerry payment service API 1.8 (its jar manifest says "1.8.0.21"). I believe the device's instance of the BlackBerry World app is the latest; it's listed as "BlackBerry App World 4.3.0.32".  When I was downloading the app (as a re-install), I got 3 quick successive similar instances of IllegalStateException for "close() called when not displayed.". A few minutes later, when I attempted to make the in-app purchase, I got the IllegalMonitorStateException without a detail message. For the in-app purchase, there was a screen with BBW look and feel interpolated between my app and the PayPal page, with my app's logo and name but nothing else. I believe that success was reported back from BBW to my app (and I did see a dynamic license key created) for the in-app purchase, but that's the point where I'm debugging/verifying my app right now. The exceptions from the event log are below:

guid:0x9C3CD62E3320B498 timeSmiley SadUTC) Fri May 31 20:59:07 2013  severity:1 type:3 app:Java Exception data:
    IllegalStateException
    close() called when not displayed.
    net_rim_cldc-12(4D412FA6)
     Screen
     close
     0x6B6F
    net_rim_bb_appworld_lib-14(51781A84)
     AppStoreScreen
     close
     0x46D
    net_rim_bb_appworld_lib-15(51781A84)
     DetailsView
     close
     0x1714
    net_rim_bb_appworld_lib-15(51781A84)
     DetailsView$5
     run
     0x1E03
    net_rim_cldc-8(4D412FA6)
     Application
     dispatchInvokeLater
     0x1A87
    net_rim_cldc-8(4D412FA6)
     Application
     <private>
     0x28A0
    net_rim_cldc-8(4D412FA6)
     Application
     processNextMessage
     0x1AEF
    net_rim_cldc-8(4D412FA6)
     Application
     enterEventDispatcher
     0x1A2C
    net_rim_bb_appworld_lib-6(51781A84)
     ContentStore
     startAppWorld
     0x5325
    net_rim_bb_appworld(51781A94)
     BlackBerryAppWorldMain
     main
     0x71
guid:0xDAA64EAD4E49C5D5 timeSmiley SadUTC) Fri May 31 20:59:20 2013  severity:0 type:2 app:net.rim.usb.pwd data&colon;ChDs
guid:0xDAA64EAD4E49C5D5 timeSmiley SadUTC) Fri May 31 20:59:20 2013  severity:0 type:2 app:net.rim.usb.pwd data&colon;CbCn
guid:0x5D41D4729582C2DA timeSmiley SadUTC) Fri May 31 20:59:20 2013  severity:0 type:2 app:RootRegister data&colon;usbConnectionStateChange:8
guid:0x647E5DBBC34B5549 timeSmiley SadUTC) Fri May 31 20:59:20 2013  severity:0 type:2 app:net.rim.clock data&colon;-CHG
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Fri May 31 20:59:21 2013  severity:0 type:2 app:net.rim.ippp data&colon;TXst   190
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Fri May 31 20:59:21 2013  severity:0 type:2 app:net.rim.ippp data&colon;TXst   190
guid:0xDAA64EAD4E49C5D5 timeSmiley SadUTC) Fri May 31 20:59:21 2013  severity:0 type:2 app:net.rim.usb.pwd data&colon;CbDs
guid:0x5D41D4729582C2DA timeSmiley SadUTC) Fri May 31 20:59:21 2013  severity:0 type:2 app:RootRegister data&colon;usbConnectionStateChange:4
guid:0x5D41D4729582C2DA timeSmiley SadUTC) Fri May 31 20:59:21 2013  severity:0 type:2 app:RootRegister data&colon;Switch Mode to MS on disconnect
guid:0x5D41D4729582C2DA timeSmiley SadUTC) Fri May 31 20:59:21 2013  severity:0 type:2 app:RootRegister data&colon;IOException switching enum mode
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Fri May 31 20:59:22 2013  severity:0 type:2 app:net.rim.ippp data&colon;RXCd   777
guid:0x5D41D4729582C2DA timeSmiley SadUTC) Fri May 31 20:59:22 2013  severity:0 type:2 app:RootRegister data&colon;fs 4 already mounted as system/
guid:0x5D41D4729582C2DA timeSmiley SadUTC) Fri May 31 20:59:22 2013  severity:0 type:2 app:RootRegister data&colon;fs 2 already mounted as store/
guid:0x58E77B27EE5F2CFD timeSmiley SadUTC) Fri May 31 20:59:22 2013  severity:0 type:2 app:net.rim.ippp data&colon;RXCd   715
guid:0x9C3CD62E3320B498 timeSmiley SadUTC) Fri May 31 20:59:24 2013  severity:1 type:3 app:Java Exception data&colon;
    IllegalStateException
    close() called when not displayed.
    net_rim_cldc-12(4D412FA6)
     Screen
     close
     0x6B6F
    net_rim_bb_appworld_lib-14(51781A84)
     AppStoreScreen
     close
     0x46D
    net_rim_bb_appworld_lib-15(51781A84)
     DetailsView
     close
     0x1714
    net_rim_bb_appworld_lib-15(51781A84)
     DetailsView$5
     run
     0x1E03
    net_rim_cldc-8(4D412FA6)
     Application
     dispatchInvokeLater
     0x1A87
    net_rim_cldc-8(4D412FA6)
     Application
     <private>
     0x28A0
    net_rim_cldc-8(4D412FA6)
     Application
     processNextMessage
     0x1AEF
    net_rim_cldc-9(4D412FA6)
     ModalEventThread
     run
     0xC2A2
guid:0x9C3CD62E3320B498 timeSmiley SadUTC) Fri May 31 20:59:25 2013  severity:1 type:3 app:Java Exception data&colon;
    IllegalStateException
    close() called when not displayed.
    net_rim_cldc-12(4D412FA6)
     Screen
     close
     0x6B6F
    net_rim_bb_appworld_lib-14(51781A84)
     AppStoreScreen
     close
     0x46D
    net_rim_bb_appworld_lib-15(51781A84)
     DetailsView
     close
     0x1714
    net_rim_bb_appworld_lib-15(51781A84)
     DetailsView$5
     run
     0x1E03
    net_rim_cldc-8(4D412FA6)
     Application
     dispatchInvokeLater
     0x1A87
    net_rim_cldc-8(4D412FA6)
     Application
     <private>
     0x28A0
    net_rim_cldc-8(4D412FA6)
     Application
     processNextMessage
     0x1AEF
    net_rim_cldc-8(4D412FA6)
     Application
     enterEventDispatcher
     0x1A2C
    net_rim_bb_appworld_lib-6(51781A84)
     ContentStore
     startAppWorld
     0x5325
    net_rim_bb_appworld(51781A94)
     BlackBerryAppWorldMain
     main
     0x71

.
.
.

guid:0x9C3CD62E3320B498 timeSmiley SadUTC) Fri May 31 21:14:56 2013  severity:1 type:3 app:Java Exception data&colon;
    IllegalMonitorStateException
    No detail message
    net_rim_bb_appworld_lib-15(51781A84)
     PurchaseView$PurchaseMochaScreen$2
     documentLoaded
     0x7689
    net_rim_bb_browser_field2_api(4D4134AF)
     BrowserField
     signalDocumentLoaded
     0xA7A
    net_rim_bb_browser_field2_api(4D4134AF)
     RenderingApplicationImpl
     eventOccurred
     0x2E4F
    net_rim_bb_browser_mango_wrapper(4D4134AB)
     BrowserContentImpl
     fireAppEvent
     0x1290
    net_rim_bb_browser_mango_wrapper(4D4134AB)
     BrowserContentImpl$WrapperWindowListener
     documentReady
     0x264E
    net_rim_bb_browser_mango-12(4D413496)
     BrowzrWindow
     fireDocumentReady
     0x573E
    net_rim_bb_browser_mango-12(4D413496)
     BrowzrWindow$HtmlEventThread
     run
     0x5B53
    net_rim_bb_apps_framework-4(4D413928)
     Job
     go
     0x5C5F
    net_rim_bb_apps_framework-4(4D413928)
     Worker
     joinableRun
     0x766F
    net_rim_cldc-26(4D412FA6)
     InterruptibleThread
     run
     0x1FC3

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: IllegalStateException and IllegalMonitorStateException in BlackBerry World making purchases: both download & pmt svc

Based on your description (errors occurring before even using the Payment Service) this appears to be an issue with the BlackBerry World client as opposed to the Payment Service. I would recommend posting to the BlackBerry World board:

http://supportforums.blackberry.com/t5/BlackBerry-World/bd-p/blackberryworld

Garett
@garettBeuk
--
Goodbye everybody!