I configure my Zone with an extension although it's initialized I got an error when I try to send a request to server as :
26 Oct 2011 12:10:03,760 WARN [com.smartfoxserver.v2.controllers.ExtensionController-1] v2.controllers.ExtensionController -
com.smartfoxserver.v2.exceptions.SFSExtensionException: No extensions can be invoked: { Zone: SimpleChat }, RoomId: 1
com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:120)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:680)
Interesting point for me is that when I configure the room I am connecting to with the same extension I got no errors and extension works fine.
Here is my objective-c client code :
Code: Select all
smartFox = [[SmartFoxiPhoneClient alloc] initSmartFoxWithDebugMode:YES delegate:self];
[smartFox loadConfig:@"config.xml" connectOnSuccess:YES];
config.xml :
<SmartFoxConfig>
<ip>192.168.51.168</ip>
<port>9933</port>
<blueBoxIpAddress>192.168.51.168</blueBoxIpAddress>
<blueBoxPort>8080</blueBoxPort>
<smartConnect>true</smartConnect>
<httpPort>8080</httpPort>
<httpPollSpeed>750</httpPollSpeed>
<zone>SimpleChat</zone>
</SmartFoxConfig>
Code: Select all
-(void)onConnection:(SFSEvent *)evt
{
if ([[evt.params objectForKey:@"success"] boolValue]) {
[smartFox send:[LoginRequest requestWithUserName:@"username" password:@"" zoneName:@"SimpleChat" params:nil]];
}
else {
NSLog(@"Error in establishing connection!");
}
}
Code: Select all
-(void)onLogin:(SFSEvent *)evt {
[smartFox send:[JoinRoomRequest requestWithId:@"The Lobby"]];
}
I thought Rooms can use the Zone extension without problem. Does anybody experience anything like this?
BTW, I am using SFS2X 2.0.0-RC3.
Thanks in advance