0 Replies Latest reply on Feb 8, 2013 9:06 AM by Graham Bird

    Error on calling Rhom::Rhom.database_full_reset: App error 'execute_sql' for nil:NilClass

    Graham Bird

      I have put together an application but I am seeing the error below when calling "database_full_reset".

       

      I 02/08/2013 16:56:40:089 00001670              APP| App error: undefined method `execute_sql' for nil:NilClass

      C:/MotorolaRhoMobileSuite2.2.1.12/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.5.1.12/lib/framework/rhom/rhom.rb:179:in `block in database_full_reset'

      C:/MotorolaRhoMobileSuite2.2.1.12/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.5.1.12/lib/framework/rhom/rhom.rb:175:in `each'

      C:/MotorolaRhoMobileSuite2.2.1.12/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.5.1.12/lib/framework/rhom/rhom.rb:175:in `database_full_reset'

      C:/Users/Graham.Bird.TALECOM/Documents/_Work/RhoMobile/Learning PTS/app/Settings/controller.rb:78:in `do_reset'

      C:/MotorolaRhoMobileSuite2.2.1.12/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.5.1.12/lib/framework/rho/rhocontroller.rb:104:in `serve'

      C:/MotorolaRhoMobileSuite2.2.1.12/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.5.1.12/lib/framework/rho/rhoapplication.rb:248:in `serve'

      C:/MotorolaRhoMobileSuite2.2.1.12/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.5.1.12/lib/framework/rho/rho.rb:883:in `serve'

       

      The application has both local and remote SourceAdapters and is able to synchronise through SyncEngine.dosync both before and after attempting the reset above.

      The call does delete the data from both the sqlite databases on the emulator but throws the exception as noted.

       

      The only way I have managed to get around this issue is to put a Rescue around the call but I am uncertain where to look to try and isolate the issue.

      I have already tried clearing out the emulator image but this is a consistently reproducable issue on the version I have.

       

      Any assistance in getting to the bottom of the issue would be greatly appreciated.

       

      Kind regards,

      Graham Bird.