5 Replies Latest reply on Jan 10, 2013 9:35 AM by Mike Campbell

    RhoElements Tutorial error - const_missing: Scanner

      Following the exact steps of the RhoElements Tutorial running on the MC9190 and in the RhoSimulator,

      when pressing the "Scan a Barcode" option, I get “Error Loading Page” and the Rho Console shows:

       

         I 01/09/2013 11:43:49:000 8ceca21e          HttpServer| Process URI: '/app/Inventory/scanPage'

         I 01/09/2013 11:43:49:000 8ceca21e                  APP| RHO serve: /app/Inventory/scanPage

         I 01/09/2013 11:43:49:000 8ceca21e                  APP| const_missing: Scanner  

         I 01/09/2013 11:43:49:000 8ceca21e                  APP| App error: uninitialized constant InventoryController::Scanner

      lib/rho/rho.rb:1383:in `const_missing'

         apps/app/Inventory/inventory_controller.rb:63:in `scanPage'

         lib/rho/rhocontroller.rb:104:in `serve'

         lib/rho/rhoapplication.rb:248:in `serve'

         lib/rho/rho.rb:883:in `serve'

         I 01/09/2013 11:43:49:000 8ceca21e          HttpServer| GC Start.

         I 01/09/2013 11:43:49:000 8ceca21e          HttpServer| GC End.

       

      I do not have DataWedge running or installed.

       

      My build.yml is:

        ---   sdkversion: 3.5.0

         name: InventoryManagement

         version: '1.0'

         vendor: rhomobile

         build: debug

         bbver: '4.6'

         applog: rholog.txt

         iphone:

           configuration: Release

          sdk: iphonesimulator5.0

          provisionprofile: ''

          codesignidentity: ''

           entitlements: ''

           BundleIdentifier: com.rhomobile.inventorymanagement

          BundleURLScheme: inventorymanagement

         wp:

           productid: 50e498f0-3c94-0130-f51a-00219b56c874

         symbian:

           uid: '0xe4301e93'

         android:

           version: '2.1'

         extensions:

         - json

         - another-extension

         app_type: rhoelements

         capabilities:

         - non_motorola_device

       

      It seems that it can't find the Scanner API???

      What am I missing?