Advertisement
Guest User

Untitled

a guest
Apr 1st, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.71 KB | None | 0 0
  1. Initial configuration needed
  2. Deleting active database
  3. Unzipping database from demodatabase.zip
  4. Resetting connection.password to 'test'
  5. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  6. Using runtime properties file: openmrs-standalone-runtime.properties
  7. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  8. Using runtime properties file: openmrs-standalone-runtime.properties
  9. Working directory is /home/pamela/Downloads/openmrs-standalone-2.3.1/.
  10. Opening MySQL connection to create openmrs/test users
  11. Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  12. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  13. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  14. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  15. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  16. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  17. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  18. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
  19. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
  20. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
  21. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
  22. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2395)
  23. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2316)
  24. at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
  25. at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  26. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  27. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  28. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  29. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  30. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  31. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
  32. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
  33. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
  34. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
  35. at org.openmrs.standalone.StandaloneUtil.startupDatabaseToCreateDefaultUser(StandaloneUtil.java:422)
  36. at org.openmrs.standalone.ApplicationController.init(ApplicationController.java:256)
  37. at org.openmrs.standalone.ApplicationController.<init>(ApplicationController.java:54)
  38. at org.openmrs.standalone.ApplicationController.main(ApplicationController.java:123)
  39. Caused by: com.mysql.management.util.SQLRuntimeException: java.sql.SQLException: Access denied for user 'openmrs'@'localhost' (using password: YES)
  40. at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.alreadyStarted(ServerLauncherSocketFactory.java:160)
  41. at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.ensureMysqlStarted(ServerLauncherSocketFactory.java:82)
  42. at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.connect(ServerLauncherSocketFactory.java:72)
  43. at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:308)
  44. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2489)
  45. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2334)
  46. ... 16 more
  47. Caused by: java.sql.SQLException: Access denied for user 'openmrs'@'localhost' (using password: YES)
  48. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
  49. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  50. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  51. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)
  52. at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750)
  53. at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290)
  54. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493)
  55. at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2526)
  56. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2311)
  57. at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
  58. at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  59. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  60. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  61. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  62. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  63. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  64. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
  65. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
  66. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
  67. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
  68. at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.alreadyStarted(ServerLauncherSocketFactory.java:155)
  69. ... 21 more
  70. Initial configuration needed
  71. Deleting active database
  72. Unzipping database from demodatabase.zip
  73. Resetting connection.password to 'test'
  74. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  75. Using runtime properties file: openmrs-standalone-runtime.properties
  76. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  77. Using runtime properties file: openmrs-standalone-runtime.properties
  78. Working directory is /home/pamela/Downloads/openmrs-standalone-2.3.1/.
  79. Opening MySQL connection to create openmrs/test users
  80. [/home/pamela/Downloads/openmrs-standalone-2.3.1/database/bin/mysqld][--no-defaults][--basedir=/home/pamela/Downloads/openmrs-standalone-2.3.1/database][--max_allowed_packet=96M][--port=3316][--datadir=/home/pamela/Downloads/openmrs-standalone-2.3.1/database/data][--character-set-server=utf8][--socket=mysql.sock][--collation-server=utf8_general_ci][--pid-file=/home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid]
  81. [MysqldResource] launching mysqld (driver_launched_mysqld_1)
  82. [MysqldResource] mysqld running as process: 39572
  83. closed MySQL connection
  84. [MysqldResource] stopping mysqld (process: 39572)
  85. [MysqldResource] shutdown complete
  86. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  87. Using runtime properties file: openmrs-standalone-runtime.properties
  88. [/home/pamela/Downloads/openmrs-standalone-2.3.1/database/bin/mysqld][--no-defaults][--basedir=/home/pamela/Downloads/openmrs-standalone-2.3.1/database][--max_allowed_packet=96M][--port=3316][--datadir=/home/pamela/Downloads/openmrs-standalone-2.3.1/database/data][--character-set-server=utf8][--socket=mysql.sock][--collation-server=utf8_general_ci][--pid-file=/home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid]
  89. [MysqldResource] launching mysqld (driver_launched_mysqld_2)
  90. [MysqldResource] mysqld running as process: 39618
  91. [MysqldResource] stopping mysqld (process: 39618)
  92. [MysqldResource] shutdown complete
  93. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  94. Using runtime properties file: openmrs-standalone-runtime.properties
  95. Apr 01, 2022 4:02:10 PM org.apache.coyote.AbstractProtocol init
  96. INFO: Initializing ProtocolHandler ["http-bio-8081"]
  97. Apr 01, 2022 4:02:11 PM org.apache.catalina.startup.Embedded startInternal
  98. INFO: Starting tomcat server
  99. Apr 01, 2022 4:02:11 PM org.apache.catalina.core.StandardEngine startInternal
  100. INFO: Starting Servlet Engine: Apache Tomcat/7.0.100
  101. Apr 01, 2022 4:02:12 PM org.apache.catalina.deploy.WebXml setVersion
  102. WARNING: Unknown version string [4.0]. Default version will be used.
  103. Apr 01, 2022 4:02:14 PM org.apache.catalina.startup.TldConfig execute
  104. INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  105. Apr 01, 2022 4:02:15 PM org.apache.catalina.core.ApplicationContext log
  106. INFO: Initializing log4j from [classpath:log4j.xml]
  107. INFO - Listener.contextInitialized(173) |2022-04-01 16:02:15,396| Using runtime properties file: openmrs-standalone-runtime.properties
  108. ERROR - MarkerIgnoringBase.error(159) |2022-04-01 16:02:19,734| Failed to obtain JDBC connection
  109. java.lang.RuntimeException: Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  110. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
  111. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
  112. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
  113. at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
  114. at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
  115. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
  116. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
  117. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  118. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1705)
  119. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1695)
  120. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  121. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  122. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  123. at java.base/java.lang.Thread.run(Thread.java:829)
  124. Caused by: java.lang.Exception: Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  125. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
  126. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
  127. ... 13 more
  128. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  129. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  130. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  131. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  132. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  133. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  134. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  135. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  136. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  137. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  138. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  139. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
  140. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
  141. at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
  142. at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  143. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  144. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  145. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  146. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  147. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  148. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
  149. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  150. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
  151. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
  152. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
  153. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  154. ... 14 more
  155. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' due to underlying exception:
  156. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  157. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  158. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  159. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  160. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  161. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  162. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  163. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  164. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  165. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  166. at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3330)
  167. at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:296)
  168. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2186)
  169. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
  170. ... 28 more
  171. Caused by: java.lang.ClassCastException: class com.mysql.management.driverlaunched.ServerLauncherSocketFactory cannot be cast to class com.mysql.jdbc.SocketFactory (com.mysql.management.driverlaunched.ServerLauncherSocketFactory is in unnamed module of loader 'app'; com.mysql.jdbc.SocketFactory is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @1595a319)
  172. at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3328)
  173. ... 31 more
  174. Apr 01, 2022 4:02:24 PM org.apache.coyote.AbstractProtocol start
  175. INFO: Starting ProtocolHandler ["http-bio-8081"]
  176. ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:02:28,015| #parse() null argument
  177. ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:02:28,050| #parse() null argument
  178. Apr 01, 2022 4:02:52 PM org.apache.coyote.AbstractProtocol stop
  179. INFO: Stopping ProtocolHandler ["http-bio-8081"]
  180. ERROR - Context.getServiceContext(273) |2022-04-01 16:02:52,153| serviceContext is null. Creating new ServiceContext()
  181. WARN - LocaleUtility.getDefaultLocale(73) |2022-04-01 16:02:52,166| Unable to get locale global property value. Service not found: interface org.openmrs.api.AdministrationService
  182. Apr 01, 2022 4:02:52 PM org.apache.catalina.core.StandardContext listenerStop
  183. SEVERE: Exception sending context destroyed event to listener instance of class [org.openmrs.web.Listener]
  184. org.openmrs.api.APIException: contextDAO is null
  185. at org.openmrs.api.context.Context.getContextDAO(Context.java:167)
  186. at org.openmrs.api.context.Context.closeSession(Context.java:783)
  187. at org.openmrs.web.Listener.contextDestroyed(Listener.java:560)
  188. at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5244)
  189. at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5933)
  190. at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
  191. at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1721)
  192. at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1710)
  193. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  194. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  195. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  196. at java.base/java.lang.Thread.run(Thread.java:829)
  197.  
  198. Apr 01, 2022 4:02:52 PM org.apache.catalina.core.ApplicationContext log
  199. INFO: Shutting down log4j
  200. Apr 01, 2022 4:02:52 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
  201. SEVERE: The web application [/openmrs-standalone] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  202. Apr 01, 2022 4:02:52 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  203. SEVERE: The web application [/openmrs-standalone] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
  204. Apr 01, 2022 4:02:52 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  205. SEVERE: The web application [/openmrs-standalone] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
  206. [MysqldResource] Mysqld not running. No file: /home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid
  207. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  208. Using runtime properties file: openmrs-standalone-runtime.properties
  209. Apr 01, 2022 4:05:13 PM org.apache.coyote.AbstractProtocol init
  210. INFO: Initializing ProtocolHandler ["http-bio-8081"]
  211. Apr 01, 2022 4:05:13 PM org.apache.catalina.startup.Embedded startInternal
  212. INFO: Starting tomcat server
  213. Apr 01, 2022 4:05:13 PM org.apache.catalina.core.StandardEngine startInternal
  214. INFO: Starting Servlet Engine: Apache Tomcat/7.0.100
  215. Apr 01, 2022 4:05:13 PM org.apache.catalina.deploy.WebXml setVersion
  216. WARNING: Unknown version string [4.0]. Default version will be used.
  217. Apr 01, 2022 4:05:15 PM org.apache.catalina.startup.TldConfig execute
  218. INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  219. Apr 01, 2022 4:05:16 PM org.apache.catalina.core.ApplicationContext log
  220. INFO: Initializing log4j from [classpath:log4j.xml]
  221. INFO - Listener.contextInitialized(173) |2022-04-01 16:05:16,510| Using runtime properties file: openmrs-standalone-runtime.properties
  222. ERROR - MarkerIgnoringBase.error(159) |2022-04-01 16:05:20,757| Failed to obtain JDBC connection
  223. java.lang.RuntimeException: Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  224. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
  225. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
  226. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
  227. at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
  228. at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
  229. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
  230. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
  231. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  232. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1705)
  233. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1695)
  234. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  235. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  236. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  237. at java.base/java.lang.Thread.run(Thread.java:829)
  238. Caused by: java.lang.Exception: Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  239. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
  240. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
  241. ... 13 more
  242. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  243. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  244. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  245. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  246. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  247. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  248. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  249. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  250. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  251. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  252. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  253. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
  254. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
  255. at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
  256. at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  257. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  258. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  259. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  260. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  261. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  262. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
  263. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  264. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
  265. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
  266. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
  267. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  268. ... 14 more
  269. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' due to underlying exception:
  270. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  271. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  272. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  273. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  274. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  275. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  276. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  277. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  278. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  279. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  280. at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3330)
  281. at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:296)
  282. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2186)
  283. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
  284. ... 28 more
  285. Caused by: java.lang.ClassCastException: class com.mysql.management.driverlaunched.ServerLauncherSocketFactory cannot be cast to class com.mysql.jdbc.SocketFactory (com.mysql.management.driverlaunched.ServerLauncherSocketFactory is in unnamed module of loader 'app'; com.mysql.jdbc.SocketFactory is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4f789910)
  286. at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3328)
  287. ... 31 more
  288. Apr 01, 2022 4:05:25 PM org.apache.coyote.AbstractProtocol start
  289. INFO: Starting ProtocolHandler ["http-bio-8081"]
  290. ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:05:28,515| #parse() null argument
  291. ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:05:28,562| #parse() null argument
  292. Apr 01, 2022 4:06:37 PM org.apache.coyote.AbstractProtocol stop
  293. INFO: Stopping ProtocolHandler ["http-bio-8081"]
  294. ERROR - Context.getServiceContext(273) |2022-04-01 16:06:37,819| serviceContext is null. Creating new ServiceContext()
  295. WARN - LocaleUtility.getDefaultLocale(73) |2022-04-01 16:06:37,868| Unable to get locale global property value. Service not found: interface org.openmrs.api.AdministrationService
  296. Apr 01, 2022 4:06:37 PM org.apache.catalina.core.StandardContext listenerStop
  297. SEVERE: Exception sending context destroyed event to listener instance of class [org.openmrs.web.Listener]
  298. org.openmrs.api.APIException: contextDAO is null
  299. at org.openmrs.api.context.Context.getContextDAO(Context.java:167)
  300. at org.openmrs.api.context.Context.closeSession(Context.java:783)
  301. at org.openmrs.web.Listener.contextDestroyed(Listener.java:560)
  302. at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5244)
  303. at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5933)
  304. at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
  305. at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1721)
  306. at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1710)
  307. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  308. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  309. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  310. at java.base/java.lang.Thread.run(Thread.java:829)
  311.  
  312. Apr 01, 2022 4:06:37 PM org.apache.catalina.core.ApplicationContext log
  313. INFO: Shutting down log4j
  314. Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
  315. SEVERE: The web application [/openmrs-standalone] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  316. Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
  317. SEVERE: The web application [/openmrs-standalone] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  318. Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
  319. SEVERE: The web application [/openmrs-standalone] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  320. Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  321. SEVERE: The web application [/openmrs-standalone] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
  322. Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  323. SEVERE: The web application [/openmrs-standalone] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
  324. [MysqldResource] Mysqld not running. No file: /home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid
  325. Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
  326. Using runtime properties file: openmrs-standalone-runtime.properties
  327. Apr 01, 2022 4:07:56 PM org.apache.coyote.AbstractProtocol init
  328. INFO: Initializing ProtocolHandler ["http-bio-8081"]
  329. Apr 01, 2022 4:07:56 PM org.apache.catalina.startup.Embedded startInternal
  330. INFO: Starting tomcat server
  331. Apr 01, 2022 4:07:56 PM org.apache.catalina.core.StandardEngine startInternal
  332. INFO: Starting Servlet Engine: Apache Tomcat/7.0.100
  333. Apr 01, 2022 4:07:57 PM org.apache.catalina.deploy.WebXml setVersion
  334. WARNING: Unknown version string [4.0]. Default version will be used.
  335. Apr 01, 2022 4:07:59 PM org.apache.catalina.startup.TldConfig execute
  336. INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  337. Apr 01, 2022 4:07:59 PM org.apache.catalina.core.ApplicationContext log
  338. INFO: Initializing log4j from [classpath:log4j.xml]
  339. INFO - Listener.contextInitialized(173) |2022-04-01 16:08:00,124| Using runtime properties file: openmrs-standalone-runtime.properties
  340. ERROR - MarkerIgnoringBase.error(159) |2022-04-01 16:08:04,390| Failed to obtain JDBC connection
  341. java.lang.RuntimeException: Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  342. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
  343. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
  344. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
  345. at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
  346. at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
  347. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
  348. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
  349. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  350. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1705)
  351. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1695)
  352. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  353. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  354. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  355. at java.base/java.lang.Thread.run(Thread.java:829)
  356. Caused by: java.lang.Exception: Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  357. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
  358. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
  359. ... 13 more
  360. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  361. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  362. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  363. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  364. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  365. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  366. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  367. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  368. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  369. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  370. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  371. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
  372. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
  373. at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
  374. at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  375. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  376. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  377. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  378. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  379. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  380. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
  381. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  382. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
  383. at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
  384. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
  385. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  386. ... 14 more
  387. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' due to underlying exception:
  388. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  389. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  390. at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  391. at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
  392. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  393. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  394. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  395. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  396. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  397. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  398. at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3330)
  399. at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:296)
  400. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2186)
  401. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
  402. ... 28 more
  403. Caused by: java.lang.ClassCastException: class com.mysql.management.driverlaunched.ServerLauncherSocketFactory cannot be cast to class com.mysql.jdbc.SocketFactory (com.mysql.management.driverlaunched.ServerLauncherSocketFactory is in unnamed module of loader 'app'; com.mysql.jdbc.SocketFactory is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4e1d4dbb)
  404. at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3328)
  405. ... 31 more
  406. Apr 01, 2022 4:08:08 PM org.apache.coyote.AbstractProtocol start
  407. INFO: Starting ProtocolHandler ["http-bio-8081"]
  408. ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:08:12,311| #parse() null argument
  409. ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:08:12,345| #parse() null argument
  410. Apr 01, 2022 4:08:19 PM org.apache.coyote.AbstractProtocol stop
  411. INFO: Stopping ProtocolHandler ["http-bio-8081"]
  412. ERROR - Context.getServiceContext(273) |2022-04-01 16:08:19,822| serviceContext is null. Creating new ServiceContext()
  413. WARN - LocaleUtility.getDefaultLocale(73) |2022-04-01 16:08:19,885| Unable to get locale global property value. Service not found: interface org.openmrs.api.AdministrationService
  414. Apr 01, 2022 4:08:19 PM org.apache.catalina.core.StandardContext listenerStop
  415. SEVERE: Exception sending context destroyed event to listener instance of class [org.openmrs.web.Listener]
  416. org.openmrs.api.APIException: contextDAO is null
  417. at org.openmrs.api.context.Context.getContextDAO(Context.java:167)
  418. at org.openmrs.api.context.Context.closeSession(Context.java:783)
  419. at org.openmrs.web.Listener.contextDestroyed(Listener.java:560)
  420. at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5244)
  421. at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5933)
  422. at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
  423. at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1721)
  424. at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1710)
  425. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  426. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  427. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  428. at java.base/java.lang.Thread.run(Thread.java:829)
  429.  
  430. Apr 01, 2022 4:08:19 PM org.apache.catalina.core.ApplicationContext log
  431. INFO: Shutting down log4j
  432. Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
  433. SEVERE: The web application [/openmrs-standalone] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  434. Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
  435. SEVERE: The web application [/openmrs-standalone] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  436. Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
  437. SEVERE: The web application [/openmrs-standalone] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
  438. Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  439. SEVERE: The web application [/openmrs-standalone] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
  440. Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  441. SEVERE: The web application [/openmrs-standalone] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
  442. [MysqldResource] Mysqld not running. No file: /home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid
  443. Apr 01, 2022 4:08:20 PM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
  444. INFO: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement