B4J Question Error B4xTable not iniciatialized

Humberto

Active Member
Licensed User
Longtime User
I had this application developed last year and runs OK. Now the client ask some modification and even the old version running today appears this initialization error in a component B4xTable that is placed in design

I wrote a small sample to test

Waiting for debugger to connect...
Program started.
Error occurred on line: 505 (B4XTable)
java.lang.RuntimeException: Object should first be initialized (B4XView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.B4XViewWrapper.getNodeObject(B4XViewWrapper.java:103)
at anywheresoftware.b4a.objects.B4XViewWrapper.asViewWrapper(B4XViewWrapper.java:99)
at anywheresoftware.b4a.objects.B4XViewWrapper.getTag(B4XViewWrapper.java:671)
at b4j.example.b4xtable._setpagelabelstate(b4xtable.java:1740)
at b4j.example.b4xtable._clearnavigationstate(b4xtable.java:1666)
at b4j.example.b4xtable$ResumableSub_Clear.resume(b4xtable.java:280)
at b4j.example.b4xtable._clear(b4xtable.java:143)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:632)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:237)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:64)
at b4j.example.main._monta_grid_placas(main.java:130)
at b4j.example.main._button1_click(main.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:632)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:237)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at anywheresoftware.b4a.BA$1.run(BA.java:216)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:186)
at java.lang.Thread.run(Thread.java:748)

The project sample is in attachement
 

Attachments

  • test.zip
    3.5 KB · Views: 141

klaus

Expert
Licensed User
Longtime User
I tested your project and it works here !?
I just unziped the project, loaded it and ran it.

1587481549492.png
 
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
Can Be the B4J version, the old one worked this is 8.10.
I change my HD so I install everthing new
I´ll see if I have the old one
 
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
My B4XTable is old ( 1.17 ) and XUI ( 2.23)
I´ll will update

EDIT

worked

Many Thanks to all
 
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
I change the HD and I download the last version of B4J ( 8.10 ) and this libraries was B4xTable 1.17 and XUI 2.27.

Now There is a XUI library even newer that the one that you use XUI is now 2.29
 
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
I´m just saying that there is a new version from XUI library.

I update the libraries and now is running
 

Attachments

  • version.png
    version.png
    6.3 KB · Views: 149
Upvote 0
Top