Reputation: 7
We are trying to push the data from IBM worklight application using JSONStore functionality.
We are working on IBM Worklight V5.0.6 environment.
Steps to reproduce:
At this stage we are getting the error:
JsonStoreWizard.InvokeProcedurePage
got exception invoking adapter
Because of this, we are not able to create a new JSONStore instance.
What is the reason for getting this error?
Upvotes: 0
Views: 576
Reputation: 5111
After:
Accept to migrate the project to latest Worklight version
Expand the adapters
folder > Right Click on the user
folder > Select deploy Worklight Adapter and check it was deployed correctly in the console.
You may want to test the adapter in isolation too. "Invoke Adapter Procedure" from Eclipse.
There's no need to use the JSONStore Wizard to work with that sample, if I recall correctly. Just deploy the adapter, build all and deploy the app, open the Android or iPhone Worklight Application, play with the UI and read the source code.
I also recommend reading the JSONStore documentation especially the part under Adapter. Take a look at: WL.JSONStore, init, push, load and count. The examples should help you get data and push it back to your adapter.
If you run into issues, this StackOverflow answer can help you debug and provide more information if you ask JSONStore questions.
What is the reason for getting this error?
The JsonStoreWizard.InvokeProcedurePage
error seems to indicate invoking the adapter failed. Leave a comment if you're still unable to push data back and I'll probably update this answer.
Upvotes: 2