Rhodes with BB simuIator and various issues
Working with rhodes (mobile application development framework written in ruby) you may need to develop a mobile app for Blackberry. This post will describe about the various thing we may need to remember while configuring the app for a BB device. Following link will give you the details of "how to buy and deploy your code in a BB device".
Here I will be primarily focusing on the development of a rhodes app and testing using a BB simulator.
2. Error
Reset Device Error code 102 in BB simulator
Lately my BB simulator is crashing with the error code as 102, every other day, maybe twice or thrice in a single day. It's so pathetic as the only way to get rid of the bug, is re-install the BB OS from the Blackberry site after uninstalling the version on your system.
There can be various reasons for the same
Error codes in BB
Here I will be primarily focusing on the development of a rhodes app and testing using a BB simulator.
- After installing rhodes, add the BB ver in the rhobuild.yml file (check the spaces anf the formatting in the rhobuild.yml.example file under the rhodes gem folder).
- Install BB JDE, not the simulators.
- Add the BB-JDE, Java-JDK in the PATH variable in Windows.
- Add the paths in the rhobuild.yml for the BB device version you are choosing. Remember the spacing as this is a yml file.
- The app name at the beginning og the yml file should correspond to the app name for which you want to run.
Below are some the common mistakes and errors we get while working with BB device.
1. Error
$use_sqlite : false
rake aborted!
undefined method `[]' for nil:NilClass
rake aborted!
undefined method `[]' for nil:NilClass
- check the version mentioned in the build.yml should match the version in the rhobuild.yml inside the rhodes gem folder
- check the entries of BB JDE and Java JDK in the PATH
- check the formatting in the rhobuild.yml
- run the command inside the rhodes app, set-rhodes-sdk
This should use the rhodes mentioned in your ENV variable, cross check in the build.yml.
2. Error
Reset Device Error code 102 in BB simulator
Lately my BB simulator is crashing with the error code as 102, every other day, maybe twice or thrice in a single day. It's so pathetic as the only way to get rid of the bug, is re-install the BB OS from the Blackberry site after uninstalling the version on your system.
There can be various reasons for the same
- corrupted file, Run the clean located somewhere inside C:\Program Files (x86)\Research In Motion\BlackBerry JDE 6.0.0\simulator
- Increase the RAM
- Remove any .dmp file and restart the BB simulator.
- Remove the app under the RHO folder, C:\Program Files (x86)\Research In Motion\BlackBerry JDE 6.0.0\simulator\sdcard\Rho\
- Run the command rake clean:bb before executing the rake run:bb
Error codes in BB
102 | Invalid code in filesystem |
The system checked the COD files in the device for modification and determined that a problem exists with one or more COD files.
If all loads fail, a build process error might occur (a problem exists with signing the COD files).
If a user action on the device resulted in this problem, the reset cycle is continuous because the code in the filesystem has been corrupted. The only recovery method is to wipe the device and restore a new system.
|
For details can refer to the following link
JVM reset code error
3. Error
"Cannot initiaIize Rho Framework" error, whien clicking on the downloaded app in my BB device.
Execute the clean.bat located within the C:\Research In Motion\simulator folder.
4. Error
Access violation error, while clicking on the app in a BB simulator.
JVM reset code error
3. Error
"Cannot initiaIize Rho Framework" error, whien clicking on the downloaded app in my BB device.
Execute the clean.bat located within the C:\Research In Motion\simulator folder.
4. Error
Access violation error, while clicking on the app in a BB simulator.
- Remove all the .dmp files within the RIM/BB_JDE/ folder
- run the clean.bat file
- close the RIM and the rhomobile app/target folders, if open
- open a new cmd
- run, rake clean:bb
- run rake run:bb
Comments