L2JMobius

High Five Problem in sql-need help.

maximov · 18 · 28450

Offline maximov

  • Knight
  • ***
    • Posts: 66
Good day! After you create the clan starts rattling off error in the GS log.
Table clan_privs empty. How to fix?

org.l2jmobius.gameserver.model.clan.Clan restoreRankPrivs
SEVERE: Error restoring clan privs by rank: (conn=1365) 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
java.sql.SQLSyntaxErrorException: (conn=1365) 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:236)
   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)
   at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:238)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:232)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.execute(MariaDbPreparedStatementClient.java:159)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeQuery(MariaDbPreparedStatementClient.java:174)
   at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
   at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
   at org.l2jmobius.gameserver.model.clan.Clan.restoreRankPrivs(Clan.java:1981)
   at org.l2jmobius.gameserver.model.clan.Clan.restore(Clan.java:1127)
   at org.l2jmobius.gameserver.model.clan.Clan.<init>(Clan.java:172)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable.<init>(ClanTable.java:100)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable$SingletonHolder.<clinit>(ClanTable.java:541)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable.getInstance(ClanTable.java:536)
   at org.l2jmobius.gameserver.GameServer.<init>(GameServer.java:282)
   at org.l2jmobius.gameserver.GameServer.main(GameServer.java:488)
Caused by: java.sql.SQLException: 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
Query is: SELECT privs,rank,party FROM clan_privs WHERE clan_id=?, parameters [268495965]
java thread: main
   at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:163)
   at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:280)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:223)
   ... 12 more


Online Liamxroy

  • Grand Duke
  • *****
    • Posts: 760
    • Adenaplease!
Good day! After you create the clan starts rattling off error in the GS log.
Table clan_privs empty. How to fix?

org.l2jmobius.gameserver.model.clan.Clan restoreRankPrivs
SEVERE: Error restoring clan privs by rank: (conn=1365) 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
java.sql.SQLSyntaxErrorException: (conn=1365) 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:236)
   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)
   at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:238)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:232)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.execute(MariaDbPreparedStatementClient.java:159)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeQuery(MariaDbPreparedStatementClient.java:174)
   at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
   at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
   at org.l2jmobius.gameserver.model.clan.Clan.restoreRankPrivs(Clan.java:1981)
   at org.l2jmobius.gameserver.model.clan.Clan.restore(Clan.java:1127)
   at org.l2jmobius.gameserver.model.clan.Clan.<init>(Clan.java:172)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable.<init>(ClanTable.java:100)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable$SingletonHolder.<clinit>(ClanTable.java:541)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable.getInstance(ClanTable.java:536)
   at org.l2jmobius.gameserver.GameServer.<init>(GameServer.java:282)
   at org.l2jmobius.gameserver.GameServer.main(GameServer.java:488)
Caused by: java.sql.SQLException: 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
Query is: SELECT privs,rank,party FROM clan_privs WHERE clan_id=?, parameters [268495965]
java thread: main
   at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:163)
   at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:280)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:223)
   ... 12 more

Did you change anything in clan table by hand ?


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16059

Offline maximov

  • Knight
  • ***
    • Posts: 66
Through the admin panel I raised the level of the clan. I didn't change anything else.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16059

Offline maximov

  • Knight
  • ***
    • Posts: 66
The error points to this table. It's empty. I expect nothing. I just want to make it right.

Query is: SELECT privs,rank,party FROM clan_privs WHERE clan_id=?, parameters [268495965]

Selection from an empty table. If I understand correctly.



Offline maximov

  • Knight
  • ***
    • Posts: 66
The error is related to granting privileges. You give privileges. and they are not recorded in the database.





Offline maximov

  • Knight
  • ***
    • Posts: 66
Could not store clan privs for rank: (conn=2486) Parameter at position 5 is not set
java.sql.SQLException: (conn=2486) Parameter at position 5 is not set


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16059

Offline ReynalDev

  • Knight
  • ***
    • Posts: 92
  • https://reynaldev.pythonanywhere.com/
    • ReynalDev
If you using MariaDB, rank could be interpreted like keyword, but this happen since MariaDB 10.2.
https://mariadb.com/kb/en/library/rank/


Online GMavenging

  • Viscount
  • *****
    • Posts: 300
Good day! After you create the clan starts rattling off error in the GS log.
Table clan_privs empty. How to fix?

org.l2jmobius.gameserver.model.clan.Clan restoreRankPrivs
SEVERE: Error restoring clan privs by rank: (conn=1365) 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
java.sql.SQLSyntaxErrorException: (conn=1365) 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:236)
   at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)
   at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:238)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:232)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.execute(MariaDbPreparedStatementClient.java:159)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeQuery(MariaDbPreparedStatementClient.java:174)
   at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
   at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
   at org.l2jmobius.gameserver.model.clan.Clan.restoreRankPrivs(Clan.java:1981)
   at org.l2jmobius.gameserver.model.clan.Clan.restore(Clan.java:1127)
   at org.l2jmobius.gameserver.model.clan.Clan.<init>(Clan.java:172)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable.<init>(ClanTable.java:100)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable$SingletonHolder.<clinit>(ClanTable.java:541)
   at org.l2jmobius.gameserver.data.sql.impl.ClanTable.getInstance(ClanTable.java:536)
   at org.l2jmobius.gameserver.GameServer.<init>(GameServer.java:282)
   at org.l2jmobius.gameserver.GameServer.main(GameServer.java:488)
Caused by: java.sql.SQLException: 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 ',party FROM clan_privs WHERE clan_id=268495965' at line 1
Query is: SELECT privs,rank,party FROM clan_privs WHERE clan_id=?, parameters [268495965]
java thread: main
   at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:163)
   at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:280)
   at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:223)
   ... 12 more

Did you change anything in clan table by hand ?

that only happens with mysql 8, tested in maria DB 10 and without errors


Online GMavenging

  • Viscount
  • *****
    • Posts: 300
also the query does not produce any error in game