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?

enter image description here

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:

compiler level jre version


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -