LMS

Welcome to the Lobeo Module Server project. Please feel free to submit bugs related to it.
Tasklist

FS#750 - [Core] Find a way to make the lob reconnect faster after a disconnection

Attached to Project: LMS
Opened by Guillaume (Guillaume) - Monday, 13 January 2014, 22:16 GMT
Last edited by Ferdinand (PaGaisu) - Tuesday, 14 January 2014, 14:59 GMT
Task Type Feature Request
Category
Status Closed
Assigned To Ferdinand (PaGaisu)
Operating System All
Severity High
Priority High
Reported Version alpha6
Due in Version alpha7
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Find a way to make the lob reconnect faster after a disconnection

------------------------------------------------

the server0 is offline

[13/01/2014 23:03:03,075] [http-nio-8080-exec-3] INFO com.lobeo.lms.server.http.root.URLRewriteServlet - Handling a url rewrite request
[13/01/2014 23:03:03,076] [http-nio-8080-exec-3] INFO com.lobeo.lms.server.http.root.URLRewriteServlet - Setting the dispatcher to the path /MasterServer/cloud/favicon.ico
[13/01/2014 23:03:03,076] [http-nio-8080-exec-3] INFO com.lobeo.lms.server.http.root.URLRewriteServlet - Forwarding to /ws/page/MasterServer/cloud/favicon.ico
[13/01/2014 23:03:03,077] [http-nio-8080-exec-3] INFO com.lobeo.lms.http.WebPageServlet - Handling a request to get a web page
[13/01/2014 23:09:07,556] [http-nio-8080-exec-3] INFO com.lobeo.lms.http.webpage.WebPageServiceImpl - Getting a file with access name: MasterServer/cloud/favicon.ico
[13/01/2014 23:08:06,876] [http-nio-8080-exec-10] INFO com.lobeo.lms.server.http.root.URLRewriteServlet - Handling a url rewrite request
[13/01/2014 23:09:07,558] [http-nio-8080-exec-10] INFO com.lobeo.lms.server.http.root.URLRewriteServlet - Setting the dispatcher to the path /MasterServer/cloud
[13/01/2014 23:09:07,559] [http-nio-8080-exec-10] INFO com.lobeo.lms.server.http.root.URLRewriteServlet - Forwarding to /ws/page/MasterServer/cloud
[13/01/2014 23:07:51,923] [Thread-2306] INFO com.lobeo.lms.register.RegistrationEventHandler - Running the registration to the network
[13/01/2014 23:07:48,164] [Thread-2305] INFO com.lobeo.lms.core.service.impl.MasterServerConnection - Disconnecting the master socket server
[13/01/2014 23:07:48,163] [Thread-2304] ERROR com.lobeo.lms.core.service.impl.MasterServerConnection - Unable to send the ping to the master socket server
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:251)
at sun.nio.ch.IOUtil.read(IOUtil.java:224)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:254)
at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:194)
at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:282)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:324)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:176)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:153)
at java.io.BufferedReader.readLine(BufferedReader.java:316)
at java.io.BufferedReader.readLine(BufferedReader.java:379)
at com.lobeo.lms.core.service.impl.MasterServerConnection.sendText(MasterServerConnection.java:182)
at com.lobeo.lms.core.service.impl.MasterServerConnection$PingTask.run(MasterServerConnection.java:65)
at java.lang.Thread.run(Thread.java:679)
[13/01/2014 23:07:48,163] [Timer-Pool-Thread-4] INFO com.lobeo.lms.masterserver.LobManager - the lob server0 owned by admin@lobeo.com is offline
[13/01/2014 23:07:01,093] [com.lobeo.lms.MasterServer-Thread] INFO com.lobeo.lms.masterserver.LobHandler - Pinging the master server [guillaume.dosser@gmail.com,Landivisiau,BC-5F-F4-1C-AE-98,192.168.1.11,80,ARennes-356-1-208-47.w2-13.abo.wanadoo.fr/2.13.151.47]
[13/01/2014 23:04:56,556] [http-nio-8080-exec-8] INFO com.lobeo.lms.server.http.root.URLRewriteServlet - Handling a url rewrite request
[13/01/2014 23:03:51,923] [Thread-2293] INFO com.lobeo.lms.register.RegistrationEventHandler - Running the registration to the network
.
.
.
.
.
.
[13/01/2014 23:09:07,670] [com.lobeo.lms.MasterServer-Thread] INFO com.lobeo.lms.masterserver.operation.ServerOperation - Setting the status of the server
[13/01/2014 23:09:07,677] [com.lobeo.lms.MasterServer-Thread] WARN com.lobeo.lms.masterserver.sock.LobClientImpl - Unable to wrap the text nWC7J91ivv9iS8fJN_jLKw==
[13/01/2014 23:09:07,677] [com.lobeo.lms.MasterServer-Thread] ERROR com.lobeo.lms.masterserver.MasterServerActivator - Unable to start the master socket server
java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:82)
at com.lobeo.lms.masterserver.sock.MasterSockServer.doRead(MasterSockServer.java:140)
at com.lobeo.lms.masterserver.sock.MasterSockServer.runServer(MasterSockServer.java:232)
at com.lobeo.lms.masterserver.MasterServerActivator.run(MasterServerActivator.java:452)
at java.lang.Thread.run(Thread.java:679)
[13/01/2014 23:09:07,846] [http-nio-8080-exec-5] INFO com.lobeo.lms.masterserver.operation.UserOperation - Getting the user attached to the email admin@lobeo.com
[13/01/2014 23:09:07,846] [http-nio-8080-exec-5] INFO com.lobeo.lms.masterserver.operation.UserOperation - Looking for the user
[13/01/2014 23:09:07,849] [http-nio-8080-exec-5] INFO com.lobeo.lms.masterserver.impl.ServerManager - Get the server named 'server0' belonging to com.lobeo.lms.masterserver.dbo.User@933dbe8b
[13/01/2014 23:09:07,849] [http-nio-8080-exec-5] INFO com.lobeo.lms.masterserver.operation.ServerOperation - Getting the server server0 belonging to com.lobeo.lms.masterserver.dbo.User@933dbe8b
[13/01/2014 23:09:07,850] [http-nio-8080-exec-5] INFO com.lobeo.lms.masterserver.operation.ServerOperation - Looking for the server
[13/01/2014 23:09:07,851] [http-nio-8080-exec-5] INFO com.lobeo.lms.master.web.GetServlet - Unable to get the resource
com.lobeo.lms.util.StandardException: The server server0 for the user admin@lobeo.com is not online
at com.lobeo.lms.master.web.GetServlet.doGet(GetServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1680)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
[13/01/2014 23:09:07,854] [http-nio-8080-exec-5] ERROR com.lobeo.lms.http.servlet.ErrorServlet - An error [400] occurred when handling a http request [Bad Request: The server server0 for the user admin@lobeo.com is not online] (GetServlet,/MasterServer/get/server0/admin@lobeo.com/ws/res/MasterServer/res/cloud.css)
[13/01/2014 23:09:07,857] [http-nio-8080-exec-4] INFO com.lobeo.lms.masterserver.operation.UserOperation - Getting the user attached to the email admin@lobeo.com
This task depends upon

Closed by  Ferdinand (PaGaisu)
Tuesday, 14 January 2014, 14:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  Rev 3108

Loading...