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
ekke
Posts: 1,509
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone
Accepted Solution

suddenly apps dont run (error starting ...class net.rim.device.api.ui.manager not found)

suddenly my apps don't run anymore

always getting "error starting XXXX: Class 'net.rim.device.api.ui.manager' not found

 

all compiles well

 

deleted all my cod, jar, ... from simulator directory

 

clean all projects

 

nothing helps

 

starting a demo app works

 

my apps have dependencies to some libraries

 

really wondering where to look

 

any ideas ?

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
YamilBracho
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: suddenly apps dont run (error starting ...class net.rim.device.api.ui.manager not found)

It seems that your blackberry installation is corrupted. Reinstall it

Please use plain text.
Developer
ekke
Posts: 1,509
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: suddenly apps dont run (error starting ...class net.rim.device.api.ui.manager not found)

just tried importing all projects into a new workspace

also doesnt work

 

so you mean I should really install eclipse + rim plugin again ? 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
ekke
Posts: 1,509
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: suddenly apps dont run (error starting ...class net.rim.device.api.ui.manager not found)

dont think its the installation

 

copied workspace back from a backup some hours ago

and using this workspace all works as expected

 

so - do I have reached any limits again ?

 

I know about the max size of app-code and resources

 

...added some images and changed some code last hours - so what could be the reason  that it suddenly fails ?

 

will try to do it step-by-step tomorrow again :smileysad:

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
ekke
Posts: 1,509
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: suddenly apps dont run (error starting ...class net.rim.device.api.ui.manager not found)

reason found: resource size of one library project was near 8 MB

 

one of my libraries (where backgrounds of my navigator screens are stored as png resources) becomes a size of around 7.5 MB

I know that 8 MB minus some overhead is the maximum size allowed

(thats the reason why I'm using some library projects)

 

I already learned the hard way that a message like

 

INTERNAL NullPointer means 'application or resource size too large'

 

this happens last months while trying to PACKAGE an application where the size limits (max 8MB app size + max 8 MB resource size) are reached

 

but this time there was no error while packaging - my library projects and the app with dependencies to these libraries compile well and packaging was without any reported error

 

this time it happens while RUNNING the app and an error like 'class net.rim....ui.Manager not found' isn't very intuitive to think that the resource size of one of your library projects is too large

 

I don't want to repeat the discussion why such limits exist on modern smartphones (don't have such limits with Android or iPhone), but ...

 

PLEASE PLEASE RIM

 

- why not providing a meaningful message while packaging like 'Attention: project XXX resource size (or app size) is near maximum of 8MB - please restructure your projects' instead of 'Class not found while running

 

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Contributor
anilsharmay
Posts: 11
Registered: ‎03-23-2011
My Device: BlackBerry Bold
My Carrier: Verizon

Re: suddenly apps dont run (error starting ...class net.rim.device.api.ui.manager not found)

Ekke,

 

Thanks a million! You saved me extremely critical time!

 

I have my codebase imported from SVN repository. I did not realize I have all the ".svn" files were being included in the workspace. 

 

All was working fine till the JAR size crossed the threshold you have mentioned. I now added a resource filter on my projects to exclude all files in ".svn" folder. And things started working again!

 

Lost an extremely important day at work over this hidden trap!

 

Thanks a lot!

 

Kudos to RIM guys for making developers' lives MISERABLE! Nobody can beat you. You guys rock! :smileyhappy:))

Please use plain text.
Visitor
mehwoot
Posts: 1
Registered: ‎05-22-2013
My Device: 9700
My Carrier: Generic

Re: suddenly apps dont run (error starting ...class net.rim.device.api.ui.manager not found)

Oh my god, I spent 2 days trying to figure out this problem... thank you so much. I made an account just to say that.
Please use plain text.