10-14-2015, 03:59 PM
Добрый день! Заменил пул с HikariCp, который лагал и падал постоянно, на dbcp. Все работает, кроме счета аккаунта, который выдает ошибку и не видит класс L2DatabaseFactory (логин сервер). Почему он может не видеть его, если все работает и он есть? Ошибок при компиляции нету.
Ошибка
Exception in thread "ThreadPoolExecutor-6" java.lang.ExceptionInInitializerError
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at l2p.commons.dbcp.BasicDataSource.<init>(BasicDataSource.java:63)
at l2p.loginserver.database.L2DatabaseFactory.<init>(L2DatabaseFactory.j
ava:20)
at l2p.loginserver.database.L2DatabaseFactory.<clinit>(L2DatabaseFactory
.java:12)
... 10 more
Exception in thread "ThreadPoolExecutor-5" java.lang.NoClassDefFoundError: Could
not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "ThreadPoolExecutor-10" java.lang.NoClassDefFoundError: Coul
d not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.clientpackets.RequestExBR_BuyProduct.runImpl(RequestEx
BR_BuyProduct.java:53)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "ThreadPoolExecutor-9" java.lang.NoClassDefFoundError: Could
not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[19:45:46] INFO HellboundManager: Spawned 329 mobs and NPCs according to the cu
rrent Hellbound stage
[19:50:48] INFO FourSepulchersManager: Entry time: Wed Oct 14 19:55:48 GMT+07:0
0 2015
Exception in thread "ThreadPoolExecutor-1" java.lang.NoClassDefFoundError: Could
not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at l2p.commons.dbcp.BasicDataSource.<init>(BasicDataSource.java:63)
at l2p.loginserver.database.L2DatabaseFactory.<init>(L2DatabaseFactory.j
ava:20)
at l2p.loginserver.database.L2DatabaseFactory.<clinit>(L2DatabaseFactory
.java:12)
... 10 more
Exception in thread "ThreadPoolExecutor-5" java.lang.NoClassDefFoundError: Could
not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "ThreadPoolExecutor-10" java.lang.NoClassDefFoundError: Coul
d not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.clientpackets.RequestExBR_BuyProduct.runImpl(RequestEx
BR_BuyProduct.java:53)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "ThreadPoolExecutor-9" java.lang.NoClassDefFoundError: Could
not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[19:45:46] INFO HellboundManager: Spawned 329 mobs and NPCs according to the cu
rrent Hellbound stage
[19:50:48] INFO FourSepulchersManager: Entry time: Wed Oct 14 19:55:48 GMT+07:0
0 2015
Exception in thread "ThreadPoolExecutor-1" java.lang.NoClassDefFoundError: Could
not initialize class l2p.loginserver.database.L2DatabaseFactory
at l2p.gameserver.dao.AccountPointsDAO.getPoint(AccountPointsDAO.java:34
)
at l2p.gameserver.network.GameClient.getPointG(GameClient.java:282)
at l2p.gameserver.model.Player.getPremiumPoints(Player.java:9400)
at l2p.gameserver.serverpackets.ExBR_GamePoint.<init>(ExBR_GamePoint.jav
a:16)
at l2p.gameserver.clientpackets.RequestExBR_GamePoint.runImpl(RequestExB
R_GamePoint.java:20)
at l2p.gameserver.clientpackets.L2GameClientPacket.run(L2GameClientPacke
t.java:41)
at l2p.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)