Re: Fwd: Bug 56684 - java7: java.net.SocketTimeoutException: Accept timed out
On 06/07/17 13:22, Gagandeep Singh wrote: > Hi All, > > This is regarding the tomcat bug mentioned in subject. I have few questions > as below regarding the same. Could anyone please help me understand. > > - Would this issue only occur when the server has not been accessed for 50 > days, as I think it should reset the accept timer once it gets any request > because a new accept() would be called then. Yes. > - Is there a way this issue can be reproduced quickly so that we don't have > to wait for 50 days to see the issue ? None I am aware of. > - And would there be a way to check if the issue has been fixed after > tomcat upgrade, other than waiting again for 50 days ? None I am aware of. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fwd: Bug 56684 - java7: java.net.SocketTimeoutException: Accept timed out
Hi All, This is regarding the tomcat bug mentioned in subject. I have few questions as below regarding the same. Could anyone please help me understand. - Would this issue only occur when the server has not been accessed for 50 days, as I think it should reset the accept timer once it gets any request because a new accept() would be called then. - Is there a way this issue can be reproduced quickly so that we don't have to wait for 50 days to see the issue ? - And would there be a way to check if the issue has been fixed after tomcat upgrade, other than waiting again for 50 days ? Kind Regards, Gagandeep Singh
Re: Fwd: bug
On 4/20/2016 3:47 AM, André Warnier (tomcat) wrote: On 20.04.2016 09:31, Cristian Lorenzetto wrote: i sincronized the method for sending message but error is the same when ubuntu is suspended. The connections are not restored correctly when tomcat websocket process is wakeup Ach so .. You are talking about running Tomcat on an Ubuntu laptop, which goes to sleep after a while. That was not clear from your initial explanation, where it seemed that you were talking about a *client* PC that goes to sleep. My personal opinion, is that this case is not really part of the specification : it is generally assumed that Tomcat is a server-based process, running on a server with the purpose of serving multiple clients. It is not really expected generally that a server would "go to sleep" in the middle of doing something. +1. There is nothing in the spec that mentions how a server should handle going to sleep and waking back up, and I would not expect any normal service to handle that situation with aplomb. It's going to be up to you to come up with something that serves your needs. Hi I m using tomcat in ubuntu system. When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: bug
On 20.04.2016 09:31, Cristian Lorenzetto wrote: i sincronized the method for sending message but error is the same when ubuntu is suspended. The connections are not restored correctly when tomcat websocket process is wakeup Ach so .. You are talking about running Tomcat on an Ubuntu laptop, which goes to sleep after a while. That was not clear from your initial explanation, where it seemed that you were talking about a *client* PC that goes to sleep. My personal opinion, is that this case is not really part of the specification : it is generally assumed that Tomcat is a server-based process, running on a server with the purpose of serving multiple clients. It is not really expected generally that a server would "go to sleep" in the middle of doing something. Hi I m using tomcat in ubuntu system. When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fwd: bug
i sincronized the method for sending message but error is the same when ubuntu is suspended. The connections are not restored correctly when tomcat websocket process is wakeup Hi I m using tomcat in ubuntu system. When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more
Re: Fwd: Fwd: bug
On 19/04/2016 15:51, André Warnier (tomcat) wrote: > On 19.04.2016 16:47, Cristian Lorenzetto wrote: >> it sounds a good response for me :) >> It would be appreciated a task assignment for solving that bug. > > There might still be a small misunderstanding. > I believe that Mark means : *your* application has a bug, not Tomcat. Correct. No Tomcat bug here. Nothing to see. Move along now... Mark > >> >> >> -- Forwarded message -- >> From: Mark Thomas <ma...@apache.org> >> Date: 2016-04-19 16:27 GMT+02:00 >> Subject: Re: Fwd: bug >> To: Tomcat Users List <users@tomcat.apache.org> >> >> >> On 19/04/2016 15:24, Cristian Lorenzetto wrote: >>> good analisys similar to mime , but when the pc wake up ... it might >>> restore also the connections enqueued. The connection remains freezed so >> it >>> gives this exception. >> >> Nope. >> >> You get that exception because the application has a bug. It is trying >> to start a new WebSocket message before the previous one is completed. >> >> Mark >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: Fwd: bug
On 19.04.2016 16:47, Cristian Lorenzetto wrote: it sounds a good response for me :) It would be appreciated a task assignment for solving that bug. There might still be a small misunderstanding. I believe that Mark means : *your* application has a bug, not Tomcat. -- Forwarded message -- From: Mark Thomas <ma...@apache.org> Date: 2016-04-19 16:27 GMT+02:00 Subject: Re: Fwd: bug To: Tomcat Users List <users@tomcat.apache.org> On 19/04/2016 15:24, Cristian Lorenzetto wrote: good analisys similar to mime , but when the pc wake up ... it might restore also the connections enqueued. The connection remains freezed so it gives this exception. Nope. You get that exception because the application has a bug. It is trying to start a new WebSocket message before the previous one is completed. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fwd: Fwd: bug
it sounds a good response for me :) It would be appreciated a task assignment for solving that bug. -- Forwarded message -- From: Mark Thomas <ma...@apache.org> Date: 2016-04-19 16:27 GMT+02:00 Subject: Re: Fwd: bug To: Tomcat Users List <users@tomcat.apache.org> On 19/04/2016 15:24, Cristian Lorenzetto wrote: > good analisys similar to mime , but when the pc wake up ... it might > restore also the connections enqueued. The connection remains freezed so it > gives this exception. Nope. You get that exception because the application has a bug. It is trying to start a new WebSocket message before the previous one is completed. Mark
Re: Fwd: bug
On 19/04/2016 15:24, Cristian Lorenzetto wrote: > good analisys similar to mime , but when the pc wake up ... it might > restore also the connections enqueued. The connection remains freezed so it > gives this exception. Nope. You get that exception because the application has a bug. It is trying to start a new WebSocket message before the previous one is completed. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: bug
good analisys similar to mime , but when the pc wake up ... it might restore also the connections enqueued. The connection remains freezed so it gives this exception. 2016-04-19 16:08 GMT+02:00 André Warnier (tomcat): > On 19.04.2016 16:00, Cristian Lorenzetto wrote: > >> Sincerely in the doc is written that tomcat websocket is a 'single thread >> model' so it is already sincronized. >> I dont think it is that. >> > > I think that this is not the point. > The point is : by leaving your PC and letting it go to sleep, it freezes > its connection to Tomcat. Then tomcat tries to send something, and cannot. > Then there is an I/O exception returned to your code (the websocket webapp > under Tomcat). > You need to catch that exception, and yourself needs to do something about > it, because there is no way that Tomcat would know what to do. > > > > >> 2016-04-19 15:55 GMT+02:00 André Warnier (tomcat) : >> >> On 19.04.2016 15:41, Cristian Lorenzetto wrote: >>> >>> 17-Apr-2016 10:50:23.751 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:Apache Tomcat/9.0.0.M1 17-Apr-2016 10:50:23.752 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 12 2015 22:05:52 UTC 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.0.0 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:3.16.0-28-generic 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-oracle/jre 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_25-b17 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:Oracle Corporation 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /data/opt/apache-tomcat-9.0.0.M1 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /data/opt/apache-tomcat-9.0.0.M1 2016-04-19 15:34 GMT+02:00 André Warnier (tomcat) : On 19.04.2016 15:19, Cristian Lorenzetto wrote: > > Hi I m using tomcat in ubuntu system. > >> >> >> Tomcat version ? Java version ? > > http://lmgtfy.com/?q=BINARY_PARTIAL_WRITING > > Thank you for the versions, but you forgot to check the above >>> reference(s), or the tomcat mail archives. >>> From these articles, I gather that the above behaviour is expected, and >>> that you should yourself protect your application against this. >>> Read the articles for a justification. >>> >>> >>> >>> >>> >When i leave my pc for 10 mins > > system is suspended. When i return to work i have this exception > >> >> java.lang.IllegalStateException: The remote endpoint was in state >> [BINARY_PARTIAL_WRITING] which is an invalid state for called method >> at >> >> >> >> org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) >> at >> >> >> >> org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) >> at >> >> >> >> org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) >> at >> >> >> >> org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) >> at >> >> >> >> org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) >> at >> >> >> >> org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) >> at >> >> >> >> com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) >> at com.itiboss.utils.Utils.send(Utils.java:80) >> ... 21 more >> >> >> >> - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >>> - >>>
Re: Fwd: bug
On 19.04.2016 16:00, Cristian Lorenzetto wrote: Sincerely in the doc is written that tomcat websocket is a 'single thread model' so it is already sincronized. I dont think it is that. I think that this is not the point. The point is : by leaving your PC and letting it go to sleep, it freezes its connection to Tomcat. Then tomcat tries to send something, and cannot. Then there is an I/O exception returned to your code (the websocket webapp under Tomcat). You need to catch that exception, and yourself needs to do something about it, because there is no way that Tomcat would know what to do. 2016-04-19 15:55 GMT+02:00 André Warnier (tomcat): On 19.04.2016 15:41, Cristian Lorenzetto wrote: 17-Apr-2016 10:50:23.751 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:Apache Tomcat/9.0.0.M1 17-Apr-2016 10:50:23.752 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 12 2015 22:05:52 UTC 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.0.0 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:3.16.0-28-generic 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-oracle/jre 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_25-b17 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:Oracle Corporation 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /data/opt/apache-tomcat-9.0.0.M1 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /data/opt/apache-tomcat-9.0.0.M1 2016-04-19 15:34 GMT+02:00 André Warnier (tomcat) : On 19.04.2016 15:19, Cristian Lorenzetto wrote: Hi I m using tomcat in ubuntu system. Tomcat version ? Java version ? http://lmgtfy.com/?q=BINARY_PARTIAL_WRITING Thank you for the versions, but you forgot to check the above reference(s), or the tomcat mail archives. From these articles, I gather that the above behaviour is expected, and that you should yourself protect your application against this. Read the articles for a justification. When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: bug
Sincerely in the doc is written that tomcat websocket is a 'single thread model' so it is already sincronized. I dont think it is that. 2016-04-19 15:55 GMT+02:00 André Warnier (tomcat): > On 19.04.2016 15:41, Cristian Lorenzetto wrote: > >> 17-Apr-2016 10:50:23.751 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log Server >> version:Apache Tomcat/9.0.0.M1 >> 17-Apr-2016 10:50:23.752 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log Server >> built: Nov 12 2015 22:05:52 UTC >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log Server >> number: 9.0.0.0 >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log OS >> Name: Linux >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log OS >> Version:3.16.0-28-generic >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log >> Architecture: amd64 >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log Java >> Home: /usr/lib/jvm/java-8-oracle/jre >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log JVM >> Version: 1.8.0_25-b17 >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log JVM >> Vendor:Oracle Corporation >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log >> CATALINA_BASE: /data/opt/apache-tomcat-9.0.0.M1 >> 17-Apr-2016 10:50:23.753 INFO [main] >> org.apache.catalina.startup.VersionLoggerListener.log >> CATALINA_HOME: /data/opt/apache-tomcat-9.0.0.M1 >> >> >> 2016-04-19 15:34 GMT+02:00 André Warnier (tomcat) : >> >> On 19.04.2016 15:19, Cristian Lorenzetto wrote: >>> >>> Hi I m using tomcat in ubuntu system. >>> Tomcat version ? Java version ? >>> >>> http://lmgtfy.com/?q=BINARY_PARTIAL_WRITING >>> >> > Thank you for the versions, but you forgot to check the above > reference(s), or the tomcat mail archives. > From these articles, I gather that the above behaviour is expected, and > that you should yourself protect your application against this. > Read the articles for a justification. > > > > >>> >>> When i leave my pc for 10 mins >>> >>>system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Fwd: bug
On 19.04.2016 15:41, Cristian Lorenzetto wrote: 17-Apr-2016 10:50:23.751 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:Apache Tomcat/9.0.0.M1 17-Apr-2016 10:50:23.752 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 12 2015 22:05:52 UTC 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.0.0 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:3.16.0-28-generic 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-oracle/jre 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_25-b17 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:Oracle Corporation 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /data/opt/apache-tomcat-9.0.0.M1 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /data/opt/apache-tomcat-9.0.0.M1 2016-04-19 15:34 GMT+02:00 André Warnier (tomcat): On 19.04.2016 15:19, Cristian Lorenzetto wrote: Hi I m using tomcat in ubuntu system. Tomcat version ? Java version ? http://lmgtfy.com/?q=BINARY_PARTIAL_WRITING Thank you for the versions, but you forgot to check the above reference(s), or the tomcat mail archives. From these articles, I gather that the above behaviour is expected, and that you should yourself protect your application against this. Read the articles for a justification. When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: bug
17-Apr-2016 10:50:23.751 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:Apache Tomcat/9.0.0.M1 17-Apr-2016 10:50:23.752 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 12 2015 22:05:52 UTC 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.0.0 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:3.16.0-28-generic 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-oracle/jre 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_25-b17 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:Oracle Corporation 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /data/opt/apache-tomcat-9.0.0.M1 17-Apr-2016 10:50:23.753 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /data/opt/apache-tomcat-9.0.0.M1 2016-04-19 15:34 GMT+02:00 André Warnier (tomcat): > On 19.04.2016 15:19, Cristian Lorenzetto wrote: > >> Hi I m using tomcat in ubuntu system. >> > > Tomcat version ? Java version ? > > http://lmgtfy.com/?q=BINARY_PARTIAL_WRITING > > > When i leave my pc for 10 mins > >> system is suspended. When i return to work i have this exception >> >> java.lang.IllegalStateException: The remote endpoint was in state >> [BINARY_PARTIAL_WRITING] which is an invalid state for called method >> at >> >> org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) >> at >> >> org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) >> at >> >> org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) >> at >> >> org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) >> at >> >> org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) >> at >> >> org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) >> at >> >> com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) >> at com.itiboss.utils.Utils.send(Utils.java:80) >> ... 21 more >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Fwd: bug
On 19.04.2016 15:19, Cristian Lorenzetto wrote: Hi I m using tomcat in ubuntu system. Tomcat version ? Java version ? http://lmgtfy.com/?q=BINARY_PARTIAL_WRITING When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fwd: bug
Hi I m using tomcat in ubuntu system. When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1213) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.binaryPartialStart(WsRemoteEndpointImplBase.java:1160) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialBytes(WsRemoteEndpointImplBase.java:158) at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendBinary(WsRemoteEndpointBasic.java:56) at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendBinaryMessage(StandardWebSocketSession.java:202) at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:108) at com.itiboss.utils.FragmentationOutputStream.close(FragmentationOutputStream.java:39) at com.itiboss.utils.Utils.send(Utils.java:80) ... 21 more