Hi all.
Seeing there was a script to get B4J working under Linux, just for fun to see if I can come back to B4X, I started to migrate a small project (a gateway) I have in another code to b4x. So far the logic seems to work without errors (compiling errors) but when I added jServer I get errors trying to run.
There are some known workaround to run from b4j and be able to debug from the IDE?
Seeing there was a script to get B4J working under Linux, just for fun to see if I can come back to B4X, I started to migrate a small project (a gateway) I have in another code to b4x. So far the logic seems to work without errors (compiling errors) but when I added jServer I get errors trying to run.
If I compile and run the jar file with linux java it works.OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
Waiting for debugger to connect...
Program started.
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
2026-06-07 08:03:38.938:INFOejs.Server:main: jetty-11.0.9; built: 2022-03-30T17:44:47.085Z; git: 243a48a658a183130a8c8de353178d154ca04f04; jvm 21.0.11+10-LTS
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
2026-06-07 08:03:39.014:INFOejss.DefaultSessionIdManager:main: Session workerName=node0
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
2026-06-07 08:03:39.028:INFOejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@15eb5ee5{/,file:///Z:/home/devgiu/dev/BUYA~LZW/MIGR~41T/B4J-~CL3/Objects/www,AVAILABLE}
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
2026-06-07 08:03:39.050:INFOejs.RequestLogWriter:main: Opened Z:\home\devgiu\dev\b4j-gateway-b4x\migration-preview\b4j-gateway\Objects\logs\b4j-2026_06_07.request.log
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
Error occurred on line: 34 (Main)
java.lang.NullPointerException: Cannot read the array length because "bytes" is null
at java.base/java.lang.String.<init>(String.java:1414)
at java.base/sun.nio.ch.UnixDomainSockets.localAddress(UnixDomainSockets.java:82)
at java.base/sun.nio.ch.SocketChannelImpl.endConnect(SocketChannelImpl.java:824)
at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:894)
at java.base/java.nio.channels.SocketChannel.open(SocketChannel.java:285)
at java.base/sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:132)
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:85)
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:67)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at java.base/sun.nio.ch.PipeImpl.<init>(PipeImpl.java:197)
at java.base/sun.nio.ch.WEPollSelectorImpl.<init>(WEPollSelectorImpl.java:79)
at java.base/sun.nio.ch.WEPollSelectorProvider.openSelector(WEPollSelectorProvider.java:33)
at java.base/java.nio.channels.Selector.open(Selector.java:295)
at org.eclipse.jetty.io.SelectorManager.newSelector(SelectorManager.java:254)
at org.eclipse.jetty.io.ManagedSelector.doStart(ManagedSelector.java:112)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
at org.eclipse.jetty.io.SelectorManager.doStart(SelectorManager.java:238)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:353)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:75)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:228)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
at org.eclipse.jetty.server.Server.doStart(Server.java:427)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:271)
at b4j.gateway.preview.main._starthttpserver(main.java:138)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:632)
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:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:117)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:104)
at buyapp.gateway.preview.main.main(main.java:29)
b4j-gateway B4J preview listening design for :8080
OpenJDK 64-Bit Server VM warning: Attempt to get process group affinity failed: Llamada no implementada
❯ ./run-b4j.sh
2026-06-07 08:32:27.660:INFOejs.Server:main: jetty-11.0.9; built: 2022-03-30T17:44:47.085Z; git: 243a48a658a183130a8c8de353178d154ca04f04; jvm 21.0.11+10
2026-06-07 08:32:27.708:INFOejss.DefaultSessionIdManager:main: Session workerName=node0
2026-06-07 08:32:27.716:INFOejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@2805c96b{/,file:///home/devgiu/dev/b4j-gateway-b4x/migration-preview/b4j-gateway/www,AVAILABLE}
2026-06-07 08:32:27.734:INFOejs.RequestLogWriter:main: Opened /home/devgiu/dev/b4j-gateway-b4x/migration-preview/b4j-gateway/logs/b4j-2026_06_07.request.log
2026-06-07 08:32:27.740:INFOejs.AbstractConnector:main: Started ServerConnector@735f7ae5{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2026-06-07 08:32:27.747:INFOejs.Server:main: Started Server@610694f1{STARTING}[11.0.9,sto=0] @236ms
B4J HTTP server started on port 8080
buyapp-gateway B4J preview listening design for :8080
There are some known workaround to run from b4j and be able to debug from the IDE?