Hi!
create a class to test connectivity.
but it generates an unexpected error. java.lang.RuntimeException: java.lang.NoSuchFieldException: processBA
I share a test project that replicates the error.
can you help me solve it?
The error occurs when executing the job in the clsControlconnectivity class, line 32
Regards
create a class to test connectivity.
but it generates an unexpected error. java.lang.RuntimeException: java.lang.NoSuchFieldException: processBA
I share a test project that replicates the error.
can you help me solve it?
The error occurs when executing the job in the clsControlconnectivity class, line 32
** Activity (main) Create, isFirst = true **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
java.lang.RuntimeException: java.lang.NoSuchFieldException: processBA
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1181)
at anywheresoftware.b4a.keywords.Common$12.run(Common.java:1192)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8512)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1139)
Caused by: java.lang.NoSuchFieldException: processBA
at java.lang.Class.getField(Class.java:1604)
at anywheresoftware.b4a.keywords.Common.getComponentBA(Common.java:1219)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1126)
... 8 more
B4XMainPage:
#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region
'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private conectividad As clsControlConectividad
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
conectividad.Initialize("a","b","B4XMainPage")
conectividad.gsub_control_conectividad
End Sub
Sub a
xui.MsgboxAsync("A!", "B4X")
End Sub
Sub b
xui.MsgboxAsync("B!", "B4X")
Attachments
Last edited: