Hello! i'm trying to show info from database into CommunityBoard. I would like to show, if the clan has ClanHall or Fortress, etc. I write this but its getting an error and i dont know why.
java.sql.SQLException: Before start of result set
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:781)
at com.mysql.jdbc.ResultSetImpl.getStringInternal(ResultSetImpl.java:5239)
at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5162)
at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5201)
at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263)
at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263)
at l2r.gameserver.model.L2Clan.getHideOutName(L2Clan.java:3014)
at l2r.gameserver.communitybbs.Managers.ClanBBSManager.clanhome(ClanBBSManager.java:253)
at l2r.gameserver.communitybbs.Managers.ClanBBSManager.clanhome(ClanBBSManager.java:234)
at l2r.gameserver.communitybbs.Managers.ClanBBSManager.cbByPass(ClanBBSManager.java:50)
at l2r.gameserver.communitybbs.BoardsManager.handleCommands(BoardsManager.java:80)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:251)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is the backEnd.
publicString getHideOutName(int ownerId){String x = null;try(Connection con = L2DatabaseFactory.getInstance().getConnection();PreparedStatement ps = con.prepareStatement("SELECT DISTINCT name FROM `clanhall` cl INNER JOIN `clan_data` c ON cl.ownerId = ?");){
ps.setInt(1, ownerId);ResultSet rs = ps.executeQuery();
x = rs.getString("name");}catch(SQLException e){// TODO Auto-generated catch block
e.printStackTrace();}if(x == null){return"None";}return x;}
Please, someone can give me a hand with this?.
Thanks!!
L2VikosMemory | User Manual
1. General Information
L2VikosMemory is a memory optimization tool for Lineage II.
It automatically clears the game cache, reducing RAM usage and improving stability.
2. Installation
Extract L2VikosMemory.dll and ogg.dll into the game folder (where l2.exe is located).
No additional steps are required.
3. Configuration
L2VikosMemory settings can be adjusted in the L2VikosMemory.cfg file:
CleanInterval=X – Cleanup interval (in minutes)
TryElevate=true/false – Enable/disable privilege escalation
AltClientGuard=true/false – Compatibility setting for STRIXGUARD
Example Configuration:
CleanInterval=3
TryElevate=false
AltClientGuard=false
4. Verification
The log file L2VikosMemory.log contains:
Connection status
Cleanup results
Freed memory
5. Troubleshooting
If L2VikosMemory is not working:
Check if the DLL files are in the correct folder.
Try running the game as an administrator.
Check the log file for errors.
6. Support
For support, contact Artem on Telegram.
7. Additional Information
Compatibility: Supports most Lineage II clients.
Recommended Interval: 3-5 minutes.
Gameplay Impact: No effect on gameplay performance.
Price: $150
Question
barao45
Hello! i'm trying to show info from database into CommunityBoard. I would like to show, if the clan has ClanHall or Fortress, etc. I write this but its getting an error and i dont know why.
java.sql.SQLException: Before start of result set at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870) at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:781) at com.mysql.jdbc.ResultSetImpl.getStringInternal(ResultSetImpl.java:5239) at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5162) at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5201) at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263) at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263) at l2r.gameserver.model.L2Clan.getHideOutName(L2Clan.java:3014) at l2r.gameserver.communitybbs.Managers.ClanBBSManager.clanhome(ClanBBSManager.java:253) at l2r.gameserver.communitybbs.Managers.ClanBBSManager.clanhome(ClanBBSManager.java:234) at l2r.gameserver.communitybbs.Managers.ClanBBSManager.cbByPass(ClanBBSManager.java:50) at l2r.gameserver.communitybbs.BoardsManager.handleCommands(BoardsManager.java:80) at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:251) at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:71) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
This is the backEnd.
Please, someone can give me a hand with this?.
Thanks!!
3 answers to this question
Recommended Posts