B4J Question [ABMaterial] java.nio.channels.ClosedChannelException

Anser

Well-Known Member
Licensed User
Longtime User
Hi,

When I run the ABM application, I often see the following message in the Log.
Is it something that I can ignore ? Or is it happening for some reason because of my bad coding ?
Any advice will be appreciated

Waiting for value (1 ms)
Waiting for value (4 ms)
java.nio.channels.ClosedChannelException
at org.eclipse.jetty.websocket.common.io.FrameFlusher.succeedEntries(FrameFlusher.java:246)
at org.eclipse.jetty.websocket.common.io.FrameFlusher.succeeded(FrameFlusher.java:234)
at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:342)
at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:380)
at org.eclipse.jetty.websocket.common.io.FrameFlusher.flush(FrameFlusher.java:218)
at org.eclipse.jetty.websocket.common.io.FrameFlusher.process(FrameFlusher.java:157)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)
at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:90)
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame(AbstractWebSocketConnection.java:495)
at org.eclipse.jetty.websocket.common.WebSocketSession.close(WebSocketSession.java:223)
at org.eclipse.jetty.websocket.common.WebSocketSession.close(WebSocketSession.java:190)
at anywheresoftware.b4j.object.WebSocket.Close(WebSocket.java:351)
at com.ab.template.abmshared._vvvv7(abmshared.java:1106)
at com.ab.template.dashboardsalesservice._page_navigationbarclicked(dashboardsalesservice.java:2741)
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:90)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:487)
at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:450)
at com.ab.template.dashboardsalesservice._page_parseevent(dashboardsalesservice.java:2809)
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:90)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4j.object.WebSocketModule$Adapter$1.run(WebSocketModule.java:126)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4j.object.WebSocketModule$Adapter$ThreadHandler.run(WebSocketModule.java:191)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Disconnected
/PGSales/images/logo.png
Not Found
Connected
Waiting for value (2 ms)
UpdateFromCache: PartsStock096d5827-41a5-4eef-95a3-4fbaea2bf15e
Saving the first instance
Waiting for value (1 ms)
Websocket first connection
Inside Connect Navigation Bar
leaving Connect Navigation Bar
/PGSales/images/logo.png
Not Found
Waiting for value (3 ms)
PartsStock096d5827-41a5-4eef-95a3-4fbaea2bf15e
 
Top