Answer the question
In order to leave comments, you need to log in
Database connection initialization error?
VPS. OS Debian 9 (MariaDB and Java installed)
[22.03.19 13:46:54] DatabaseFactory: Failed to init database connections
java.lang.RuntimeException: Could not create datasource class: org.mariadb.jdbc.Driver
at com.zaxxer.hikari.HikariPool.<init>(HikariPool.java:94)
at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:51)
at ru.l2code.sql.HikariDatabaseFactory.init(HikariDatabaseFactory.java:34)
at ru.l2code.sql.DatabaseFactoryBuilder.build(DatabaseFactoryBuilder.java:59)
at ru.l2code.loginserver.L2LoginServer.<init>(L2LoginServer.java:94)
at ru.l2code.loginserver.L2LoginServer.main(L2LoginServer.java:71)
Caused by: java.lang.ClassNotFoundException: org.mariadb.jdbc.Driver
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.zaxxer.hikari.HikariPool.<init>(HikariPool.java:88)
... 5 more
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] System Time: 22-03-2019 01:46:54 PM
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] OS: Linux Build: 2.6.32-042stab127.2
[22.03.19 13:46:54] OS Arch: amd64
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] Avaible CPU(s): 2
[22.03.19 13:46:54] Processor(s) Identifier: null
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] Runtime Information
[22.03.19 13:46:54] Current Free Heap Size: 24 mb
[22.03.19 13:46:54] Current Heap Size: 31 mb
[22.03.19 13:46:54] Maximum Heap Size: 114 mb
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] Java Platform Information
[22.03.19 13:46:54] Java Runtime Name: OpenJDK Runtime Environment
[22.03.19 13:46:54] Java Version: 1.8.0_212
[22.03.19 13:46:54] Java Class Version: 52.0
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] Virtual Machine Information (JVM)
[22.03.19 13:46:54] JVM Name: OpenJDK 64-Bit Server VM
[22.03.19 13:46:54] JVM installation directory: /usr/lib/jvm/java-8-openjdk-amd64/jre
[22.03.19 13:46:54] JVM version: 25.212-b01
[22.03.19 13:46:54] JVM Vendor: Oracle Corporation
[22.03.19 13:46:54] JVM Info: mixed mode
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] ..................................................
[22.03.19 13:46:54] GameServerManager: Loaded 127 server name(s)
[22.03.19 13:46:54] GameServerManager: Loaded 1 server(s)
[22.03.19 13:46:54] ProxyServersData: Loaded 0 element(s)
[22.03.19 13:46:54] Cached 10 RSA keys for Game Server communication.
[22.03.19 13:46:54] DDoS-Proof: Started client manager for 100 sessions
[22.03.19 13:46:54] DDoS-Proof: Session time set to 15 seconds
[22.03.19 13:46:54] LoginManager initiating
[22.03.19 13:46:54] Failed initializing LoginManager. Reason: null
java.lang.NullPointerException
at ru.l2code.sql.HikariDatabaseFactory.getConnection(HikariDatabaseFactory.java:45)
at ru.l2code.sql.DatabaseFactory.getConnection(DatabaseFactory.java:29)
at ru.l2code.loginserver.manager.LoginManager.<init>(LoginManager.java:91)
at ru.l2code.loginserver.manager.LoginManager.load(LoginManager.java:62)
at ru.l2code.loginserver.L2LoginServer.<init>(L2LoginServer.java:113)
at ru.l2code.loginserver.L2LoginServer.main(L2LoginServer.java:71)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question