Code: Select all
11:37:56.568 - [ SEVERE ] > DbManager could not retrive a connection. org.h2.jdbcSQLException: General error: java.lang.Error: rowcount remaining=-1 SYS [HY000-60}
it.gotoandplay.smartfoxserver.exceptions.DbManagerException: The Test SQL statement failed! Please check your configuration.
at it.gotoandplay.smartfoxserver.SmartFoxServer.setupZone(SmartFoxServer.java:1843
(...)
I don't know why is this happening, because i didn't change anything in the server. Only in the client and what i changed was only design, not script.
here's my config:
Code: Select all
<Zone name="FPS" uCountUpdate="true" maxUsers="10000" customLogin="false" roomListVars="true">
<AutoReloadExtensions>true</AutoReloadExtensions>
<BuddyList active="true">
<size>200</size>
<maxBuddyVariables>10</maxBuddyVariables>
<mode>advanced</mode>
<!-- Apply only for advanced mode -->
<offLineBuddyVariables>true</offLineBuddyVariables>
<permissionTimeOut>10</permissionTimeOut>
<mutualAddBuddy>true</mutualAddBuddy>
<mutualRemoveBuddy>true</mutualRemoveBuddy>
</BuddyList>
<Rooms>
<Room name="Lobby" maxUsers="5000" isPrivate="false" isTemp="false" autoJoin="false" uCountUpdate="true"/>
<Room name="Login" maxUsers="5000" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="false" />
</Rooms>
<DatabaseManager active="true">
<Driver>sun.jdbc.odbc.JdbcOdbcDriver</Driver>
<ConnectionString>jdbc:h2:~/test</ConnectionString>
<!-- If you use MySQL, the connections string becomes...
<Driver>org.gjt.mm.mysql.Driver</Driver>
<ConnectionString>jdbc:mysql://127.0.0.1:3306/sfsTest</ConnectionString>
-->
<UserName>sa</UserName>
<Password></Password>
<TestSQL><![CDATA[SELECT COUNT(*) FROM users]]></TestSQL>
<MaxActive>100</MaxActive>
<MaxIdle>100</MaxIdle>
<OnExhaustedPool>fail</OnExhaustedPool>
<BlockTime>5000</BlockTime>
</DatabaseManager>
<Extensions>
<extension name="FPSextension" className="FPSextension.as" type="script" />
</Extensions>
<Moderators status="on">
<Mod name="modname" pwd="pwd" />
</Moderators>
</Zone>
Then i tried to access the database with h2 database manager ad it gave the following error:
Code: Select all
General error: java.lang.Error: rowcount remaining=-1 SYS [HY000-60]
Please help me.