IBM工作灯6.2 - 在StoragePlugin错误 [英] IBM Worklight 6.2 - error on StoragePlugin

查看:195
本文介绍了IBM工作灯6.2 - 在StoragePlugin错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从工作灯6.1.0.1升级到6.2,从那时起,我的应用程序停止成功加载JSONStore。

I upgraded from Worklight 6.1.0.1 to 6.2 and since then, my app stopped loading JSONStore successfully.

它说,它无法找到类StoragePlugin,虽然类是居然还有在工作灯-的android.jar

It says it can't find the class StoragePlugin, although the class is actually there in the worklight-android.jar

这也是在config.xml文件中声明:

It is also declared in the config.xml file:

<feature name="StoragePlugin">
    <param name="android-package" value="com.worklight.androidgap.plugin.storage.StoragePlugin"/>
</feature>

这就是logcat的输出,当我一个Android设备上运行:

That's the logcat output when I run it on a android device:

07-01 20:58:48.851: D/NONE(4379): initializing JSONStore...
07-01 20:58:49.671: D/SoftKeyboardDetect(4379): Ignore this event
07-01 20:58:49.765: W/System.err(4379): java.lang.ClassNotFoundException: com.worklight.androidgap.plugin.storage.StoragePlugin
07-01 20:58:49.765: W/System.err(4379):     at java.lang.Class.classForName(Native Method)
07-01 20:58:49.765: W/System.err(4379):     at java.lang.Class.forName(Class.java:217)
07-01 20:58:49.765: W/System.err(4379):     at java.lang.Class.forName(Class.java:172)
07-01 20:58:49.765: W/System.err(4379):     at org.apache.cordova.PluginEntry.getClassByName(PluginEntry.java:117)
07-01 20:58:49.765: W/System.err(4379):     at org.apache.cordova.PluginEntry.createPlugin(PluginEntry.java:93)
07-01 20:58:49.765: W/System.err(4379):     at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:278)
07-01 20:58:49.765: W/System.err(4379):     at org.apache.cordova.PluginManager.execHelper(PluginManager.java:232)
07-01 20:58:49.765: W/System.err(4379):     at org.apache.cordova.PluginManager.exec(PluginManager.java:227)
07-01 20:58:49.765: W/System.err(4379):     at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
07-01 20:58:49.765: W/System.err(4379):     at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:229)
07-01 20:58:49.765: W/System.err(4379):     at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:646)
07-01 20:58:49.765: W/System.err(4379):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-01 20:58:49.765: W/System.err(4379):     at android.os.Looper.loop(Looper.java:137)
07-01 20:58:49.765: W/System.err(4379):     at android.app.ActivityThread.main(ActivityThread.java:4514)
07-01 20:58:49.765: W/System.err(4379):     at java.lang.reflect.Method.invokeNative(Native Method)
07-01 20:58:49.765: W/System.err(4379):     at java.lang.reflect.Method.invoke(Method.java:511)
07-01 20:58:49.765: W/System.err(4379):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
07-01 20:58:49.773: W/System.err(4379):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
07-01 20:58:49.773: W/System.err(4379):     at dalvik.system.NativeStart.main(Native Method)
07-01 20:58:49.773: W/System.err(4379): Caused by: java.lang.NoClassDefFoundError: com/worklight/androidgap/plugin/storage/StoragePlugin
07-01 20:58:49.773: W/System.err(4379):     ... 19 more
07-01 20:58:49.773: W/System.err(4379): Caused by: java.lang.ClassNotFoundException: com.worklight.androidgap.plugin.storage.StoragePlugin
07-01 20:58:49.773: W/System.err(4379):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
07-01 20:58:49.773: W/System.err(4379):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-01 20:58:49.773: W/System.err(4379):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-01 20:58:49.773: W/System.err(4379):     ... 19 more
07-01 20:58:49.773: I/System.out(4379): Error adding plugin com.worklight.androidgap.plugin.storage.StoragePlugin.
07-01 20:58:49.781: D/PluginManager(4379): exec() call to unknown plugin: StoragePlugin
07-01 20:58:49.781: D/SoftKeyboardDetect(4379): Ignore this event
07-01 20:58:49.882: D/NONE(4379): JSONStore initialize FAIL
07-01 20:58:49.898: D/NONE(4379): {
07-01 20:58:49.898: D/NONE(4379):  "src": "initCollection",
07-01 20:58:49.898: D/NONE(4379):  "err": -11,
07-01 20:58:49.898: D/NONE(4379):  "msg": "OPERATION_FAILED_ON_SPECIFIC_DOCUMENT",
07-01 20:58:49.898: D/NONE(4379):  "col": "categories",
07-01 20:58:49.898: D/NONE(4379):  "usr": "jsonstore",
07-01 20:58:49.898: D/NONE(4379):  "doc": "Class not found",
07-01 20:58:49.898: D/NONE(4379):  "res": {}
07-01 20:58:49.898: D/NONE(4379): }
07-01 20:58:49.937: D/dalvikvm(4379): GC_CONCURRENT freed 356K, 12% free 8356K/9479K, paused 2ms+4ms
07-01 21:00:49.687: D/CordovaActivity(4379): Paused the application!
07-01 21:00:49.687: D/CordovaWebView(4379): Handle the pause

什么可能会导致此任何暗示?

Any hint about what may be causing this?

推荐答案

我们刚刚证实,这是一个实际的缺陷,我们将修复它。快速修复是com.worklight.androidgap.plugin.storage.StoragePlugin改变com.worklight.androidgap.plugin.StoragePlugin(删除。存储部分),它会重新工作。

We just verified that this is an actual defect, we will be fixing it. The quick fix is to change com.worklight.androidgap.plugin.storage.StoragePlugin to com.worklight.androidgap.plugin.StoragePlugin (remove the ".storage." part) and it will work again.

这篇关于IBM工作灯6.2 - 在StoragePlugin错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