I'm trying to run the Java in Worklight Adapters example from the worklightadapterproject
smaple project, but I am facing an error when trying to invoke a procedure:
{
"errors": [
"Ecma Error: TypeError: Cannot call property addTwoIntegers in object [JavaPackage com.worklight.customcode.Calculator1]. It is not a function, it is \"object\". (C%3A%5CWorklightLab%5Cworkspace%5CWorklightAdaptersProject%5Cadapters%5CCalculatorAdapter\/CalculatorAdapter-impl.js#9)"
],
"info": [
],
"isSuccessful": false,
"warnings": [
]
}
How do I resolve this?
I tried setting this by using the following configuration which didn't work: