Problem:
There could be many different issues that could cause Spotfire Service for Python to fail to run or install successfully. One simple cause of this issue is when Python Service version does not support current version of Spotfire Server. This can result in errors similar to these:
INFO 2024-02-21T17:18:08,267-0500 [main] spotfire.topology.ServiceMain: Starting ServiceMain using Java 17.0.5 with PID 1088 (D:\tibco\tsnm\12.0.3\nm\services\Python Service Windows-1.17.0.83-646e15ea-7907-4d6c-99b8-281ed94ff0fa\lib\service-core.jar started by SPOTFIREPRD$ in D:\tibco\tsnm\12.0.3\nm\services\Python Service Windows-1.17.0.83-646e15ea-7907-4d6c-99b8-281ed94ff0fa)
D:\tibco\tsnm\12.0.3\jdk
WARN 2024-02-21T17:18:09,724-0500 [main] servlet.context.AnnotationConfigServletWebServerApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server
ERROR 2024-02-21T17:18:09,767-0500 [main] springframework.boot.SpringApplication: Application run failed
...
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webServerFactory' defined in class path resource [com/tibco/spotfire/topology/ServiceJettyConfig.class]: Unsatisfied dependency expressed through method 'webServerFactory' parameter 9: Error creating bean with name 'sslContextFactory' defined in class path resource [com/tibco/spotfire/topology/ServiceJettyConfig.class]: Unsatisfied dependency expressed through method 'sslContextFactory' parameter 1: Failed to convert value of type 'java.lang.String' to required type 'int'; For input string: "$nmRegistrationPort$"
...
Caused by: java.lang.NumberFormatException: For input string: "$nmRegistrationPort$"
… 8 more
Resolution:
Please check Service for Python system requirements and make sure that you are using the version of it that matches your Spotfire Server version:
https://docs.tibco.com/pub/spotfire/general/sr/sr/topics/tibco_spotfire_service_for_python.html
Comments
0 comments
Article is closed for comments.