Skip to main content
1-Visitor
February 5, 2016
Question

java null pointer exception

  • February 5, 2016
  • 2 replies
  • 2204 views

Hi all.

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 following instructions retrieved in the community to manage the modelprovideconfig.json file (adding "defaultValue" field for username and password, checking username and password into the "row" section of the file), still no chance to have it working properly. Any idea?

ApplicationLog.log

2016-02-05 03:50:36.442-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] OS: Windows Server 2012

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] OS arch: amd64

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] OS version: 6.2

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] Total Processors: 2

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] Default encoding: UTF-8

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] JAVA vendor: Oracle Corporation

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] JAVA version: 1.8.0_66

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] JAVA install location: C:\Program Files\Java\jre1.8.0_66

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] JVM Max Memory: 495 (MB)

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] ========================================

2016-02-05 03:50:36.443-0500 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] WebApp starting...

2016-02-05 03:50:37.557-0500 [L: INFO] [O: c.t.s.ThingWorxPersistenceHandler] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] Default Persistence Provider Name = ThingworxPersistenceProvider

2016-02-05 03:50:37.557-0500 [L: INFO] [O: c.t.s.ThingWorxPersistenceHandler] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] Default Persistence Provider Package Name = PostgresPersistenceProviderPackage

2016-02-05 03:50:37.593-0500 [L: INFO] [O: c.t.p.p.PostgresDatasource] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] Reading configuration from configTableCol

2016-02-05 03:50:37.738-0500 [L: WARN] [O: c.m.v.c.m.ActiveManagementCoordinator] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] A C3P0Registry mbean is already registered. This probably means that an application using c3p0 was undeployed, but not all PooledDataSources were closed prior to undeployment. This may lead to resource leaks over time. Please take care to close all PooledDataSources.

2016-02-05 03:50:37.832-0500 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] *** CRITICAL ERROR ON STARTUP: Improper value found for model provider configuration password, system cannot start without valid password

2016-02-05 03:50:37.833-0500 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-26] *** Web Application STATE is being set to ERROR! ***

2 replies

laltomani1-VisitorAuthor
1-Visitor
February 5, 2016

Solved putting apache/tomca into same local drive as the postgresql installation (so mandatory to be in windows local drive).

5-Regular Member
February 5, 2016

Luca, just to test, try using the default values (like twadmin; password etc) for the modelproviderconfig.json provided with the ThingWorx download throughout. Just make sure it is placed in your root drive under ThingworxPlatform folder.

laltomani1-VisitorAuthor
1-Visitor
February 5, 2016

already used default twadmin + password.

It was tied to different drive path between Postgres and TW.

thanks for suggestion!