alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

JSONRPC bug with hula? #44

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From gdwar...@gmail.com on August 09, 2009 20:38:47

What steps will reproduce the problem? Here ( http://pastebin.com/f7a40115 ) is a simple little program which just calls a remote function "echo" and puts the return value into the text of a label. Nothing special. (There may be extra baggage in the example because I widdled it down from another app.)

I would expect the problem could be reproduced by running any pyjamas app that does ajax requests using hulahop. What is the expected output? What do you see instead? A window opens and then a second later closes and I get a stack trace at the terminal. I would expect it to display my app. All of the examples that I have tried seem to work including kitchen sink and mail. I think this is a jsonrpc-specific bug. Unfortuantly, to me, the stack trace isn't overly helpful.

bash-4.0$ python Transactions.py engine hulahop importing hula /home/gdw/.themes/Dust Burnt/gtk-2.0/gtkrc:172: Unable to locate image file in pixmap_path: "toolbar_light.png" /home/gdw/.themes/Dust Burnt/gtk-2.0/gtkrc:174: Background image options specified without filename returning /home/gdw/.pyjd/prefs.js for key NS_APP_PREFS_50_FILE /usr/lib/xulrunner-1.9.1/python/xpcom/init.py:54: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.message = message loading 0.0 loading 0.0 loading 0.0 loading 0.0 loading 0.0 loading 0.0 loading 0.0 loading 0.0 loading 0.0 loading 0.142857142857 loading 0.285714285714 loading 0.428571428571 loading 0.571428571429 loading 0.714285714286 loading 0.857142857143 loading 0.75 loading 0.666666666667 loading 0.6 loading 0.545454545455 loading 0.545454545455 loading 0.5 loading 0.583333333333 loading 0.666666666667 loading 0.75 loading 0.833333333333 loading 0.916666666667 loading 0.846153846154 loading 0.846153846154 loading 0.923076923077 loading 1.0 loading 0.928571428571 loading 1.0 loading 0.933333333333 loading 0.933333333333 loading 0.875 loading 0.9375 loading 0.9375 loading 1.0 loading 0.941176470588 loading 0.941176470588 loading 1.0 loading 1.0 loaded set_main_frame <Browser object at 0x8ea3cd4 (hulahop+webview+WebView at 0x8f31018)> loading 1.0 URL HERE: http://127.0.0.1/../../default/service xmlHttp None None http://127.0.0.1/../../default/service {"params":[],"id":1,"method":"echo"} <pyjamas.JSONService.JSONResponseTextHandler instance at 0x8e78aec> ['QueryInterface', 'cmp', 'doc', 'eq', 'float', 'getattr', 'hash', 'init', 'int', 'long', 'module', 'neq', 'repr', 'setattr', 'str', 'unicode', '_build_all_supportedinterfaces', 'comobj', '_do_conversion', '_get_classinforepr', '_interfaceinfos', '_interfacenames', 'interfaces', '_name_to_interfaceiid', '_objectname', '_remember_interface_info', '_triedclassinfo', 'queryInterface'] <bound method _Interface.open of <XPCOM interface 'nsIXMLHttpRequest'>> ['call', 'class', 'cmp', 'delattr', 'doc', 'format', 'func', 'get', 'getattribute', 'hash', 'init', 'new', 'reduce', 'reduce_ex', 'repr', 'self', 'setattr', 'sizeof', 'str', 'subclasshook', 'im_class', 'im_func', 'im_self'] http://localhost/simpleJson/default/service Traceback (most recent call last): File "Transactions.py", line 40, in app.onModuleLoad() File "Transactions.py", line 16, in onModuleLoad self.remote.echo(self)
File "/usr/share/pyjamas/library/pyjamas/JSONService.py", line 105, in call params[:-1], handler) File "/usr/share/pyjamas/library/pyjamas/JSONService.py", line 56, in sendRequest content_type="text/x-json"): File "/usr/share/pyjamas/library/pyjamas/HTTPRequest.py", line 19, in asyncPost return_xml, content_type) File "/usr/share/pyjamas/library/pyjamas/HTTPRequest.py", line 97, in asyncPostImpl print url, xmlHttp.open("POST", url) File "<XPCOMObject method 'open'>", line 3, in open xpcom.Exception/usr/lib/xulrunner-1.9.1/python/xpcom/init.py:62: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 message = self.message : -1041039359 (-1041039359) What version of the product are you using? On what operating system? Linux. Hulahop. Xulrunner. Pyjamas rev 1121.

Original issue: http://code.google.com/p/web2py/issues/detail?id=45

alfonsodg commented 10 years ago

From gdwar...@gmail.com on August 09, 2009 21:25:52

Sorry. I posted this bug report to the wrong page. This can be closed. I copeid it over to the pyjamas site.

alfonsodg commented 10 years ago

From massimod...@gmail.com on August 13, 2009 08:31:03

thanks

Status: Invalid