L2JMobius

Master Class LoginServer.exe and GameServer.exe Error

Khamirikay · 7 · 3269

Offline Khamirikay

  • Vassal
  • *
    • Posts: 7
Hello, i follow https://l2jmobius.org/forum/index.php?topic=3231.0 steps for H5 server and all ok. But do the same for Master Class server and i have this error on LoginServer.

Quote
[03/04 21:51:11] Database: Problem on initialize. java.sql.SQLSyntaxErrorException: No connection available within the specified time (option 'connectTimeout': 30.000 ms)
[03/04 21:51:11] Loading LoginController...
[03/04 21:51:11] Cached 10 KeyPairs for RSA communication.
[03/04 21:51:11] Loaded 127 server names.

I never change any config before run the server at first time.
And when I trying to close console window say this:

Quote
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "org.l2jmobius.loginserver.LoginServer.shutdown(boolean)" because the return value of "org.l2jmobius.loginserver.LoginServer.getInstance()" is null
   at org.l2jmobius.loginserver.ui.Gui$1.windowClosing(Gui.java:238)
   at java.desktop/java.awt.Window.processWindowEvent(Window.java:2085)
   at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
   at java.desktop/java.awt.Window.processEvent(Window.java:2044)
   at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
   at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
   at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
   at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
   at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
   at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
   at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
   at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
   at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
   at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743)
   at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

GameServer:

Quote
[03/04 22:13:08] Network Config: ipconfig.xml doesn't exists using automatic configuration...
[03/04 22:13:08] Network Config: Adding new subnet: 127.0.0.0/8 address: 127.0.0.1
[03/04 22:13:08] Network Config: Adding new subnet: ******* address: ********
[03/04 22:13:08] Network Config: Adding new subnet: 0.0.0.0/0 address: ********
[03/04 22:13:08] Loaded 6 Filter Words.
[03/04 22:13:08] ------------------------------------------------=[ Database ]
[03/04 22:13:09] World: (288 by 272) World Region Grid set up.
[03/04 22:13:39] Database: Problem on initialize. java.sql.SQLSyntaxErrorException: No connection available within the specified time (option 'connectTimeout': 30.000 ms)
[03/04 22:13:39] ----------------------------------------------=[ ThreadPool ]
[03/04 22:13:39] ThreadPool: Initialized
[03/04 22:13:39] ...12 scheduled pool executors with 48 total threads.
[03/04 22:13:39] ...12 instant pool executors with 24 total threads.
[03/04 22:13:39] -----------------------------------------------=[ IdManager ]
[03/04 22:14:09] DatabaseFactory: Cound not get a connection. java.sql.SQLSyntaxErrorException: No connection available within the specified time (option 'connectTimeout': 30.000 ms)

Anyone know what happen?


Offline Khamirikay

  • Vassal
  • *
    • Posts: 7
I've been running tests. I have deleted the H5 server, started everything from the beginning and now it doesn't work any datapack. All of them say same error on console.


Offline Index

  • Black Sheep
  • Marquis
  • *****
    • Posts: 536
Quote
[03/04 21:51:11] Database: Problem on initialize. java.sql.SQLSyntaxErrorException: No connection available within the specified time (option 'connectTimeout': 30.000 ms)
*server_folder*/dist/Login/config/server.ini
*server_folder*/dist/Game/config/server.ini

Check passwords and DB names, if you install db ;\


Offline Khamirikay

  • Vassal
  • *
    • Posts: 7
Hello, first time, thanks for reply.

I'm using git repository and i don't change anything on that files.

LoginServer: C:\L2J_Mobius\login\config\LoginServer.ini
Quote
# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------

# Specify the appropriate driver and url for your database.
# Default: org.mariadb.jdbc.Driver
Driver = org.mariadb.jdbc.Driver

# Database URL
# Default: jdbc:mariadb://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false
URL = jdbc:mariadb://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false

# Database user info (default is "root" but it's not recommended)
Login = root

# Database connection password
Password =

# Default: 5
MaximumDbConnections = 5

GameServer: C:\L2J_Mobius\game\config\Server.ini
Quote
# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------

# Specify the appropriate driver and url for the database you're using.
# Default: org.mariadb.jdbc.Driver
Driver = org.mariadb.jdbc.Driver

# Database URL
# Default: jdbc:mariadb://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false
URL = jdbc:mariadb://localhost/l2jmobius?useUnicode=true&characterEncoding=utf-8&useSSL=false

# Database user info (default is "root" but it's not recommended)
Login = root

# Database connection password
Password =

# Default: 100
MaximumDbConnections = 100


Offline Index

  • Black Sheep
  • Marquis
  • *****
    • Posts: 536
Quote from: Login and Game servers
HELLO, I CANT GET ACCESS TO DATA BASE, PLEASE CHECK IN MY INI FILES PASSWORDS AND NAME OF DATABASE


Offline Khamirikay

  • Vassal
  • *
    • Posts: 7
Quote from: Login and Game servers
HELLO, I CANT GET ACCESS TO DATA BASE, PLEASE CHECK IN MY INI FILES PASSWORDS AND NAME OF DATABASE

Hello! I'm sorry but i don't understand you now. All archives stay default, i don't changed or edited anything. Same database name, no password, at login and gameserver when i installed it with the .exe


Offline Khamirikay

  • Vassal
  • *
    • Posts: 7
Ok, i don't understand anything... Now all working correctly whithout do anything...

Quote
[05/04 10:42:26] Database: Initialized.
[05/04 10:42:26] Loading LoginController...
[05/04 10:42:26] Cached 10 KeyPairs for RSA communication.
[05/04 10:42:26] Loaded 127 server names.
[05/04 10:42:26] Loaded 1 registered Game Servers.
[05/04 10:42:26] Cached 10 RSA keys for Game Server communication.
[05/04 10:42:26] Loaded 2 IP Bans.
[05/04 10:42:26] Listening for GameServers on 127.0.0.1:9014
[05/04 10:42:26] ClientNetworkManager: Listening on 0.0.0.0:2106