hugoloza / gwt-mobile-webkit

Automatically exported from code.google.com/p/gwt-mobile-webkit
2 stars 0 forks source link

invalid arguments count error when running an update query in debug mode #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.when pressing a button on the form that will run an update table query on 
the DB will fail due to invalid count of arguments passed.
2. running the same form on regular mode (without "?
gwt.codesvr=127.0.0.1:9997" in the address line) will work fine.

What is the expected output? What do you see instead?
should update the table

the expected output is a message which appear onSuccess, instead an error 
is thrown and a message which appear onFailure (see attached images and 
code).

What version of the product are you using? On what operating system?

using WTK 2.0.3, app engine 1.3.1 on Eclipse 3.4.0
on windows XP 32it SP3

Please provide any additional information below.

 methods that will use the query are attached as methods.txt.

also an error appears when first loading the page (in development mode tab 
in eclipse) that i could not find it's source, may be connected to this 
problem attached as error.txt

Original issue reported on code.google.com by yariv...@gmail.com on 9 Mar 2010 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bguijt on 9 Mar 2010 at 11:46

GoogleCodeExporter commented 9 years ago
Found the problem.

Arrays cannot be passed from Java to JSNI; they first need to be loaded into a 
JsArray and the JsArray passed to the JSNI method.

Attached is an updated SQLTransaction class that implements a fix.

I have not gone through any other classes so more fixes may be needed.

Mikeo. 

Original comment by mvcolle...@gmail.com on 17 Apr 2010 at 4:07

Attachments:

GoogleCodeExporter commented 9 years ago
Great work Mike!

I'll probably be able to spend a couple of hours next week on this issue. 
Thanks for your time, greatly 
appreciated!

Bart.

Original comment by bguijt on 17 Apr 2010 at 4:52

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r336.

Original comment by bguijt on 17 Apr 2010 at 6:25