I have upgraded to SFPro 1.6.0 and recompiled my SWF with the latest API. From what I have read "no code adjustments need to be made to use bluebox, simply recompile".
However, when I got to my SFS Admin tool and click the bluebox monitor it always says "HTTP Server: Not Running". Does that just mean that bluebox is turned off? If I turn it on will it just start accepting bluebox connections?
Bluebox - simple how do I use it?
After turning on the web server I get this message in my log file...
2008/03/04 16:02:36.001 - [ WARNING ] [id: 39] (WebServer.setCfgFile): Error while reading webserver config file: java.lang.NullPointerException
my jetty.xml is in place (and it just whatever the default settings were when I installed SFS).
My config.xml file looks like this (edited to remove some info):
<SmartFoxConfig>
<ServerSetup>
<ServerIP>xxxxxxxx</ServerIP>
<ServerPort>9339</ServerPort>
<AutoSendPolicyFile>true</AutoSendPolicyFile>
<PolicyAllowedDomains>
<AllowedDomain>mysite.com</AllowedDomain>
</PolicyAllowedDomains>
<MaxUserIdleTime>1800</MaxUserIdleTime>
<!-- Server Variables limits (-1 = unlimited) -->
<MaxRoomVars>-1</MaxRoomVars>
<MaxUserVars>-1</MaxUserVars>
<AntiFlood active="true">
<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">5</BanAfter>
</AntiFlood>
<BadWordsFilter active="true">
<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">5</BanAfter>
<BadWordsList>
<badWord>blah</badWord>
</BadWordsList>
</BadWordsFilter>
<BanDuration>15778463</BanDuration> <!-- 6 months -->
<BannedLoginMessage>You have been banned!</BannedLoginMessage>
<OutQueueThreads>1</OutQueueThreads>
<ExtHandlerThreads>1</ExtHandlerThreads>
<MaxWriterQueue>50</MaxWriterQueue>
<MaxIncomingQueue>8000</MaxIncomingQueue>
<DeadChannelsPolicy>strict</DeadChannelsPolicy>
<MaxMsgLen>20000</MaxMsgLen>
<LogMaxSize>5000000</LogMaxSize>
<LogMaxFiles>5</LogMaxFiles>
<FileLoggingLevel>WARNING</FileLoggingLevel>
<ConsoleLoggingLevel>INFO</ConsoleLoggingLevel>
<AdminLogin>xxx</AdminLogin>
<AdminPassword>xxx</AdminPassword>
<AdminAllowedAddresses>
<AllowedAddress>*.*.*.*</AllowedAddress>
</AdminAllowedAddresses>
<IpFilter>10</IpFilter>
<!-- Enable / Disable remote zone info -->
<EnableZoneInfo>false</EnableZoneInfo>
</ServerSetup>
<WebServer active="true">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
<zone config continued...
2008/03/04 16:02:36.001 - [ WARNING ] [id: 39] (WebServer.setCfgFile): Error while reading webserver config file: java.lang.NullPointerException
my jetty.xml is in place (and it just whatever the default settings were when I installed SFS).
My config.xml file looks like this (edited to remove some info):
<SmartFoxConfig>
<ServerSetup>
<ServerIP>xxxxxxxx</ServerIP>
<ServerPort>9339</ServerPort>
<AutoSendPolicyFile>true</AutoSendPolicyFile>
<PolicyAllowedDomains>
<AllowedDomain>mysite.com</AllowedDomain>
</PolicyAllowedDomains>
<MaxUserIdleTime>1800</MaxUserIdleTime>
<!-- Server Variables limits (-1 = unlimited) -->
<MaxRoomVars>-1</MaxRoomVars>
<MaxUserVars>-1</MaxUserVars>
<AntiFlood active="true">
<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">5</BanAfter>
</AntiFlood>
<BadWordsFilter active="true">
<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">5</BanAfter>
<BadWordsList>
<badWord>blah</badWord>
</BadWordsList>
</BadWordsFilter>
<BanDuration>15778463</BanDuration> <!-- 6 months -->
<BannedLoginMessage>You have been banned!</BannedLoginMessage>
<OutQueueThreads>1</OutQueueThreads>
<ExtHandlerThreads>1</ExtHandlerThreads>
<MaxWriterQueue>50</MaxWriterQueue>
<MaxIncomingQueue>8000</MaxIncomingQueue>
<DeadChannelsPolicy>strict</DeadChannelsPolicy>
<MaxMsgLen>20000</MaxMsgLen>
<LogMaxSize>5000000</LogMaxSize>
<LogMaxFiles>5</LogMaxFiles>
<FileLoggingLevel>WARNING</FileLoggingLevel>
<ConsoleLoggingLevel>INFO</ConsoleLoggingLevel>
<AdminLogin>xxx</AdminLogin>
<AdminPassword>xxx</AdminPassword>
<AdminAllowedAddresses>
<AllowedAddress>*.*.*.*</AllowedAddress>
</AdminAllowedAddresses>
<IpFilter>10</IpFilter>
<!-- Enable / Disable remote zone info -->
<EnableZoneInfo>false</EnableZoneInfo>
</ServerSetup>
<WebServer active="true">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
<zone config continued...
I moved:
<WebServer active="true">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
to inside the <ServerSetup> tag in my config.xml and it seems to have removed the LOG errors I was having.
From what I can tell bluebox is working - how can I test it's working? I've not noticed any users in the BlueBox monitor in the Admin tool out of the 200 that have logged in today.
<WebServer active="true">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
to inside the <ServerSetup> tag in my config.xml and it seems to have removed the LOG errors I was having.
From what I can tell bluebox is working - how can I test it's working? I've not noticed any users in the BlueBox monitor in the Admin tool out of the 200 that have logged in today.
to inside the <ServerSetup> tag in my config.xml and it seems to have removed the LOG errors I was having.
Off course, that's where it is supposed to be.
From what I can tell bluebox is working - how can I test it's working? I've not noticed any users in the BlueBox monitor in the Admin tool out of the 200 that have logged in today.
First of all your application must be compiled with the latest API coming with SFS 1.6.x
Once this is done the API will do the work of checking the socket connection and if it's not available use the BlueBox
how can I test it's working?
Simply block port 9339 (or whatever port you use with SFS) with a firewall and try connecting
Who is online
Users browsing this forum: No registered users and 12 guests