If you modified the MAC or Linux computer's system time, such as current date is 2014, you change the OS' date to 2015, and then you found that the WSClient can not log time any more.


Troubleshooting

 

1) You can found the 413 error in the trace


ERROR core.CoreManager - [doUploadCachedAddScreenRecord] http connection error

java.io.IOException: Server returned HTTP response code: 413 for URL: https://www.worksnaps.net/mys3/dispatcher.php

 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838)

 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)

 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)

 at com.timetracking.net.RequestHelper.doRequest(RequestHelper.java:95)

 at com.timetracking.core.CoreManager.doUploadCachedAddScreenRecord(CoreManager.java:500)

 at com.timetracking.bean.CachedAddScreenRecordCommand.execute(CachedAddScreenRecordCommand.java:92)

 at com.timetracking.core.DiskCache$CheckCacheCommandThread.run(DiskCache.java:473)


2)  The cache file is very large ($home/timetracker/worksnaps/cache)



Solution:


Please do the below action:

1) Adjust the OS's date to correct. 

2) Remove the cache.xml file

3) Restart the WSClient application.