Failed to classify the following file: abc.doc - javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out
Problem
Failed to classify the following file: abc.doc - javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out
Error Message
Error(s) seen in the \Program Files\DataInsight\log\vic0.0_err.log ...
2019-06-13 11:29:56 SEVERE: #{311} [ClassifyJob$ClassifierThread.classify] Failed to classify the following file: abc.doc
javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out
at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:481)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
...
2019-06-13 11:29:57 SEVERE: #{311} [ClassifyJob$ClassifierThread.classify] Failed to classify the following file: def.xls
javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out
at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:481)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
...
Cause
Possibly due to some connection related performance issue, the classifier process has taken more than the default allowable timeout of 20 minutes (classifierTimeout: 20m).
Solution
On the Management Server's Classification Configuration file "\Program Files\DataInsight\vic\vic-service\vic-default-config.yml"
Edit the following the value for classifierTimeout to a higher number (i.e. 60m, 120m etc),
# Maximum time to classify a single document. Covers the full time from receipt of request until return of results.
# Note that a classification request may time out earlier if part of the operation (e.g. text extraction) exceeds
# the maximum allowed proportion of this time.
classifierTimeout: 20m <------------------------------------ Increase this value to a higher value (i.e. 60m, 120m etc).