I am making a game but i'm having problem with the connection to the database!
I have Microsoft SQL Server 2005 JDBC Driver and i have put the sqljdbc.jar location
in the classpath of the windows environment variables.(.;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip;C:\Program Files\Microsoft SQL Server 2005 JDBC Driver\sqljdbc_1.0\enu\sqljdbc.jar)
I have created the zone in the config.xml
but when i run the smartfoxserver gives me this error<Zone name="game" uCountUpdate="true" customLogin="false" maxUsers="50">
<Rooms>
<Room name="Entrada" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="true"/>
</Rooms>
<Extensions>
<extension name="bdacesso" className="bdacesso.as" type="script" />
</Extensions>
<DatabaseManager active="true">
<Driver>com.microsoft.sqlserver.jdbc.SQLServerDriver</Driver>
<ConnectionString>jdbc:sqlserver://pc\SQLEXPRESS;databaseName=dbPokemonGame;user=pc\fetz;</ConnectionString>
<TestSQL><![CDATA[SELECT COUNT(*) FROM user]]></TestSQL>
<MaxActive>10</MaxActive>
<MaxIdle>10</MaxIdle>
<OnExhaustedPool>fail</OnExhaustedPool>
<BlockTime>5000</BlockTime>
</DatabaseManager>
</Zone>
Sorry for my english!java.lang.NullPointerException at it.gotoandplay.smartfoxserver.SmartFoxServer.setupZone(SmartFoxServer.java:1561)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.parser_Zones(ConfigReader.java:584)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.parser_Zones(ConfigReader.java:284)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:309)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:558)
Problems in config file: null
it.gotoandplay.smartfoxserver.exceptions.ConfigurationException
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigReader.java:308)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:309)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:558)
Errors found in configuration files.
Could anyone help me please?
Thanks!