cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Getting java.lang.IllegalStateException after deploying Thingworx.war in tomcat/webapps folder

apatnaik-2
1-Visitor

Getting java.lang.IllegalStateException after deploying Thingworx.war in tomcat/webapps folder

Hi , I am getting below error after installing thingworx 7.4 in my machine .

java.lang.IllegalStateException

com.thingworx.system.ThingWorxServer.isHA(ThingWorxServer.java:867)

com.thingworx.system.ThingWorxServer.isLeader(ThingWorxServer.java:886)

com.thingworx.security.filter.ProhibitIfNotLeaderFilter.isProhibited(ProhibitIfNotLeaderFilter.java:44)

com.thingworx.security.filter.ProhibitIfNotLeaderFilter.doFilter(ProhibitIfNotLeaderFilter.java:118)

com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:52)

Did any one faced such kind of issue earlier? If so can you please tell me where is the problem

2 REPLIES 2
posipova
20-Turquoise
(To:apatnaik-2)

What is your version of Tomcat, java, which database are you using? If Postgresql: what is your db version? what does your platform-settings.json look like?

Hi , Please find the details that you are looking for

_____________________________________________________________________________________________________

    Tomcat - apache-tomcat-8.0.38

    Java    - jdk1.8.0_121

      Database - SQLEXPRADV_x64_ENU

platform-settings.json content looks like :

{

  "PlatformSettingsConfig": {

  "BasicSettings": {

  "BackupStorage": "/ThingworxBackupStorage",

  "DatabaseLogRetentionPolicy": 7,

  "EnableBackup": true,

  "EnableHA": false,

  "EnableSystemLogging": true,

  "HTTPRequestHeaderMaxLength": 2000,

  "HTTPRequestParameterMaxLength": 2000,

  "Storage": "/ThingworxStorage"

  },

  }

  ,

  "MssqlPersistenceProviderPackage": {

  "ConnectionInformation": {

  "acquireIncrement": 5,

  "acquireRetryAttempts": 3,

  "acquireRetryDelay": 10000,

  "checkoutTimeout": 1000000,

  "driverClass": "com.microsoft.sqlserver.jdbc.SQLServerDriver",

  "fetchSize": 5000,

  "idleConnectionTestPeriod": 60,

  "initialPoolSize": 5,

  "jdbcUrl": "jdbc:sqlserver://localhost:1433;databaseName=thingworx;applicationName=Thingworx;",

  "maxConnectionAge": 0,

  "maxIdleTime": 0,

  "maxIdleTimeExcessConnections": 300,

  "maxPoolSize": 100,

  "maxStatements": 100,

  "minPoolSize": 5,

  "numHelperThreads": 8,

  "password": "Test123!",

  "testConnectionOnCheckout": false,

  "unreturnedConnectionTimeout": 0,

  "username": "twadmin",

  },

  "StreamProcessorSettings": {

  "maximumBlockSize": 2500,

  "maximumQueueSize": 250000,

  "maximumWaitTime": 10000,

  "numberOfProcessingThreads": 5,

  "scanRate": 5,

  "sizeThreshold": 1000

  },

  "ValueStreamProcessorSettings": {

  "maximumBlockSize": 2500,

  "maximumWaitTime": 10000,

  "maximumQueueSize": 500000,

  "numberOfProcessingThreads": 5,

  "scanRate": 5,

  "sizeThreshold": 1000

  }

  }

  }

}

Announcements


Top Tags