Android Question RDC Null error

John Decowski

Member
Licensed User
Longtime User
Hi I'm trying to get the RDC to execute a command,

Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "insert_alert"
cmd.Parameters = Array As Object(2,2,"Hello")

reqManager.Executecommand(cmd,"tag")

Keep getting Error message:

** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (sendalert) Create, isFirst = true **
** Activity (sendalert) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
HandleJob: 2780
YO 1
YO 2

Error occurred on line: 59 (dbrequestmanager)
java.lang.NullPointerException
at anywheresoftware.b4a.BA.<init>(BA.java:106)
at anywheresoftware.b4a.samples.httputils2.httpjob.innerInitialize(httpjob.java:12)
at anywheresoftware.b4a.samples.httputils2.httpjob._initialize(httpjob.java:168)
at b4a.example.dbrequestmanager._startjob(dbrequestmanager.java:205)
at b4a.example.dbrequestmanager._executebatch(dbrequestmanager.java:168)
at b4a.example.dbrequestmanager._executecommand(dbrequestmanager.java:420)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:302)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:163)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:77)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
 
Top