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) <a...@ice-sa.com>:

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) <a...@ice-sa.com>:

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

Reply via email to