admin管理员组文章数量:1419624
I receive this error when calling a Java Applet method from GWT JavaScript client code.
The really strange thing is, this error only occurs when I create a certain object in the said applet method. Specifically, I have a class I created in the GWT "shared" folder, which serializes a class into a JSON string from an instance of this class within the client javascript. The Java applet also instanciates this class in java space, within the said method. When I don't attempt to instanciate this class within the applet method, it runs and returns no problem. Shouldn't the java instanciation be totally independant of GWT? Also, I wonder why i'm not getting a stack trace in my java console if this exception is occurring within java.
Not sure if this is relevant, but I'm using the GWTAI project for Applet->JavaScript callbacks
TIA for any responses,
Phaedrus
02:40:22.848 [ERROR] [u] Uncaught exception escaped .google.gwt.core.client.JavaScriptException: (Error): Error calling method on NPObject. stack: Error: Error calling method on NPObject. at [object Object]. (unknown source) at __gwt_jsInvoke (http://127.0.0.1:8888/u/hosted.html?u:76:35)
I receive this error when calling a Java Applet method from GWT JavaScript client code.
The really strange thing is, this error only occurs when I create a certain object in the said applet method. Specifically, I have a class I created in the GWT "shared" folder, which serializes a class into a JSON string from an instance of this class within the client javascript. The Java applet also instanciates this class in java space, within the said method. When I don't attempt to instanciate this class within the applet method, it runs and returns no problem. Shouldn't the java instanciation be totally independant of GWT? Also, I wonder why i'm not getting a stack trace in my java console if this exception is occurring within java.
Not sure if this is relevant, but I'm using the GWTAI project for Applet->JavaScript callbacks
TIA for any responses,
Phaedrus
02:40:22.848 [ERROR] [u] Uncaught exception escaped .google.gwt.core.client.JavaScriptException: (Error): Error calling method on NPObject. stack: Error: Error calling method on NPObject. at [object Object]. (unknown source) at __gwt_jsInvoke (http://127.0.0.1:8888/u/hosted.html?u:76:35)
Share Improve this question asked Dec 16, 2010 at 8:03 PhaedrusPhaedrus 4977 silver badges15 bronze badges2 Answers
Reset to default 4I don't know if you've e to a solution on that one but bear in mind that GWT plugin in Chrome returns that kind of errors running the debug mode IF the object you're trying to deserialize/"javascript-ify" is too big. Apparently it has to do with some kind of stack size somehow...
I've noticed that it works great on Safari for mac and of course when code is piled... how annoying! I'm testing everything on a mac safari now since it's the only webkit-based plugin we have at the moment.
Hope that helps and good luck!
To solve this issue, I'll give you the following solution. This worked for me.
Go to Chrome's "Settings" and then choose "Extensions" or you can use the follow url link to access Extensions directly "chrome://extensions/" . There deselect "Developer Mode".
My version of Chrome is 34.
本文标签:
版权声明:本文标题:javascript - Error calling method on NPObject when calling Java Applet Method from GWT Client code - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745314994a2653110.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论