This is a migrated thread and some comments may be shown as answers.

[Solved] Plugin marketplace and/or SQLite plugin broken

5 Answers 176 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adam
Top achievements
Rank 1
Adam asked on 20 May 2015, 07:14 PM

Hi there,

 

Upon choosing to include the Brodysoft SQLite plugin from the marketplace through the Visual Studio AppBuilder extension I get the following error:

 

[2015-05-20 15:07:41.751] Log (Exception,High): System.ArgumentException: Plugin with given ID was not found in marketplace.
 
Server stack trace:
   at OperationExecutorExtensions.<RequestAsyncCore>d__11`1.MoveNext()
 
Exception rethrown at [0]:
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at OperationExecutorExtensions.<RequestAndParseAsync>d__1f`2.MoveNext()
 
Exception rethrown at [1]:
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Telerik.BlackDragon.Client.Modules.Cordova.ViewModels.PluginViewModelProvider.<SetMarketplacePluginVariables>d__16.MoveNext()
[2015-05-20 15:07:42.423] Log (Exception,High): System.ArgumentException: Plugin with given ID was not found in marketplace.
 
Server stack trace:
   at OperationExecutorExtensions.<RequestAsyncCore>d__11`1.MoveNext()
 
Exception rethrown at [0]:
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at OperationExecutorExtensions.<RequestAndParseAsync>d__1f`2.MoveNext()
 
Exception rethrown at [1]:
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Telerik.BlackDragon.Client.Modules.Cordova.ViewModels.PluginViewModelProvider.<SetMarketplacePluginVariables>d__16.MoveNext()
[2015-05-20 15:07:43.087] Log (Exception,High): System.ArgumentException: Plugin with given ID was not found in marketplace.
 
Server stack trace:
   at OperationExecutorExtensions.<RequestAsyncCore>d__11`1.MoveNext()
 
Exception rethrown at [0]:
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at OperationExecutorExtensions.<RequestAndParseAsync>d__1f`2.MoveNext()
 
Exception rethrown at [1]:
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Telerik.BlackDragon.Client.Modules.Cordova.ViewModels.PluginViewModelProvider.<SetMarketplacePluginVariables>d__16.MoveNext()

Am I doing something wrong?

 Thanks!

Adam.g

5 Answers, 1 is accepted

Sort by
0
Ruud
Top achievements
Rank 1
answered on 21 May 2015, 09:51 AM

Hi Adam, 

Few, I thought I was the only one.. I have exactly the same problem here; so I though it might be handy to post it here as well.

I have tried adding different versions of the plugin (via the Manage Packages window) and even Cordova; but they all give the "Plugin with given ID was not found " errors. This issue was not there last week, not sure what happened. I hope the next release of AppBuilder which they just announced will solve this.

For this release, funny thing, AppBuilder does not seem to mind the error and will act like the plugin is enabled. But if I try to build a .apk file (run => build => Android => App Package) it fails with the following error:

=============== error message=========================================
[2015-05-21 11:42:58.228] Log (Info,None): Project "[removed].tmp.proj" (default targets):
 android Build Tooling revision 2015.5.19.3r
 Warning: /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/node_modules/q/q.js:126
                    throw e;
                          ^
Error: Cannot find plugin information for com.brodysoft.sqlitePlugin
    at /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/lib/plugin-marketplace-cache.js:162:11
    at _fulfilled (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/node_modules/q/q.js:749:13)
    at /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/node_modules/q/q.js:557:44
    at flush (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:419:13)
 Error: /home/builder/BpcTooling/BuildScripts/node_build/node_modules/child-process-promise/node_modules/q/q.js:126
                    throw e;
                          ^
"/home/builder/BpcTooling/Cordova3/node_modules/.bin/install-plugins-3 --project /tmp/builds/rfvdM6SY076Vxphzf2/app/ --core-plugins-source /home/builder/BpcTooling/Cordova3/3.7.0/CorePlugins/android --platform android --plugman /home/builder/BpcTooling/Cordova3/3.7.0/node_modules/.bin/plugman --marketplace-url https://plugins.telerik.com/api/plugins --incompatible-plugins '' --livesync /home/builder/BpcTooling/Cordova3/3.7.0/com.telerik.LiveSync --livesync-token [removed]--livesync-host https://app.icenium.com/appbuilder" failed with code 8
 Error: 'Build failed with error code 8'
