Client receives ERROR_SOCKET_COMMUNICATION when using the Symantec Scan Engine 5.2 Java API
|Article:TECH132054|||||Created: 2010-01-28|||||Updated: 2010-01-28|||||Article URL http://www.symantec.com/docs/TECH132054|
Why does the client/connector receive the exception ERROR_SOCKET_COMMUNICATION when scanning files that take several seconds to scan when using the Symantec Scan Engine 5.2 Java API?
The client/connector using our Java API receives ERROR_SOCKET_COMMUNICATION for scan requests sent to Symantec Scan Engine.
The ERROR_SOCKET_COMMUNICATION error can be thrown if our Java API is not able to open a connection with Scan Engine. It can also be caused if the API runs into the readWriteTime timeout that is set in the createScanEngine method of the Java API. By default this parameter is set to 3 seconds. To confirm that the readWriteTime parameter is being reached, check the Symantec Scan Engine log files with Verbose logging configured. Then confirm that one the file is being scanned even though the API is throwing the ERROR_SOCKET_COMMUNICATION error, and second in the log file also check how long it took Scan Engine to scan the file.
The readWriteTime parameter is set in the Java API createScanEngine method. To increase this parameter, go to the client/connector that is using the Symantec Scan Engine Java API and find the location were the createScanEngine method is being called. If the readWriteTime and failRetryTime are not set it uses the default which is 3 seconds for readWriteTime and 1 second for failRetryTime, the time is in milliseconds. Here is an example of setting the readWriteTime to 60 seconds, and the failRetryTime to 10 seconds, If the readWriteTime timeout is not the issue, confirm that Symantec Scan Engine is up and listening on port 1344 and that the client/connector can reach the server that Symantec Scan Engine is running on.
“ScanEngine scanEngine = ScanEngine.createScanEngine(scanEnginesForScanning, 60000, 10000);”
If the readWriteTime timeout is not the issue, confirm that Symantec Scan Engine is up and listening on port 1344 and that the client/connector can reach the server that Symantec Scan Engine is running on.
Please contact Support for more information.
Article URL http://www.symantec.com/docs/TECH132054