08-04-2010 06:15 PM
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
starting a demo app works
my apps have dependencies to some libraries
really wondering where to look
any ideas ?
Solved! Go to Solution.
08-04-2010 07:07 PM
just tried importing all projects into a new workspace
also doesnt work
so you mean I should really install eclipse + rim plugin again ?
08-04-2010 07:30 PM
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
08-05-2010 06:36 AM
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
10-11-2011 03:01 PM
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! ))
05-22-2013 03:24 AM