Product: TIBCO Spotfire®
Information link fails with error 'Unrecognized Windows Sockets error: 0: recv failed'
There could be scenarios where information links fail while opening reports on TIBCO Spotfire Analyst or Web Player or while running Scheduled Updates and Automation jobs with error in server.log as 'Unrecognized Windows Sockets error: 0: recv failed'. This is because of communication issue between TIBCO Spotfire Server and database used in the information link.
For example:
Schedule Updates having information links fail to execute and you could see below error in sever.log. Here information link is using Microsoft SQL database.
ERROR 2019-04-23T05:13:41,026-0500 [SPOTFIRESYSTEM\scheduledupdates, #62, #106025] api.common.InformationModelServiceCommon: An Internal Error has occurred. Failed to check the existance of id 730e789f-d2f5-4e15-82f5-2c8347e265ed com.spotfire.ws.api.common.InformationModelWebServiceException: An Internal Error has occurred. Failed to check the existance of id 730e789f-d2f5-4e15-82f5-2c8347e265ed ... Caused by: com.spotfire.ws.im.IMException: Failed to check the existance of id 730e789f-d2f5-4e15-82f5-2c8347e265ed ... Caused by: com.spotfire.ws.library.StorageException: Unrecognized Windows Sockets error: 0: recv failed, DATABASE_ERROR ... Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Unrecognized Windows Sockets error: 0: recv failed
'Unrecognized Windows Sockets error: 0: recv failed' error is seen when JVM has problems opening or closing sockets at the Operating System level when both IPv4 and IPv6 are enabled on a Windows server.
To fix this problem JVM will need to run over IPv4, if possible.To do this you need to add the following JVM option: -Djava.net.preferIPv4Stack=true
Procedure:
- Open the appropriate file in a text editor:
- For Spotfire Server on Windows
- If you are running TIBCO Spotfire Server as a Windows service, open the <installation dir>/tomcat/bin/service.bat file.
- If you are not running TIBCO Spotfire Server as a Windows service, open the <installation dir>/tomcat/bin/setenv.bat file.
- For Spotfire Server on Linux
- Open the <installation dir>/tomcat/bin/setenv.sh file.
- For Spotfire Server on Windows
- Locate the variable named JAVA_OPTS.
- Enter the following parameter in the JAVA_OPTS section: -Djava.net.preferIPv4Stack=true. The file will look similar to this (the new parameter is highlighted in yellow):
- Save and close the file.
- Restart TIBCO Spotfire Server.
External:
- https://confluence.atlassian.com/confkb/index-queue-won-t-flush-automatically-caused-by-java-net-socketexception-unrecognized-windows-sockets-error-0-recv-failed-errors-thrown-780863560.html
- https://stackoverflow.com/questions/45797515/got-unrecognized-windows-sockets-error-0-recv-failed-while-posting-message%E2%80%8B%E2%80%8B%E2%80%8B%E2%80%8B%E2%80%8B%E2%80%8B%E2%80%8B
Comments
0 comments
Article is closed for comments.