Facing the below issue when trying to invoke java code from javascript adapters with Mobilefirst 8.0.
Sample code from the below link is used for testing.
https://github.com/MobileFirst-Platform-Developer-Center/Adapters/tree/release80
com.ibm.mfp.server.js.adapter.internal.JavascriptManagerImpl E FWLST0904E: Exception was thrown while invoking procedure: subtractTwoIntegers in adapter: UsingJavaInJavaScriptAdapters org.mozilla.javascript.EcmaError: TypeError: [JavaPackage com.sample.customcode.Calculator] is not a function, it is object. (UsingJavaInJavaScriptAdapters-impl.js#24) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3951) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3929) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3962) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3981) at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4036) at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4024) at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2502)