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
New Contributor
Posts: 6
Registered: ‎11-02-2011
My Device: Torch 9800
My Carrier: Vodafone
Accepted Solution

Blackberry Messenger Platform Problem --------- HELP ----------- "Access violation" when registering

[ Edited ]

Hi All,

 

I am simply just trying to create the BBMPlatformApplication class object as follows

and trying to register it :

 

 

private class BBMAppPlugin extends BBMPlatformApplication{
		public BBMAppPlugin(){
			super("5FBAD902-0E8C-81AC-E6FF-62D17AFD9BE6");
		}
	}

 

I create an object of this class and simply try to regisiter it using: 

 

 BBMAppPlugin bbmPlugin = new BBMAppPlugin();

platformContext = BBMPlatformManager.register(bbmPlugin);

 

 

 

But at the register meothod, the 9800 simulator , for 6.0.0 platform, simply hangs and gives an error dialog: 

 

Internal Error - BlackBerry 9800 Simulator
------------------------------------------
"Access violation writing to 0x2A5CFD9C"

 

After i dismiss the dialog, the simulator also dissapears from the screen. 

 

What is going on ? 

This is happening with all the sample codes as well like BBMSdkDemo from RIM.

Somebody HELPPPPPPP!!!!!! 

 

I am calling the register method inside another object like follows :

As soon as the runnable is called the error shows up:

 

/**
* Constructor.
*/
BBMHelper(){
BBMAppPlugin bbmPlugin = new BBMAppPlugin();
	// register the bbmPlugin
	UiApplication.getUiApplication().invokeLater(new Runnable(){
		public void run(){
			try {
				platformContext = BBMPlatformManager.register(bbmPlugin);
			}
			catch (ControlledAccessException e) {
				// The BBM platform has been disabled
			}				
			if (platformContext != null) {
				platformContextListener = new TheBBMPlatformContextListener();
				platformContext.setListener(platformContextListener);
				screenBBMInvite = new BBMInviteScreen(platformContext);
			}
		}
	});
}

 

 

This is the Debug output that I get  before the simulator crashes :

 

 

[0.0] 11/02 19:55:05.257 BBM FutureTask Execute: net.rim.device.apps.internal.qm.bbm.filetransfer.BBMFileT[0.0] ransferManager@bd3f718c
[0.0] FileIO:fileinfo start 8
[0.0] FileIO:info by name complete 8
[0.0] FileIO:fileinfo start 9
[0.0] FileIO:info by name complete 9
[0.0] FileIO:fileinfo start a
[0.0] FileIO:info by name complete a
[0.0] FileIO:fileinfo start b
[0.0] FileIO:info by name complete b
[0.0] FileIO:fileinfo start c
[0.0] FileIO:info by name complete c
[0.0] FileIO:fileinfo start d
[0.0] FileIO:info by name complete d
[0.0] FileIO:fileinfo start e
[0.0] FileIO:info by name complete e
[0.0] FileIO:fileinfo start f
[0.0] FileIO:info by name complete f
[0.0] FileIO:fileinfo start 10
[0.0] FileIO:info by name complete 10
[0.0] FileIO:fileinfo start 11
[0.0] FileIO:info by name complete 11
[0.0] FileIO:fileinfo start 12
[0.0] FileIO:info by name complete 12
[0.0] 11/02 19:55:09.875 BBM FutureTask Finish : net.rim.device.apps.internal.qm.bbm.filetransfer.BBMFileT[0.0] ransferManager@bd3f718c
[0.0] Starting scheduled tasks at: Wed Nov 02 19:55:12 America/New_York 2011
[0.0] FileIO:fileinfo start 13
[0.0] FileIO:info by name complete 13
[0.0] FileIO:fileinfo start 14
[0.0] FileIO:info by name complete 14
[0.0] FileIO:fileinfo start 15
[0.0] FileIO:info by name complete 15
[0.0] FileIO:fileinfo start 16
[0.0] FileIO:info by name complete 16
[0.0] FileIO:fileinfo start 17
[0.0] FileIO:info by name complete 17
[0.0] Completing scheduled tasks at: Wed Nov 02 19:55:12 America/New_York 2011
[0.0] Bridge Type: 7 PID: 4028 uninit

Highlighted
New Contributor
Posts: 6
Registered: ‎11-02-2011
My Device: Torch 9800
My Carrier: Vodafone

Re: Blackberry Messenger Platform Problem --------- HELP ----------- "Access violation" when registering

It turns out that there was an IllegalArgumentException in another part of my code.

But this code was okay.

And also i needed to upgrade the blackberry messenger from version 5.0 to 6.0 from teh blackberry app world.