Здравствуйте, поставил сборку на hikariCP, перестала работать система достижений (до этого работала нормально), в ГС выбивает такую ошибку.
Добавлено через 19 часов 26 минут
^UP^^UP^^UP^
Ошибка
22:08:33 WARN [ACHIEVEMENTS SAVE GETDATA]
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in
your SQL syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near 'from achievements' at line 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.Util.getInstance(Util.java:360)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
va:1907)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:
2030)
at com.zaxxer.hikari.proxy.PreparedStatementProxy.executeQuery(PreparedS
tatementProxy.java:52)
at com.zaxxer.hikari.proxy.PreparedStatementJavassistProxy.executeQuery(
PreparedStatementJavassistProxy.java)
at net.sf.l2j.gameserver.model.entity.AchievmentsEngine.AchievementsMana
ger.loadUsed(AchievementsManager.java:274)
at net.sf.l2j.gameserver.model.actor.instance.L2AchievementsInstance.sho
wChatWindow(L2AchievementsInstance.java:121)
at net.sf.l2j.gameserver.model.actor.L2Npc.showChatWindow(L2Npc.java:111
3)
at net.sf.l2j.gameserver.model.actor.L2Npc.onAction(L2Npc.java:397)
at net.sf.l2j.gameserver.network.clientpackets.Action.runImpl(Action.jav
a:69)
at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2
GameClientPacket.java:47)
at net.sf.l2j.gameserver.network.L2GameClient.run(L2GameClient.java:758)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in
your SQL syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near 'from achievements' at line 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
at com.mysql.jdbc.Util.getInstance(Util.java:360)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
va:1907)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:
2030)
at com.zaxxer.hikari.proxy.PreparedStatementProxy.executeQuery(PreparedS
tatementProxy.java:52)
at com.zaxxer.hikari.proxy.PreparedStatementJavassistProxy.executeQuery(
PreparedStatementJavassistProxy.java)
at net.sf.l2j.gameserver.model.entity.AchievmentsEngine.AchievementsMana
ger.loadUsed(AchievementsManager.java:274)
at net.sf.l2j.gameserver.model.actor.instance.L2AchievementsInstance.sho
wChatWindow(L2AchievementsInstance.java:121)
at net.sf.l2j.gameserver.model.actor.L2Npc.showChatWindow(L2Npc.java:111
3)
at net.sf.l2j.gameserver.model.actor.L2Npc.onAction(L2Npc.java:397)
at net.sf.l2j.gameserver.network.clientpackets.Action.runImpl(Action.jav
a:69)
at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2
GameClientPacket.java:47)
at net.sf.l2j.gameserver.network.L2GameClient.run(L2GameClient.java:758)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
код
public void loadUsed()
{
try (Connection con = DatabaseFactory.getConnection())
{
PreparedStatement statement;
ResultSet rs;
String sql = "SELECT ";
for (int i = 1; i <= getAchievementList().size(); i++)
{
if (i != getAchievementList().size())
sql = sql + "a" + i + ",";
else
sql = sql + "a" + i;
}
sql = sql + " from achievements";
statement = con.prepareStatement(sql);
rs = statement.executeQuery();
while (rs.next())
{
for (int i = 1; i <= getAchievementList().size(); i++)
{
String ct = rs.getString(i);
if (ct.length() > 1 && ct.startsWith("1"))
{
_binded.add(ct.substring(ct.indexOf("1") + 1) + "@" + i);
}
}
}
statement.close();
rs.close();
}
catch (Exception e)
{
_log.warn("[ACHIEVEMENTS SAVE GETDATA]");
e.printStackTrace();
}
}
Добавлено через 19 часов 26 минут
^UP^^UP^^UP^