0 Replies Latest reply on Feb 28, 2015 3:26 AM by Nedzad Imamovic

    database full reset

    Nedzad Imamovic


      we have:


      def do_reset
      Rhom::Rhom.database_full_reset
      Rho::RhoConnectClient.doSync
      @msg = "Database has been reset."
      redirect :action => :index, :query => {:msg => @msg}
      end


      where we are having issue with:


      Rhom::Rhom.database_full_reset


      and getting error:
      Server Error
      Error: could not prepare statement: 21; Message: out of memory
      Trace:
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/commonAPI/coreapi/RhoDatabaseApi.rb:174:in `execute'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/commonAPI/coreapi/RhoDatabaseApi.rb:174:in `_execute_sql'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/commonAPI/coreapi/RhoDatabaseApi.rb:133:in `executeSql'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/framework/rhom/rhom.rb:211:in `block in database_full_reset'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/framework/rhom/rhom.rb:207:in `each'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/framework/rhom/rhom.rb:207:in `database_full_reset'
      C:/Users/Senad/workspace/InfoCare/app/Settings/settings_controller.rb:69:in `do_reset'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/framework/rho/rhocontroller.rb:101:in `serve'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/framework/rho/rhoapplication.rb:217:in `serve'
      C:/MotorolaRhoMobileSuite5.0.2/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.2/lib/framework/rho/rho.rb:836:in `serve'

      Got stuck here since we don't know whether this is issue within Rhomobile ?


      Thank you,

        Damir Imamovic