After doing a jRDC query to mySql with a record that contains a DATETIME column, I get an error
main_reqmanager_result (java line: 759)
java.lang.NumberFormatException: For input string: "null"
at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1306)
at java.lang.Double.parseDouble(Double.java:547)
at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:646)
at com.ctt.my420menu.main._reqmanager_result(main.java:759)
at com.ctt.my420menu.main$ResumableSub_GetRDCRecord.resume(main.java:620)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1151)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1557)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
java.lang.NumberFormatException: For input string: "null"
if my code uses :
LastPublish = records(result.Columns.Get("LastPublish"))
but no error if i use:
LastPublish = records(3)
LastPublish is a string.
config.properties statement:
sql.SelectCustomer=SELECT custname, logofile, custapppwd, CAST(LastPublish AS CHAR) FROM customers WHERE custid = ?
Any ideas?
Marc
main_reqmanager_result (java line: 759)
java.lang.NumberFormatException: For input string: "null"
at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1306)
at java.lang.Double.parseDouble(Double.java:547)
at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:646)
at com.ctt.my420menu.main._reqmanager_result(main.java:759)
at com.ctt.my420menu.main$ResumableSub_GetRDCRecord.resume(main.java:620)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1151)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1557)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
java.lang.NumberFormatException: For input string: "null"
if my code uses :
LastPublish = records(result.Columns.Get("LastPublish"))
but no error if i use:
LastPublish = records(3)
LastPublish is a string.
config.properties statement:
sql.SelectCustomer=SELECT custname, logofile, custapppwd, CAST(LastPublish AS CHAR) FROM customers WHERE custid = ?
Any ideas?
Marc