Done building project "" -- FAILED.
=============== end error message=========================================

I certainly hope Telerik is able to help us out here.. I need to ship this app for an upcoming demo..

Regards,
Ruud

0
Tina Stancheva
Telerik team
answered on 22 May 2015, 09:17 AM
Hi guys,

We are aware of this issue - it is actually a bug in the latest AppBuilder version. We will introduce a fix with the upcoming 2.10 release. Until then, as a workaround you can add the plugin manually under the Plugins folder. You can follow these steps to do that:
  1. Open the project's Properties page, go to the Plugins tab and disable the SQLite plugin there
  2. Save the Properties page. This will refresh its state and will remove the invalid entry of the SQLite plugin in your .abproject file.
  3. Build the project to make sure there are no errors. If there are try going back to the Plugins list in the project's properties and enable the plugin, click save, disable it again, save the changes once more.
  4. Download the SQLite plugin from this repository as an archive.
  5. In your project (inside AppBuilder) right click on the Plugins folder in the Project Navigator and select Import Plugin.
  6. Select the downloaded plugin archive from step 4 and click Open.Try building the project again - you should now have no issues and be able to use the plugin's API.
Please accept my apology for this inconvenience and let me know if the above steps don't work or you have more questions.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Ruud
Top achievements
Rank 1
answered on 26 May 2015, 06:57 PM

Hi Tina,

 Again, I'm impressed and very happy with this fast and accurate responses. I followed the instructions and all is well now (both in AppBuilder and the VS Extensions for Appbuilder). Thanks!!

Regards,

Ruud

0
CUNEYT
Top achievements
Rank 1
answered on 13 Jan 2016, 07:29 PM

Hi Tina,
I've been trying to use sql plugin for a few days but i get 'Uncaught TypeError: Cannot read property 'openDatabase' of undefined at js/index.js' error. It looks i cannot configure sqlite pluging properly. I use visual studio with appbuilder extension.

I create a new application. (new cordova application, blank (javascript))

Right click on 'Plugins', import sqlite-1-0-6.zip
Add following code into device ready event.
when I run it. I see 'devise is ready' message on simulator screen. Then error message on the console.

Do i need to do anything else to use sqlite plugin? I would really appreciate if you could help me.

 
     onDeviceReady: function () {
        alert('devise is ready');
        var db = window.sqlitePlugin.openDatabase(
            {
                name: "demo.db",
                location: 1
            },
            function (msg) {
                alert("success: " + msg);
            },
            function (msg) {
                alert("errorrr: " + msg);
            }
        );
    },

0
Tina Stancheva
Telerik team
answered on 18 Jan 2016, 09:21 AM
Hi Cüneyt,

The SQLite plugin doesn't work inside the device simulator. If you want to simulate database operations in the Telerik Platform Device Simulator, then you would need to use the native SQLite framework:
if (window.navigator.simulator === true) {
    // For debugin in simulator fallback to native SQL Lite
    console.log("Use built in SQL Lite");
    app.db = window.openDatabase("demo.db", "1.0", "Cordova Demo", 200000);
} else
{
    var db = window.sqlitePlugin.openDatabase({
            name: "demo.db",
            location: 1
        },
        function (msg) {
            alert("success: " + msg);
        },
        function (msg) {
            alert("errorrr: " + msg);
        }
    );
}

You can find the list of plugins supported in the Device Simulator in our documentation.

I would also recommend that instead of importing the SQLite plugin as a custom plugin, you install it from the Verified Plugin Marketplace as described here. Adding the plugin as a custom package under the Plugins node in the Project Navigator is useful only if you'll apply changes in the plugin's default implementation.  

Let me know if you need more information. Also, note that you can use the SQLite sample app as a reference guide as to how to utilize the basic API of the plugin in Telerik Platform.

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Report a bug
Asked by
Adam
Top achievements
Rank 1
Answers by
Ruud
Top achievements
Rank 1
Tina Stancheva
Telerik team
CUNEYT
Top achievements
Rank 1
Share this question
or