Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Initial configuration needed
- Deleting active database
- Unzipping database from demodatabase.zip
- Resetting connection.password to 'test'
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- Working directory is /home/pamela/Downloads/openmrs-standalone-2.3.1/.
- Opening MySQL connection to create openmrs/test users
- Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
- at com.mysql.jdbc.Util.getInstance(Util.java:386)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2395)
- at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2316)
- at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
- at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
- at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
- at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
- at org.openmrs.standalone.StandaloneUtil.startupDatabaseToCreateDefaultUser(StandaloneUtil.java:422)
- at org.openmrs.standalone.ApplicationController.init(ApplicationController.java:256)
- at org.openmrs.standalone.ApplicationController.<init>(ApplicationController.java:54)
- at org.openmrs.standalone.ApplicationController.main(ApplicationController.java:123)
- Caused by: com.mysql.management.util.SQLRuntimeException: java.sql.SQLException: Access denied for user 'openmrs'@'localhost' (using password: YES)
- at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.alreadyStarted(ServerLauncherSocketFactory.java:160)
- at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.ensureMysqlStarted(ServerLauncherSocketFactory.java:82)
- at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.connect(ServerLauncherSocketFactory.java:72)
- at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:308)
- at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2489)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2334)
- ... 16 more
- Caused by: java.sql.SQLException: Access denied for user 'openmrs'@'localhost' (using password: YES)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)
- at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750)
- at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290)
- at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493)
- at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2526)
- at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2311)
- at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
- at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
- at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
- at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
- at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.alreadyStarted(ServerLauncherSocketFactory.java:155)
- ... 21 more
- Initial configuration needed
- Deleting active database
- Unzipping database from demodatabase.zip
- Resetting connection.password to 'test'
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- Working directory is /home/pamela/Downloads/openmrs-standalone-2.3.1/.
- Opening MySQL connection to create openmrs/test users
- [/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]
- [MysqldResource] launching mysqld (driver_launched_mysqld_1)
- [MysqldResource] mysqld running as process: 39572
- closed MySQL connection
- [MysqldResource] stopping mysqld (process: 39572)
- [MysqldResource] shutdown complete
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- [/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]
- [MysqldResource] launching mysqld (driver_launched_mysqld_2)
- [MysqldResource] mysqld running as process: 39618
- [MysqldResource] stopping mysqld (process: 39618)
- [MysqldResource] shutdown complete
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- Apr 01, 2022 4:02:10 PM org.apache.coyote.AbstractProtocol init
- INFO: Initializing ProtocolHandler ["http-bio-8081"]
- Apr 01, 2022 4:02:11 PM org.apache.catalina.startup.Embedded startInternal
- INFO: Starting tomcat server
- Apr 01, 2022 4:02:11 PM org.apache.catalina.core.StandardEngine startInternal
- INFO: Starting Servlet Engine: Apache Tomcat/7.0.100
- Apr 01, 2022 4:02:12 PM org.apache.catalina.deploy.WebXml setVersion
- WARNING: Unknown version string [4.0]. Default version will be used.
- Apr 01, 2022 4:02:14 PM org.apache.catalina.startup.TldConfig execute
- 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.
- Apr 01, 2022 4:02:15 PM org.apache.catalina.core.ApplicationContext log
- INFO: Initializing log4j from [classpath:log4j.xml]
- INFO - Listener.contextInitialized(173) |2022-04-01 16:02:15,396| Using runtime properties file: openmrs-standalone-runtime.properties
- ERROR - MarkerIgnoringBase.error(159) |2022-04-01 16:02:19,734| Failed to obtain JDBC connection
- 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
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
- at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
- at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
- at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1705)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1695)
- at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
- at java.base/java.lang.Thread.run(Thread.java:829)
- 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
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
- ... 13 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.Util.getInstance(Util.java:408)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
- at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
- at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
- at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
- at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
- at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
- ... 14 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' due to underlying exception:
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.Util.getInstance(Util.java:408)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
- at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3330)
- at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:296)
- at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2186)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
- ... 28 more
- 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)
- at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3328)
- ... 31 more
- Apr 01, 2022 4:02:24 PM org.apache.coyote.AbstractProtocol start
- INFO: Starting ProtocolHandler ["http-bio-8081"]
- ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:02:28,015| #parse() null argument
- ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:02:28,050| #parse() null argument
- Apr 01, 2022 4:02:52 PM org.apache.coyote.AbstractProtocol stop
- INFO: Stopping ProtocolHandler ["http-bio-8081"]
- ERROR - Context.getServiceContext(273) |2022-04-01 16:02:52,153| serviceContext is null. Creating new ServiceContext()
- 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
- Apr 01, 2022 4:02:52 PM org.apache.catalina.core.StandardContext listenerStop
- SEVERE: Exception sending context destroyed event to listener instance of class [org.openmrs.web.Listener]
- org.openmrs.api.APIException: contextDAO is null
- at org.openmrs.api.context.Context.getContextDAO(Context.java:167)
- at org.openmrs.api.context.Context.closeSession(Context.java:783)
- at org.openmrs.web.Listener.contextDestroyed(Listener.java:560)
- at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5244)
- at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5933)
- at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
- at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1721)
- at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1710)
- at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
- at java.base/java.lang.Thread.run(Thread.java:829)
- Apr 01, 2022 4:02:52 PM org.apache.catalina.core.ApplicationContext log
- INFO: Shutting down log4j
- Apr 01, 2022 4:02:52 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
- 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.
- Apr 01, 2022 4:02:52 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
- 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.
- Apr 01, 2022 4:02:52 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
- 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.
- [MysqldResource] Mysqld not running. No file: /home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- Apr 01, 2022 4:05:13 PM org.apache.coyote.AbstractProtocol init
- INFO: Initializing ProtocolHandler ["http-bio-8081"]
- Apr 01, 2022 4:05:13 PM org.apache.catalina.startup.Embedded startInternal
- INFO: Starting tomcat server
- Apr 01, 2022 4:05:13 PM org.apache.catalina.core.StandardEngine startInternal
- INFO: Starting Servlet Engine: Apache Tomcat/7.0.100
- Apr 01, 2022 4:05:13 PM org.apache.catalina.deploy.WebXml setVersion
- WARNING: Unknown version string [4.0]. Default version will be used.
- Apr 01, 2022 4:05:15 PM org.apache.catalina.startup.TldConfig execute
- 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.
- Apr 01, 2022 4:05:16 PM org.apache.catalina.core.ApplicationContext log
- INFO: Initializing log4j from [classpath:log4j.xml]
- INFO - Listener.contextInitialized(173) |2022-04-01 16:05:16,510| Using runtime properties file: openmrs-standalone-runtime.properties
- ERROR - MarkerIgnoringBase.error(159) |2022-04-01 16:05:20,757| Failed to obtain JDBC connection
- 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
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
- at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
- at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
- at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1705)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1695)
- at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
- at java.base/java.lang.Thread.run(Thread.java:829)
- 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
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
- ... 13 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.Util.getInstance(Util.java:408)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
- at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
- at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
- at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
- at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
- at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
- ... 14 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' due to underlying exception:
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.Util.getInstance(Util.java:408)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
- at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3330)
- at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:296)
- at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2186)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
- ... 28 more
- 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)
- at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3328)
- ... 31 more
- Apr 01, 2022 4:05:25 PM org.apache.coyote.AbstractProtocol start
- INFO: Starting ProtocolHandler ["http-bio-8081"]
- ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:05:28,515| #parse() null argument
- ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:05:28,562| #parse() null argument
- Apr 01, 2022 4:06:37 PM org.apache.coyote.AbstractProtocol stop
- INFO: Stopping ProtocolHandler ["http-bio-8081"]
- ERROR - Context.getServiceContext(273) |2022-04-01 16:06:37,819| serviceContext is null. Creating new ServiceContext()
- 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
- Apr 01, 2022 4:06:37 PM org.apache.catalina.core.StandardContext listenerStop
- SEVERE: Exception sending context destroyed event to listener instance of class [org.openmrs.web.Listener]
- org.openmrs.api.APIException: contextDAO is null
- at org.openmrs.api.context.Context.getContextDAO(Context.java:167)
- at org.openmrs.api.context.Context.closeSession(Context.java:783)
- at org.openmrs.web.Listener.contextDestroyed(Listener.java:560)
- at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5244)
- at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5933)
- at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
- at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1721)
- at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1710)
- at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
- at java.base/java.lang.Thread.run(Thread.java:829)
- Apr 01, 2022 4:06:37 PM org.apache.catalina.core.ApplicationContext log
- INFO: Shutting down log4j
- Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
- 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.
- Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
- 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.
- Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
- 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.
- Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
- 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.
- Apr 01, 2022 4:06:37 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
- 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.
- [MysqldResource] Mysqld not running. No file: /home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid
- Attempting to load properties file in current directory: openmrs-standalone-runtime.properties
- Using runtime properties file: openmrs-standalone-runtime.properties
- Apr 01, 2022 4:07:56 PM org.apache.coyote.AbstractProtocol init
- INFO: Initializing ProtocolHandler ["http-bio-8081"]
- Apr 01, 2022 4:07:56 PM org.apache.catalina.startup.Embedded startInternal
- INFO: Starting tomcat server
- Apr 01, 2022 4:07:56 PM org.apache.catalina.core.StandardEngine startInternal
- INFO: Starting Servlet Engine: Apache Tomcat/7.0.100
- Apr 01, 2022 4:07:57 PM org.apache.catalina.deploy.WebXml setVersion
- WARNING: Unknown version string [4.0]. Default version will be used.
- Apr 01, 2022 4:07:59 PM org.apache.catalina.startup.TldConfig execute
- 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.
- Apr 01, 2022 4:07:59 PM org.apache.catalina.core.ApplicationContext log
- INFO: Initializing log4j from [classpath:log4j.xml]
- INFO - Listener.contextInitialized(173) |2022-04-01 16:08:00,124| Using runtime properties file: openmrs-standalone-runtime.properties
- ERROR - MarkerIgnoringBase.error(159) |2022-04-01 16:08:04,390| Failed to obtain JDBC connection
- 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
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
- at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
- at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
- at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1705)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1695)
- at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
- at java.base/java.lang.Thread.run(Thread.java:829)
- 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
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
- ... 13 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.Util.getInstance(Util.java:408)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
- at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
- at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
- at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
- at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
- at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
- at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
- ... 14 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.mysql.management.driverlaunched.ServerLauncherSocketFactory' due to underlying exception:
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
- at com.mysql.jdbc.Util.getInstance(Util.java:408)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
- at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3330)
- at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:296)
- at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2186)
- at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
- ... 28 more
- 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)
- at com.mysql.jdbc.MysqlIO.createSocketFactory(MysqlIO.java:3328)
- ... 31 more
- Apr 01, 2022 4:08:08 PM org.apache.coyote.AbstractProtocol start
- INFO: Starting ProtocolHandler ["http-bio-8081"]
- ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:08:12,311| #parse() null argument
- ERROR - CommonsLogLogChute.log(96) |2022-04-01 16:08:12,345| #parse() null argument
- Apr 01, 2022 4:08:19 PM org.apache.coyote.AbstractProtocol stop
- INFO: Stopping ProtocolHandler ["http-bio-8081"]
- ERROR - Context.getServiceContext(273) |2022-04-01 16:08:19,822| serviceContext is null. Creating new ServiceContext()
- 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
- Apr 01, 2022 4:08:19 PM org.apache.catalina.core.StandardContext listenerStop
- SEVERE: Exception sending context destroyed event to listener instance of class [org.openmrs.web.Listener]
- org.openmrs.api.APIException: contextDAO is null
- at org.openmrs.api.context.Context.getContextDAO(Context.java:167)
- at org.openmrs.api.context.Context.closeSession(Context.java:783)
- at org.openmrs.web.Listener.contextDestroyed(Listener.java:560)
- at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5244)
- at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5933)
- at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
- at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1721)
- at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1710)
- at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
- at java.base/java.lang.Thread.run(Thread.java:829)
- Apr 01, 2022 4:08:19 PM org.apache.catalina.core.ApplicationContext log
- INFO: Shutting down log4j
- Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
- 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.
- Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
- 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.
- Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
- 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.
- Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
- 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.
- Apr 01, 2022 4:08:19 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
- 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.
- [MysqldResource] Mysqld not running. No file: /home/pamela/Downloads/openmrs-standalone-2.3.1/database/data/MysqldResource.pid
- Apr 01, 2022 4:08:20 PM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
- 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