This article outlines troubleshooting steps for Spotfire Analyst error 405 "Method Not Allowed" and provides a solution to one possible cause of this issue.
The error occurs when end users try to login using Spotfire Analyst client. The error displayed in "More information" window is:
Error message: Cannot connect to the specified server.
Before trying again, make sure that the server you connect to is a valid Spotfire Server, that the server is running, and that you are connected to the network.
WebException at Spotfire.Dxp.Framework:
The remote server returned an error: (405) Method Not Allowed. (HRESULT: 80131509)
at Spotfire.Dxp.Framework.HttpClient.NativeWebResponse.ctor(NativeHTTPClient httpClient, NativeWebRequest request)
Spotfire Analyst error 405 "Method Not Allowed" could be caused by several error conditions. Exact reason of this error could be found by reviewing Analyst client's Spotfire.Dxp.SupportDiagnostics.log and Spotfire Server's server.log file, both set to "debug" logging level.
One situation that could cause this error is incorrect LDAP server name(s) specified in Spotfire Server LDAP configuration. To verify LDAP configuration, open Spotfire Server Configuration Tool and check LDAP server names in Configuration-> Authentication tab. To confirm that LDAP servers can be reached, click on "Browse" and "Test connection" buttons.
If LDAP server names were updated, save configuration by clicking "Save configuration" button at the bottom of the window and then restart Spotfire Server service.
This is one of the ways that LDAP server name issue might appear in server.log:
INFO 2022-01-20T11:57:37,107-0800 [*Initialization*] server.lifecycle.SpotfireApplicationInitializer: Starting TIBCO Spotfire Server 11.4.4 LTS
ERROR 2022-01-20T12:04:43,007-0800 [*Initialization*] server.ldap.LdapContextFactory: Could not create any connection to LDAP server(s) ldap://dc1.<your-domain>.com:389, giving up after #4 attempts
INFO 2022-01-20T12:04:43,009-0800 [*Initialization*] spotfire.server.LifecycleManager: The application is about to be shut down.
INFO 2022-01-20T12:04:43,009-0800 [*Initialization*] spotfire.server.LifecycleManager: Shutting down TIBCO Spotfire Server. Uptime: 0 day(s), 0 hour(s), 7 minute(s), 0 second(s)
ERROR 2022-01-20T12:04:43,023-0800 [*Initialization*] web.context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapConfigFactory' defined in class path resource [applicationContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.spotfire.server.ldap.LdapConfigFactory]: Constructor threw exception; nested exception is com.spotfire.server.ServerInitializationException: Error initializing run-time properties for LDAP configuration 'LDAP'
Caused by: com.spotfire.server.ServerInitializationException: Error initializing run-time properties for LDAP configuration 'LDAP'
Caused by: javax.naming.CommunicationException: dc1.<your-domain>.com:389
Caused by: java.net.UnknownHostException: dc1.<your-domain>.com