0

TW 6.5.5 with postgres properly configured, after proper deploying of war file, provide a java null pointer exception. It seems tied to improper credentials (check application.log below) but also folow instructions retrieved on the web to manage the modelprovideconfig.json file, still no chance to have it working properly. Any idea?

016-02-04 11:36:36.372-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] OS: Windows Server 2012
2016-02-04 11:36:36.372-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] OS arch: amd64
2016-02-04 11:36:36.372-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] OS version: 6.2
2016-02-04 11:36:36.372-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Total Processors: 2
2016-02-04 11:36:36.373-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Default encoding: UTF-8
2016-02-04 11:36:36.373-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JAVA vendor: Oracle Corporation
2016-02-04 11:36:36.373-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JAVA version: 1.8.0_66
2016-02-04 11:36:36.373-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JAVA install location: C:\Program Files\Java\jre1.8.0_66
2016-02-04 11:36:36.374-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JVM Max Memory: 495 (MB)
2016-02-04 11:36:36.374-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ========================================
2016-02-04 11:36:36.374-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] WebApp starting...
2016-02-04 11:36:37.533-0500 [L: INFO] [O: c.t.s.ThingWorxPersistenceHandler] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Default Persistence Provider Name = ThingworxPersistenceProvider
2016-02-04 11:36:37.534-0500 [L: INFO] [O: c.t.s.ThingWorxPersistenceHandler] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Default Persistence Provider Package Name = PostgresPersistenceProviderPackage
2016-02-04 11:36:37.585-0500 [L: INFO] [O: c.t.p.p.PostgresDatasource] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Reading configuration from configTableCol
2016-02-04 11:36:38.102-0500 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] *** CRITICAL ERROR ON STARTUP: Improper value found for model provider configuration password, system cannot start without valid password
2016-02-04 11:36:38.102-0500 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] *** Web Application STATE is being set to ERROR! ***
4

2 回答 2

0

我在您的堆栈跟踪中找到了它。你正在尝试做一些你需要密码的事情。您正在做一些普通用户不会做的事情,它可能会在您的系统周围出错,因为不需要密码的情况并不常见。

于 2020-03-21T19:07:36.563 回答
0

我找到了解决方案!Postgresql 只能安装在 windows 驱动器 (c:) 下:在不同的情况下(其他本地驱动器)安装失败。apache/tomcat(最后是我的 webapp)也必须属于同一个磁盘(这会导致 java nullpointer 异常)。一种可能的替代方法是将固定代码集成到 apache/tomca server.xml config.xml 文件中,以便嵌入所有 apache/tomcat Web 应用程序凭据。由于我的 webapp 指向一个 .json 文件并引用一个 postgresql 实例,所以除了将它放入本地 rrive 之外没有机会 :-) 仅此而已。

于 2016-02-05T16:54:39.240 回答