ibm mobilefirst - Ecma Error: TypeError: Cannot call property -
i have written java code in adapter in worklight project. when m trying call java method, getting error saying
"responseid":"6","errors": {ecma error: typeerror: cannot call property downloadfile in object javapackage java.classes.fileioplugin]. not function, \"object\".}
i have followed procedure stated in following link. using java in adapters
this project structure. there wrong structure or should add more this?
this how trying call java non-static method in adapter-impl.js
function downloadfile() { var fileinstance = new com.worklight.javacode.fileioplugin(); return { result: fileinstance.downloadfile(); };
}
we have identified possible solution this.
- change java compiler level 1.6 default jre 1.6:
Comments
Post a Comment