04-30-2009 02:03 PM
I am testing on a pair of Bolds running 126.96.36.199
I'm trying to install a SYSTEM level ApplicationMenuItem into my app, but it keeps throwing a java.lang.Error at runtime with the message "null". The problem goes away if I manually set "Organizer Data" to Allow (in addition to Cross Application Communication being set to Allow). However, on the second device I set Organizer Data to Deny, and the application menu item is installed without a problem.
This is very bizzare behaviour that I really cannot figure out. I'd love to here any else's insights into the problem. Following is the code:
ApplicationMenuItem m_pMenuItem = null;
m_pMenuItem = new SnapshotMenuItem();
ApplicationMenuItemRepository pRepo =
System.out.println(m_pMenuItem.toString()); // correctly prints the menu item name
catch (final ControlledAccessException e)
m_pMenuItem = null;
catch (final Throwable e)
System.out.println(e.toString() + " " + e.getMessage());
This code will print the name of the application menu item followed by a new line containing "java.lang.Error null"
04-30-2009 04:29 PM - edited 04-30-2009 05:26 PM
05-20-2009 05:58 PM
It would be nice to know if this is a known issue. Asking users for "Organizer permission" to add an application menu item seems pretty suspicious.