技术文章 - CS316790

ThingWorx平台启动时出现“com.typesafe.config.ConfigException$Parse”错误

已修改: 11-Dec-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 8.1 to 9.6

说明

  • 由于404 error ,无法访问 ThingWorx Composer。
  • 修改<ThingworxPlatform>\platform-settings.json 文件后,Thingworx 无法启动。
  • 启动时,在<ThingworxStorage>\ApplicationLog.log中记录了com.typesafe.config.ConfigException$Parse错误。
  • 可能出现以下错误:
    • 请注意,具体错误信息可能因语法问题在platform-settings.json 文件中的位置而异。
      • <ThingworxStorage>\logs 目录下的ApplicationLog.log 文件中存在错误:
        • <Date Time> [L: ERROR] [O: ctsThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [P: PLATFORM_ID_IS_UNDEFINED] [T: localhost-startStop-2] com.typesafe.config.ConfigException$Parse: String: 30: expecting a field name after a comma, got a close brace } instead (if you intended '}' to be part of a key or string value, try enclosing the key or value in double quotes)
          <Date Time> [L: ERROR] [O: ctsThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [P: PLATFORM_ID_IS_UNDEFINED] [T: localhost-startStop-2] *** Web Application STATE is being set to ERROR! ***
      • <Tomcat Home>\logs 目录下的catalina 日志中存在错误
        • SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
          SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/Thingworx] startup failed due to previous errors
          .....
          SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Could not contact [localhost:8005] (base port [8005] and offset [0]). Tomcat may not be running.
          SEVERE [main] org.apache.catalina.startup.Catalina.stopServer Error stopping Catalina
      • localhost 日志<Tomcat Home>\logs目录下出现以下信息之一
        • SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [com.thingworx.system.ThingworxLogbackListener]
          com.thingworx.exceptions.ConfigurationException: com.typesafe.config.ConfigException$Parse: String: 16: Expecting close brace } or a comma, got 'ExtensionPackageImportPolicy' (STRING) (if you intended 'ExtensionPackageImportPolicy' (STRING) to be part of a key or string value, try enclosing the key or value in double quotes)
        • SEVERE [localhost-startStop-2] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [com.thingworx.system.ThingworxLogbackListener]
          com.thingworx.exceptions.ConfigurationException: com.typesafe.config.ConfigException$Parse:
          String: 30: expecting a field name after a comma, got a close brace } instead (if you intended '}' to be part of a key or string value, try enclosing the key or value in double quotes)
        • Caused by: com.thingworx.exceptions.ConfigurationException: com.typesafe.config.ConfigException$Parse: String: 74: Expecting a value but got wrong token: 'tab' (JSON does not allow unescaped tab in quoted strings, use a backslash escape) (if you intended 'tab' (JSON does not allow unescaped tab in quoted strings, use a backslash escape) to be part of a key or string value, try enclosing the key or value in double quotes
这是文章 316790 的 PDF 版本,可能已过期。最新版本 CS316790