After deploying worklight adapter onto production server, when adapter makes a call to java code from javascript I get an error:
rocedure invocation error. Ecma Error: TypeError: Cannot call property updateProposal in object [JavaPackage com.idit.smartphone.managers.ProposalManager]. It is not a function, it is "object". (IDITBackend-impl.js#119)
I have tried calling a test function in a class without parameters and it's still not working my class looks like
package com.idit.smartphone.managers;
public class ProposalManager {
public static String test(){
return "Successss";
}
}
and the call is:
function finishTask(policyExtNum, answers, closeUnderwriting){
WL.Logger.info("Service finishTask called.");
var proposal = getProposalForUpdate(policyExtNum);
WL.Logger.info("finishTask got proposal");
var updatedProposal = com.idit.smartphone.managers.ProposalManager.test();
var result = sendProposalForUpdate(updatedProposal);
WL.Logger.info("finishTask updated proposal");
return result;
}
- I'm using the latest version of worklight that was published yesterday. 6.0.0.20130917-1749 deployed on tomcat 6
- It works on worklight studio, the problem only when I upload the adapter to tomcat
- I'd tried all the solutions to other question like mine in this forum