【问题标题】:Thingworx Platform-settings.json file not connecting to azure DatabaseThingworx Platform-settings.json 文件未连接到 azure 数据库
【发布时间】:2018-07-02 07:19:03
【问题描述】:

我正在尝试将 Thingworx 7.1 连接到 Azure Postgresql 数据库。

我已经成功地将 Thingworx Things 指向 azure 数据库,没有任何错误。

但是当我尝试将平台设置文件中的数据库 url 设置为指向 azure 数据库时,我收到以下错误:

java.lang.Exception: Unable to initialize and start system: Connections could not be acquired from the underlying database!
    at com.thingworx.system.ThingWorxServer.loadModel(ThingWorxServer.java:448)
    at com.thingworx.system.ThingWorxServer.doHA(ThingWorxServer.java:181)
    at com.thingworx.system.ThingWorxBootstrapper.contextInitialized(ThingWorxBootstrapper.java:124)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
  *** CRITICAL ERROR ON STARTUP: Unable to initialize and start system: Connections could not be acquired from the underlying database!
  *** Web Application STATE is being set to ERROR! ***

【问题讨论】:

标签: azure thingworx azure-postgresql


【解决方案1】:

确保 platform-settings.json 中没有错误或拼写错误,并且您能够从 ThingWorx 服务器/机器远程登录 db 主机和端口以测试连接是否正常。

【讨论】:

    猜你喜欢
    • 2018-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-02
    相关资源
    最近更新 更多