Guenter Becker Active Member Licensed User Longtime User Mar 12, 2026 #1 Hey, another error found: Code: PrintCodeArea.Print(CodeArea1.GetText ,FontSize) ' called from B4xMainPage' ' Error raises in line of Module PrintCodeArea Public Sub Print(Text As String,FontSize As Double) mPJ = PrinterJob_Static.CreatePrinterJob mPJ.ShowPageSetupDialog(Null) Code: Waiting for debugger to connect... Program started. Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events. Unexpected event (missing RaiseSynchronousEvents): mainform_focuschanged java.lang.Exception: Stack trace at java.base/java.lang.Thread.dumpStack(Thread.java:2282) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:199) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100) at anywheresoftware.b4a.BA$1.run(BA.java:236) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456) at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method) at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(WinApplication.java:211) at javafx.graphics/com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:515) at javafx.graphics/com.sun.glass.ui.EventLoop.enter(EventLoop.java:107) at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:647) at javafx.graphics/com.sun.prism.j2d.print.J2DPrinterJob.showPageDialogFromNestedLoop(J2DPrinterJob.java:321) at javafx.graphics/com.sun.prism.j2d.print.J2DPrinterJob.showPageDialog(J2DPrinterJob.java:290) at javafx.graphics/javafx.print.PrinterJob.showPageSetupDialog(PrinterJob.java:346) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132) at b4j.example.printerjob._showpagesetupdialog(printerjob.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:629) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100) at anywheresoftware.b4a.BA.raiseEvent(BA.java:98) at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:109) at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:1) at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234) at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.base/javafx.event.Event.fireEvent(Event.java:198) at javafx.graphics/javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3602) at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Scene.java:3906) at javafx.graphics/javafx.scene.Scene.processMouseEvent(Scene.java:1878) at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2623) How to avoid this? By the way all needed jars as shown in Rich-FX-Print Project are implemented.
Hey, another error found: Code: PrintCodeArea.Print(CodeArea1.GetText ,FontSize) ' called from B4xMainPage' ' Error raises in line of Module PrintCodeArea Public Sub Print(Text As String,FontSize As Double) mPJ = PrinterJob_Static.CreatePrinterJob mPJ.ShowPageSetupDialog(Null) Code: Waiting for debugger to connect... Program started. Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events. Unexpected event (missing RaiseSynchronousEvents): mainform_focuschanged java.lang.Exception: Stack trace at java.base/java.lang.Thread.dumpStack(Thread.java:2282) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:199) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100) at anywheresoftware.b4a.BA$1.run(BA.java:236) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456) at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method) at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(WinApplication.java:211) at javafx.graphics/com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:515) at javafx.graphics/com.sun.glass.ui.EventLoop.enter(EventLoop.java:107) at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:647) at javafx.graphics/com.sun.prism.j2d.print.J2DPrinterJob.showPageDialogFromNestedLoop(J2DPrinterJob.java:321) at javafx.graphics/com.sun.prism.j2d.print.J2DPrinterJob.showPageDialog(J2DPrinterJob.java:290) at javafx.graphics/javafx.print.PrinterJob.showPageSetupDialog(PrinterJob.java:346) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132) at b4j.example.printerjob._showpagesetupdialog(printerjob.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:629) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111) at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100) at anywheresoftware.b4a.BA.raiseEvent(BA.java:98) at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:109) at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:1) at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234) at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.base/javafx.event.Event.fireEvent(Event.java:198) at javafx.graphics/javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3602) at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Scene.java:3906) at javafx.graphics/javafx.scene.Scene.processMouseEvent(Scene.java:1878) at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2623) How to avoid this? By the way all needed jars as shown in Rich-FX-Print Project are implemented.
Erel B4X founder Staff member Licensed User Longtime User Mar 15, 2026 #2 This is a warning and is only relevant during debugging. Ignore it. Upvote 0