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

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -