Page 1 of 1

Not able to start my server some error Plz help

Posted: 13 Apr 2009, 14:25
by gbala
Hi,
I am very new to this smart fox server as well as to this forum.
I try installing smartfox it was working fine in my system No issue.
and the next day i try starting the server but it says

java.lang.NullPointerException
"error found in configuration file"
"shutdown hook complete"

I really cant understand what is going wrong...
can any one explain to fix it.
i am not sure it might be a silly question but plz any one help to fix it....
Thanks in advance.

Regards,
Bala
www.gbala.com

Posted: 13 Apr 2009, 15:25
by draive
Can you post your config file?

Posted: 13 Apr 2009, 15:33
by gbala

Code: Select all

<!--

	SmartFoxServer PRO 
	(c) 2004-2007 gotoAndPlay()
	www.gotoandplay.it
	www.smartfoxserver.com
	
	Main Configuration file
	version 1.6.2
	
	NOTE:
	You can find detailed informations on how to configure the server by reading
	the tutorials in section 2 of the documentation.
	( http://www.smartfoxserver.com/docs/docPages/config/basics.htm )
	
-->

<SmartFoxConfig>
	
	<ServerSetup>
		
		<ServerIP>127.0.0.1</ServerIP>
		<ServerPort>9339</ServerPort>
		
		<AutoSendPolicyFile>true</AutoSendPolicyFile>
		<MaxUserIdleTime>300</MaxUserIdleTime>
		
		<!-- Server Variables limits (-1 = unlimited) -->
		<MaxRoomVars>-1</MaxRoomVars>
		<MaxUserVars>-1</MaxUserVars>
		
		<AntiFlood active="false">
			<MinMsgTime tolerance="5">1000</MinMsgTime>
			<MaxRepeatedMessages>3</MaxRepeatedMessages>
			<WarningsBeforeKick>2</WarningsBeforeKick>
			<WarningMessage><![CDATA[No flooding allowed!)]]></WarningMessage>
			<KickMessage><![CDATA[You've been warned! No flooding! Now you're kicked]]></KickMessage>
			<BanMessage><![CDATA[Stop Flooding!! You're being banned]]></BanMessage>			
			<BanAfter timeSpan="1">3</BanAfter>
		</AntiFlood>
		
		<BadWordsFilter active="false">
			<FilterMode>filter</FilterMode> <!-- REMOVE or FILTER -->
			<StripCharacters><![CDATA[,.;:_!$%&/#*-+]]></StripCharacters>
			<Warnings>true</Warnings>
			<FilterRoomNames>true</FilterRoomNames>
			<FilterUserNames>true</FilterUserNames>
			<WarningsBeforeKick>3</WarningsBeforeKick>
			<WarningMessage><![CDATA[No swearing!)]]></WarningMessage>
			<KickMessage><![CDATA[You've been warned! No Swearing! Now you're kicked]]></KickMessage>
			<BanMessage><![CDATA[Stop Swearing! You're being banned!]]></BanMessage>	
			<BanAfter timeSpan="1">3</BanAfter>
			
			<BadWordsList>
				<badWord>motherfucker</badWord>				
				<badWord>dickhead</badWord>
				<badWord>asshole</badWord>
				<badWord>shithead</badWord>
				<badWord>shit</badWord>
				<badWord>fucking</badWord>
				<badWord>fuck</badWord>
				<badWord>dickhead</badWord>
				<badWord>bastard</badWord>
				<badWord>nigger</badWord>
				<badWord>idiot</badWord>
				<badWord>bitch</badWord>
			</BadWordsList>
		</BadWordsFilter>
		
		<BanCleaning>auto</BanCleaning>
		<BanDuration>1800</BanDuration> <!-- 30 min -->
		<BannedLoginMessage>You have been banned!</BannedLoginMessage>
		
		<OutQueueThreads>1</OutQueueThreads>
		<ExtHandlerThreads>1</ExtHandlerThreads>
		<MaxWriterQueue>50</MaxWriterQueue>
		
		<!-- 
			New since 1.6.0 
			Set the client queue size and the max. allowed dropped packets
		-->
		<ClientMessagQueue>
			<QueueSize>80</QueueSize>
			<MaxAllowedDroppedPackets>10</MaxAllowedDroppedPackets>
		</ClientMessagQueue>
		
		<MaxIncomingQueue>5000</MaxIncomingQueue>
		<DeadChannelsPolicy>strict</DeadChannelsPolicy>
		<MaxMsgLen>4096</MaxMsgLen>
		
		<LogMaxSize>5000000</LogMaxSize>
		<LogMaxFiles>5</LogMaxFiles>
		
		<!--
			Available options are:
			
			FINEST
			FINER
			FINE
			CONFIG
			INFO
			WARNING
			SEVERE

		-->
		<FileLoggingLevel>WARNING</FileLoggingLevel>
		<ConsoleLoggingLevel>INFO</ConsoleLoggingLevel>	
		
		<!-- Adminisitrator login -->
		<AdminLogin>sfs_admin</AdminLogin>
		<AdminPassword>sfs_pass</AdminPassword>
		
		<!-- Allowed administrator IP addresses -->
		<AdminAllowedAddresses>
			<AllowedAddress>*.*.*.*</AllowedAddress>
		</AdminAllowedAddresses>
		
		<!-- Allow remote debugging of extensions -->
		<ExtensionRemoteDebug>true</ExtensionRemoteDebug>
		
		<!-- 
			Allow global autoreload of extensions upon file save 
			You should specify in each Zone if the autoreload is enabled.
		-->
		<AutoReloadExtensions>true</AutoReloadExtensions>
		
		<ExtensionRemoteDebug>true</ExtensionRemoteDebug>
		
		<IpFilter>0</IpFilter>
		
		<Mailer>
			<MailHost>test.mail.com</MailHost>
			<MailUser>foo</MailUser>
			<MailPass>bar</MailPass>
			<SmtpPort>25</SmtpPort>
			<WorkerThreads>1</WorkerThreads>
		</Mailer>
		
		<!-- Enable / Disable remote zone info -->
		<EnableZoneInfo>false</EnableZoneInfo>
		
		<!-- Enable / Disable embedded webserver -->
		<WebServer active="true">
			<CfgFile>webserver/cfg/jetty.xml</CfgFile>
		</WebServer>
		
		<!--  raw custom protocol separator --> 
		<RawProtocolSeparator><![CDATA[%]]></RawProtocolSeparator>
		
	</ServerSetup>
	
	
	
	<!--
		Zones Configuration.
	-->
	<Zones>	
	
		<Zone name="simpleChat" uCountUpdate="true" buddyList="20" maxUsers="4000" customLogin="false">
			<Rooms>
				<Room name="The Hall" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="true" />		
				<Room name="The Kitchen" maxUsers="50" isPrivate="false" isGame="false" isTemp="false" />
				<Room name="The Garden" maxUsers="50" isPrivate="false" isTemp="false" />
				<Room name="The Bathroom" maxUsers="50" isPrivate="false" isTemp="false" />
				<Room name="The Garage" maxUsers="50" isPrivate="false" isTemp="false" />
				<Room name="The Living Room" maxUsers="50" isPrivate="true" isTemp="false" pwd="test" />
			</Rooms>
			
			<Extensions>
				<extension name="json" className="jsonSample.as" type="script" />
			</Extensions>
			
			<Moderators status="on">
				<Mod name="modName" pwd="modPass" />
			</Moderators>
		</Zone>
		
		<Zone name="dbZone" customLogin="false" buddyList="20">
			<Rooms>
				<Room name="MainRoom" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
			
			<Extensions>
				<extension name="dbTest"  className="dbExtension.as" type="script" />
				<extension name="dbTestAdv"  className="dbExtensionAdv.as" type="script" />
				<extension name="simpleExt"  className="simpleExt.as" type="script" /> 
			</Extensions>
			
			<DatabaseManager active="false">
				
				<Driver>sun.jdbc.odbc.JdbcOdbcDriver</Driver>
				<ConnectionString>jdbc:odbc:sfsTest</ConnectionString>
				
				<!--
				Example connecting to MySQL
				
				<Driver>org.gjt.mm.mysql.Driver</Driver>
				<ConnectionString>jdbc:mysql://192.168.0.1:3306/sfsTest</ConnectionString>
				-->
				
				<UserName>yourname</UserName>
				<Password>yourpassword</Password>
				
				<TestSQL><![CDATA[SELECT COUNT(*) FROM contacts]]></TestSQL>
				
				<MaxActive>10</MaxActive>
				<MaxIdle>10</MaxIdle>
				
				<OnExhaustedPool>fail</OnExhaustedPool>
				<BlockTime>5000</BlockTime>
					
			</DatabaseManager>
		</Zone>

		<Zone name="sftris" emptyNames="true">
			<Rooms>
				<Room name="The Entrance" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
		</Zone>
		
		<Zone name="mazeGame">
			<Rooms>
				<Room name="The Entrance" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
		</Zone>
		
		<Zone name="loginZone" emptyNames="false" customLogin="true">
			<Rooms>
				<Room name="The Hall" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
			
			<Extensions>
				<extension name="loginEx"  className="loginExample.as" type="script" />
			</Extensions>
		</Zone>
		
		<Zone name="multiChat">
			<Rooms>
				<Room name="Main Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
		</Zone>
		
		<Zone name="yahtzee">
			<Rooms>
				<Room name="The Entrance" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
		</Zone>
		
		<Zone name="TheoChat">
			<Rooms>
				<Room name="Lobby" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="false" />

				<Room name="The Dance Room" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="false">
					<Vars>
						<Var name="MapPath" type="s" private="false">dance.xml</Var>
					</Vars>
				</Room>
				
				<Room name="The Atrium" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="false">
					<Vars>
						<Var name="MapPath" type="s" private="false">atrium.xml</Var>
					</Vars>
				</Room>
				
				<Room name="The Garden" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="false">
					<Vars>
						<Var name="MapPath" type="s" private="false">garden.xml</Var>
					</Vars>
				</Room>

				<Room name="The Lounge" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="false">
					<Vars>
						<Var name="MapPath" type="s" private="false">lounge.xml</Var>
					</Vars>
				</Room>	
			</Rooms>
			
			<Moderators status="on">
				<Mod name="mod" pwd="pass" />
			</Moderators>
		</Zone>

		<Zone name="slogin" emptyNames="false" customLogin="true">
			<Rooms>
				<Room name="The Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
				<Room name="The Garden" maxUsers="50" isPrivate="false" isTemp="false" />
				<Room name="The Swimming Pool" maxUsers="50" isPrivate="false" isTemp="false" />
			</Rooms>
			
			<Extensions>
				<extension name="slogin"  className="secureLogin.as" type="script" />
			</Extensions>
		</Zone>
		
		<Zone name="pixel" uCountUpdate="true" customLogin="true">
			<Rooms>
				<Room name="The Basement" maxUsers="4" isPrivate="false" isGame="false" isTemp="false" />
			</Rooms>

			<Extensions>
				<extension name="pixel"  className="pixelGame.as" type="script" />
				<!--
					To use the java extension instead of the Actionscript one substitute the above line with this:
					
					<extension name="pixel"  className="it.gotoandplay.extensions.examples.PixelGame" type="java" />
					
				-->
			</Extensions>	
		</Zone>
		
		<Zone name="letters">
			<Rooms>
				<Room name="Main" maxUsers="50" autoJoin="true" />
			</Rooms>

			<Extensions>
				<extension name="Letters" className="Letters.as" type="script" />
			</Extensions>
		</Zone>
		
		<Zone name="messenger" customLogin="true" buddyList="200">
			<MaxBuddyVars>2</MaxBuddyVars>
			<Rooms>
				<Room name="Main" autoJoin="true" limbo="true"/>
			</Rooms>

			<Extensions>
				<extension name="smsg" className="smartMessenger.as" type="script" />
			</Extensions>
		</Zone>
		
		<Zone name="imgMan" emptyNames="true">
			<AutoReloadExtensions>true</AutoReloadExtensions>
			<Rooms>
				<Room name="MainLobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
			
			<Extensions>
				<extension name="imgman" className="imageManager.as" type="script"></extension>
			</Extensions>
		</Zone>
		
		<Zone name="bomberman" emptyNames="true">
			<Rooms>
				<Room name="Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
		</Zone>
		
		<Zone name="h2db" customLogin="false">
			<AutoReloadExtensions>true</AutoReloadExtensions>
			
			<Rooms>
				<Room name="Lobby" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="true" />
			</Rooms>
			
			<DatabaseManager active="true">
				<Driver>org.h2.Driver</Driver>
				<ConnectionString>jdbc:h2:tcp://localhost:9009/examples</ConnectionString>
				
				<UserName>sa</UserName>
				<Password></Password>
				
				<TestSQL><![CDATA[SELECT COUNT(*) FROM retrocomputers]]></TestSQL>
				
				<MaxActive>10</MaxActive>
				<MaxIdle>10</MaxIdle>
				
				<OnExhaustedPool>fail</OnExhaustedPool>
				<BlockTime>5000</BlockTime>
			</DatabaseManager>
			
			<Extensions>
				<extension name="h2db_ext"  className="internalDbDemo.as" type="script" /> 
			</Extensions>
		</Zone>
		
		<Zone name="advBuddyList">
			
			<BuddyList active="true">
				<size>200</size>
				<maxBuddyVariables>5</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" autoJoin="true" limbo="true" maxUsers="10000"/>
			</Rooms>
			
		</Zone>
		
		<Zone name="sloader">

			<Rooms>
				<Room name="Lobby" autoJoin="true" limbo="true" maxUsers="10000"/>
			</Rooms>
			
			<Extensions>
				<extension name="loader" className="it.gotoandplay.extensions.examples.SocketFileLoader" type="java" />
			</Extensions>
			
		</Zone>
		
		<Zone name="SmartVideoClipPlayer" uCountUpdate="true" maxUsers="50" customLogin="false">
			<Rooms>
				<Room name="The Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="true" />
			</Rooms>
			
			<Extensions>
				<extension name="__$RedBox$__" className="com.smartfoxserver.redbox.RedBoxExtension" type="java" />
			</Extensions>
		</Zone>

		<Zone name="SmartMessengerAV" customLogin="true" buddyList="200">
			<MaxBuddyVars>2</MaxBuddyVars>
			<Rooms>
				<Room name="Main" autoJoin="true" limbo="true"/>
			</Rooms>

			<Extensions>
				<extension name="smsg" className="smartMessenger.as" type="script" />
				<extension name="__$RedBox$__" className="com.smartfoxserver.redbox.RedBoxExtension" type="java" />
			</Extensions>
		</Zone>

		<Zone name="SmartChatAV" uCountUpdate="true" maxUsers="4000" customLogin="false">
			<Rooms>
				<Room name="The Hall" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="true" />		
				<Room name="The Kitchen" maxUsers="50" isPrivate="false" isTemp="false" />
				<Room name="The Garden" maxUsers="50" isPrivate="false" isTemp="false" />
				<Room name="The Bathroom" maxUsers="50" isPrivate="false" isTemp="false" />
				<Room name="The Garage" maxUsers="50" isPrivate="false" isTemp="false" />
			</Rooms>
			
			<Extensions>
				<extension name="__$RedBox$__" className="com.smartfoxserver.redbox.RedBoxExtension" type="java" />
			</Extensions>
		</Zone>

		<Zone name="SmartVideoConference" uCountUpdate="true" maxUsers="4000" customLogin="false">
			<Rooms>
				<Room name="Conference hall 1" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="true" />		
				<Room name="Conference hall 2" maxUsers="10" isPrivate="false" isGame="false" isTemp="false" />
				<Room name="Conference hall 3" maxUsers="10" isPrivate="false" isGame="false" isTemp="false" />
			</Rooms>
		</Zone>
	
	</Zones>
	
	
</SmartFoxConfig>
I has just copy pasted the config.xml

Thanks for your help in advance

Posted: 13 Apr 2009, 18:51
by draive
Does it say any more than that in the error? If not, if I had to guess, one of those extension files is missing.

Try commenting out all the zones but one and make sure that file is available in the ext folder or java ext folder.

Also, have you edited the file any? If so, overwrite it with a virgin copy.

I got it

Posted: 05 Jun 2009, 07:45
by gbala
Hi,
I fixed the problem.... :lol:
The problem was my other java services(wrapper.exe) is not letting me to run which was starting in my start up.
So i just stoped my java services (wrapper.exe) from my startup.

It starts working properly