Refer to this
I have tried to study dbutils example,I have customers.db which has RoomTable,GuestTable ,and RentTable.
What is Object should first be initialized?
How I code this line as below:
DBUtils.InsertMaps(Starter.SQL1,"RoomTable", ListOfMaps)
I have the written log as below
Logger connected to: HUAWEI LDN-LX2
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (business) Create, isFirst = true **
** Activity (business) Resume **
** Activity (business) Pause, UserClosed = false **
** Activity (newguest) Create, isFirst = true **
** Activity (newguest) Resume **
21:19:17
Logger connected to: HUAWEI LDN-LX2
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (business) Create, isFirst = true **
** Activity (business) Resume **
** Activity (business) Pause, UserClosed = false **
** Activity (newguest) Create, isFirst = true **
** Activity (newguest) Resume **
21:19:17
dbutils_insertmaps (java line: 588)
java.lang.RuntimeException: Object should first be initialized.
at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:55)
at anywheresoftware.b4a.sql.SQL.BeginTransaction(SQL.java:277)
at b4a.npsoft.millionaireresort.dbutils._insertmaps(dbutils.java:588)
at b4a.npsoft.millionaireresort.newguest._addentry(newguest.java:433)
at b4a.npsoft.millionaireresort.newguest._button1_click(newguest.java:488)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:6291)
at android.view.View$PerformClick.run(View.java:24931)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
I have tried to study dbutils example,I have customers.db which has RoomTable,GuestTable ,and RentTable.
What is Object should first be initialized?
How I code this line as below:
DBUtils.InsertMaps(Starter.SQL1,"RoomTable", ListOfMaps)
I have the written log as below
Logger connected to: HUAWEI LDN-LX2
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (business) Create, isFirst = true **
** Activity (business) Resume **
** Activity (business) Pause, UserClosed = false **
** Activity (newguest) Create, isFirst = true **
** Activity (newguest) Resume **
21:19:17
Logger connected to: HUAWEI LDN-LX2
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (business) Create, isFirst = true **
** Activity (business) Resume **
** Activity (business) Pause, UserClosed = false **
** Activity (newguest) Create, isFirst = true **
** Activity (newguest) Resume **
21:19:17
dbutils_insertmaps (java line: 588)
java.lang.RuntimeException: Object should first be initialized.
at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:55)
at anywheresoftware.b4a.sql.SQL.BeginTransaction(SQL.java:277)
at b4a.npsoft.millionaireresort.dbutils._insertmaps(dbutils.java:588)
at b4a.npsoft.millionaireresort.newguest._addentry(newguest.java:433)
at b4a.npsoft.millionaireresort.newguest._button1_click(newguest.java:488)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:6291)
at android.view.View$PerformClick.run(View.java:24931)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Last edited: