B4J Question [ABMaterial] [Solved] error in debug/release mode

magi6162

Well-Known Member
Licensed User
Start web app in debug mode.
The home page appears that has some buttons to open other pages.
When I press the buttons I get this:
Websocket first connection
Waiting for value (101 ms)
Waiting for value (101 ms)
JWVALHome5807d876-35e9-4765-ba8b-01e7b9a49e11
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:384)
at org.eclipse.jetty.io.ChannelEndPoint$3.run(ChannelEndPoint.java:139)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Connessione interrotta dal software del computer host
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270)
... 10 more
Disconnected
Connected
Waiting for value (100 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (100 ms)
Waiting for value (100 ms)
Waiting for value (100 ms)
Waiting for value (101 ms)
Waiting for value (101 ms)
Waiting for value (101 ms)
Waiting for value (100 ms)
Waiting for value (102 ms)
ListaTuoiRapporti5807d876-35e9-4765-ba8b-01e7b9a49e11
Waiting for value (100 ms)

After ^ F5 I get this:
Waiting for debugger to connect...
Program started.
init mysql
apr 22, 2018 1:25:43 AM com.mchange.v2.log.MLog
INFORMAZIONI: MLog clients using java 1.4+ standard logging.
apr 22, 2018 1:25:43 AM com.mchange.v2.c3p0.C3P0Registry
INFORMAZIONI: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
Collegamento al database
apr 22, 2018 1:25:44 AM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource
INFORMAZIONI: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 20000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1bqs5759u1t2mpz4y1n3v7|42f30e0a, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1bqs5759u1t2mpz4y1n3v7|42f30e0a, idleConnectionTestPeriod -> 600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/jwval_org?useSSL=false&zeroDateTimeBehavior=convertToNull, maxAdministrativeTaskTime -> 0, maxConnection...
Start B4J Analyse!
When an error occurs, check the B4JAnalyse.log file in the Objects folder to see the last B4J line it was working on.
Collecting data from B4J source files... (1/2)
ABMShared.bas
DBM.bas
HttpsFilter.bas
ABMRootFilter.bas
CustomJSPDF.bas
ABMErrorHandler.bas
ABMCacheScavenger.bas
ABMCacheControl.bas
ABMUploadHandler.bas
ModificaTerritori.bas
PlanningSala.bas
GestioneGruppi.bas
Bacheca.bas
ListaRapportiCong.bas
ListaGruppi.bas
Congregazioni.bas
ListaProclamatori.bas
AboutPage.bas
ABMApplication.bas
MappaTerritori.bas
ModificaDatiAccesso.bas
RegistroTerritori.bas
ListaTuoiRapporti.bas
InserisciTuoRapporto.bas
ModificaTuoRapporto.bas
JWVALHome.bas
ListaAreeAttesa.bas
NuovoRapportoGruppo.bas
Servizio.bas
Presenti.bas
ListaRapportiGruppo.bas
Agenda.bas
JWVAL.b4j
Analysing data from B4J source files... (2/2)
loading C:\PROGET~2\JWVAL\Objects: copymewithjar.needs...
Using cache system: 3.0
Needs material/awesome icons
Building C:\PROGET~2\JWVAL\Objects\copymewithjar.js.needs
Building core.min.1524353143201.css...
2018-04-22 01:25:51.961:INFO::main: Logging initialized @9705ms to org.eclipse.jetty.util.log.StdErrLog
2018-04-22 01:25:52.079:INFO:eek:ejs.Server:main: jetty-9.4.z-SNAPSHOT
2018-04-22 01:25:52.138:INFO:eek:ejs.session:main: DefaultSessionIdManager workerName=node0
2018-04-22 01:25:52.138:INFO:eek:ejs.session:main: No SessionScavenger set, using defaults
2018-04-22 01:25:52.141:INFO:eek:ejs.session:main: Scavenging every 600000ms
2018-04-22 01:25:52.200:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7adda9cc{/,file:///C:/ProgettiB4J/JWVAL/Objects/www/,AVAILABLE}
2018-04-22 01:25:52.203:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened C:\ProgettiB4J\JWVAL\Objects\logs\b4j-2018_04_21.request.log
2018-04-22 01:25:52.226:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@4c9f8c13{HTTP/1.1,[http/1.1]}{0.0.0.0:51047}
2018-04-22 01:25:52.226:INFO:eek:ejs.Server:main: Started @9971ms
Emulated network latency: 100ms
2018-04-22 01:25:52.235:INFO:eek:ejs.AbstractConnector:main: Stopped ServerConnector@4c9f8c13{HTTP/1.1,[http/1.1]}{0.0.0.0:51047}
2018-04-22 01:25:52.235:INFO:eek:ejs.session:main: Stopped scavenging
2018-04-22 01:25:52.238:INFO:eek:ejsh.ContextHandler:main: Stopped o.e.j.s.ServletContextHandler@7adda9cc{/,file:///C:/ProgettiB4J/JWVAL/Objects/www/,UNAVAILABLE}
2018-04-22 01:25:52.243:INFO:eek:ejs.Server:main: jetty-9.4.z-SNAPSHOT
2018-04-22 01:25:52.260:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7adda9cc{/,file:///C:/ProgettiB4J/JWVAL/Objects/www/,AVAILABLE}
2018-04-22 01:25:52.261:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened C:\ProgettiB4J\JWVAL\Objects\logs\b4j-2018_04_21.request.log
2018-04-22 01:25:52.261:INFO:eek:ejs.session:main: DefaultSessionIdManager workerName=node0
2018-04-22 01:25:52.262:INFO:eek:ejs.session:main: No SessionScavenger set, using defaults
2018-04-22 01:25:52.262:INFO:eek:ejs.session:main: Scavenging every 660000ms
2018-04-22 01:25:52.265:INFO:eek:ejs.AbstractConnector:main: Started ServerConnector@4c9f8c13{HTTP/1.1,[http/1.1]}{0.0.0.0:51047}
2018-04-22 01:25:52.265:INFO:eek:ejs.Server:main: Started @10010ms
2018-04-22 01:25:52.266:INFO:eek:ejs.session:main: Scavenging every 990000ms
Viewer running on os: windows 10
Trying to open: C:\PROGET~2\JWVAL\Objects/viewer.html
Connected
Waiting for value (100 ms)
Waiting for value (100 ms)
Waiting for value (100 ms)
Connected
Waiting for value (100 ms)
Waiting for value (100 ms)
Waiting for value (100 ms)
Connected
Waiting for value (101 ms)
Waiting for value (100 ms)
Waiting for value (100 ms)
Connected
Waiting for value (101 ms)
Waiting for value (100 ms)
Waiting for value (100 ms)
Waiting for value (101 ms)
Disconnected
Connected
Waiting for value (101 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (101 ms)
Waiting for value (101 ms)
JWVALHome5807d876-35e9-4765-ba8b-01e7b9a49e11
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:384)
at org.eclipse.jetty.io.ChannelEndPoint$3.run(ChannelEndPoint.java:139)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Connessione interrotta dal software del computer host
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270)
... 10 more
Disconnected
Connected
Waiting for value (100 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (100 ms)
Waiting for value (100 ms)
Waiting for value (100 ms)
Waiting for value (101 ms)
Waiting for value (101 ms)
Waiting for value (101 ms)
Waiting for value (100 ms)
Waiting for value (102 ms)
ListaTuoiRapporti5807d876-35e9-4765-ba8b-01e7b9a49e11
Waiting for value (100 ms)
Disconnected
Connected
Waiting for value (100 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (101 ms)
Waiting for value (101 ms)
JWVALHome5807d876-35e9-4765-ba8b-01e7b9a49e11
Disconnected
Connected
Waiting for value (100 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (100 ms)
Waiting for value (100 ms)
ModificaDatiAccesso5807d876-35e9-4765-ba8b-01e7b9a49e11
Waiting for value (100 ms)
Disconnected
Connected
Waiting for value (100 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (100 ms)
Waiting for value (101 ms)
JWVALHome5807d876-35e9-4765-ba8b-01e7b9a49e11
Disconnected
preparing for url refresh
preparing for url refresh
preparing for url refresh
Disconnected
Disconnected
Disconnected
Connected
Waiting for value (101 ms)
Waiting for value (106 ms)
Waiting for value (100 ms)
Disconnected
Connected
Waiting for value (100 ms)
Waiting for value (104 ms)
Waiting for value (100 ms)
Disconnected
Connected
Waiting for value (101 ms)
Waiting for value (100 ms)
Waiting for value (100 ms)
Connected
Waiting for value (100 ms)
Waiting for value (127 ms)
Waiting for value (101 ms)
Disconnected
Disconnected
Connected
Waiting for value (100 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (101 ms)
Waiting for value (100 ms)
JWVALHome7dbb29ab-8b87-4150-bde9-74afad93b4fd
Connected
Waiting for value (142 ms)
Saving the first instance
Waiting for value (102 ms)
Websocket first connection
Waiting for value (191 ms)
Waiting for value (106 ms)
JWVALHomee50b7842-f197-468b-8162-cc98fee72b22
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:322)
at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:372)
at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:756)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:522)
at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:717)
at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:768)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:234)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:218)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:535)
at org.eclipse.jetty.util.IO.copy(IO.java:163)
at org.eclipse.jetty.util.resource.Resource.writeTo(Resource.java:682)
at org.eclipse.jetty.server.ResourceService.sendData(ResourceService.java:754)
at org.eclipse.jetty.server.ResourceService.doGet(ResourceService.java:294)
at org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:458)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:135)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.ShellBA.startMessageLoop(ShellBA.java:114)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:148)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:303)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4j.object.JServlet.createInstance(JServlet.java:65)
at anywheresoftware.b4j.object.BackgroundWorkersManager$1.run(BackgroundWorkersManager.java:21)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.ShellBA.startMessageLoop(ShellBA.java:114)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:148)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:303)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at mc.jw.jwval.main.main(main.java:29)
Caused by: java.io.IOException: Connessione interrotta dal software del computer host
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270)
... 51 more
Connected
Waiting for value (103 ms)
Saving the first instance
Waiting for value (100 ms)
Websocket first connection
Waiting for value (100 ms)
Waiting for value (106 ms)
JWVALHomea217e227-f60d-4024-beb8-c21df0dfaa26
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:384)
at org.eclipse.jetty.io.ChannelEndPoint$3.run(ChannelEndPoint.java:139)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Connessione interrotta dal software del computer host
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270)
... 10 more
Connected
Waiting for value (101 ms)
Saving the first instance
Waiting for value (116 ms)
Websocket first connection
Waiting for value (250 ms)
Waiting for value (110 ms)
JWVALHome4c4a6597-bc62-4877-84a4-1d045ad80c30
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:322)
at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:372)
at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:756)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:522)
at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:717)
at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:768)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:234)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:218)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:530)
at org.eclipse.jetty.util.IO.copy(IO.java:163)
at org.eclipse.jetty.util.resource.Resource.writeTo(Resource.java:682)
at org.eclipse.jetty.server.ResourceService.sendData(ResourceService.java:754)
at org.eclipse.jetty.server.ResourceService.doGet(ResourceService.java:294)
at org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:458)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:135)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.ShellBA.startMessageLoop(ShellBA.java:114)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:148)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:303)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4j.object.JServlet.createInstance(JServlet.java:65)
at anywheresoftware.b4j.object.BackgroundWorkersManager$1.run(BackgroundWorkersManager.java:21)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.ShellBA.startMessageLoop(ShellBA.java:114)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:148)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:303)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at mc.jw.jwval.main.main(main.java:29)
Caused by: java.io.IOException: Connessione interrotta dal software del computer host
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270)
... 51 more
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:322)
at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:372)
at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:756)
at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241)
at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224)
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:522)
at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:717)
at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:768)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:234)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:218)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:530)
at org.eclipse.jetty.util.IO.copy(IO.java:163)
at org.eclipse.jetty.util.resource.Resource.writeTo(Resource.java:682)
at org.eclipse.jetty.server.ResourceService.sendData(ResourceService.java:754)
at org.eclipse.jetty.server.ResourceService.doGet(ResourceService.java:294)
at org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:458)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:135)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.ShellBA.startMessageLoop(ShellBA.java:114)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:148)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:303)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4j.object.JServlet.createInstance(JServlet.java:65)
at anywheresoftware.b4j.object.BackgroundWorkersManager$1.run(BackgroundWorkersManager.java:21)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.ShellBA.startMessageLoop(ShellBA.java:114)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:148)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:303)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at mc.jw.jwval.main.main(main.java:29)
Caused by: java.io.IOException: Connessione interrotta dal software del computer host
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270)
... 51 more

Note that I have not made any changes to the code and that the web app works properly in release mode.
What happened?
Thanks for any suggestions.
 

magi6162

Well-Known Member
Licensed User
Correction: same problem also in release mode.
Please, I really need help, I can not find a solution.
The same problem now also occurs in previous versions of the web app that worked well.
Thanks for every suggestion you can give me.
 
Upvote 0

alwaysbusy

Expert
Licensed User
This is not really an error I think: it just means your connection between the server and client was broken mid stream. This can have several causes (slow internet is one of them).

The exceptions reported show that the client is trying to write bytes on the network, but the connection has been closed asynchronously. This can be caused by idle timeouts or by the server closing the connection.

What are your settings in ABMShared:
B4X:
Public CacheScavengePeriodSeconds As Int = 15*60 ' 15 minutes
Public SessionMaxInactiveIntervalSeconds As Int = 30*60 ' 30 minutes '1*60*24 ' one hour ' -1 = immortal but beware! This also means your cache is NEVER emptied!
 
Upvote 0

magi6162

Well-Known Member
Licensed User
What are your settings in ABMShared:
B4X:
Public CacheScavengePeriodSeconds As Int = 15*60 ' 15 minutes
Public SessionMaxInactiveIntervalSeconds As Int = 30*60 ' 30 minutes '1*60*24 ' one hour ' -1 = immortal but beware! This also means your cache is NEVER emptied!
yes, I have the same values
 
Upvote 0

magi6162

Well-Known Member
Licensed User
The exceptions reported show that the client is trying to write bytes on the network, but the connection has been closed asynchronously. This can be caused by idle timeouts or by the server closing the connection.

is it possible to solve it in any way?
 
Upvote 0

magi6162

Well-Known Member
Licensed User
this problem affects many pages, but not all.
Some open normally, although they are quite demanding as processing time.
 
Upvote 0

magi6162

Well-Known Member
Licensed User
Sorry, but I just can not solve it and now the maintenance of the web app is no longer possible.
At the moment I had to suspend development, since I can not even debug.
Any help is welcome. thank you all.
 
Upvote 0

alwaysbusy

Expert
Licensed User
It is a bit hard for anyone to help you if we do not know what you exactly do in your homepage. Is there running something very long? Can you make something that we can use to reproduce this problem? How is your connection (is it stable enough)? Does it happen on only your machine? Is it running on a VPS? What is shown in the console of the browser when this happens? etc...

The error you give us is useless without context (do a search in Google and you notice quite a number of problems that can cause such an error).
 
Upvote 0

magi6162

Well-Known Member
Licensed User
It is a bit hard for anyone to help you if we do not know what you exactly do in your homepage. Is there running something very long? Can you make something that we can use to reproduce this problem? How is your connection (is it stable enough)? Does it happen on only your machine? Is it running on a VPS? What is shown in the console of the browser when this happens? etc...

The error you give us is useless without context (do a search in Google and you notice quite a number of problems that can cause such an error).

thanks for the tips.
However, the same problem occurs on every computer I've tried (three) both at home and at work. Internet is fine, and even if I run the web app locally (on my computer) in release / debug mode and I connect with "http://localhost:51047/webapp" the same problem is always present.
I would like to ask a courtesy, if I give you a teamviewer access to my development computer and try to run the web app, I ask too much? (In case of refusal I understand you).
 
Upvote 0

OliverA

Expert
Licensed User
Your log shows
When an error occurs, check the B4JAnalyse.log file in the Objects folder to see the last B4J line it was working on.
Did you do this?
 
Upvote 0

OliverA

Expert
Licensed User
You've added no extra code that relies on timers or call back routines?
 
Upvote 0

magi6162

Well-Known Member
Licensed User
I use a two-page timer, but it was not a recent change.
In addition, other pages that do not have a timer also have the same problem.
Precise that this problem now presents itself, even with previous versions that were working.
 
Upvote 0

OliverA

Expert
Licensed User
Since you are talking about debug/release mode, is this on your computer that you are developing the application on? Or are you also running into this issue on your hosted site?
 
Upvote 0

magi6162

Well-Known Member
Licensed User
I tried on three different computers (installing b4j and ABM 4.26 on each one) but it was the same problem, on the VPS the program runs well.
 
Upvote 0

OliverA

Expert
Licensed User
Huh? When did 4.26 come out? I just downloaded the latest yesterday and I'm pretty sure it was 4.25. What version is running on the VPS? What version of Java do you have on the VPS and on the computers?
 
Upvote 0
Top