Search found 14 matches
- 24 Mar 2010, 23:05
- Forum: Java2SE / Android Client API
- Topic: JSON vs ActionScript Objects
- Replies: 3
- Views: 14442
JSON vs ActionScript Objects
I'm having a weird issue with extension responses. If I send the response as JSON the extension handler on the client-side does not get fired, but if I send it as ActionScriptObject everything works fine. Here is the code that works on the server-side: ActionscriptObject response = new ActionscriptO...
- 22 Mar 2010, 18:50
- Forum: Server Side Extension Development
- Topic: Smartfox Extension Unit Testing (the beginning)
- Replies: 10
- Views: 58041
SmartFoxClient
Lapo, The SFSTest.java class sample from the link on the first post ( http://ideacandi.com/blogzero/?p=44 )contains the following code: package com.foo.test; import it.gotoandplay.smartfoxclient.SFSEvent; import it.gotoandplay.smartfoxclient.SmartFoxClient; import it.gotoandplay.smartfoxclient.data....
- 22 Mar 2010, 17:35
- Forum: Server Side Extension Development
- Topic: Smartfox Extension Unit Testing (the beginning)
- Replies: 10
- Views: 58041
SmartFoxClient.class
How do I get the classes that are imported in the unit test classes? import it.gotoandplay.smartfoxclient.ISFSEventListener; import it.gotoandplay.smartfoxclient.SFSEvent; import it.gotoandplay.smartfoxclient.SmartFoxClient; import it.gotoandplay.smartfoxclient.data.SFSObject; The SmartFox jar I hav...
- 16 Mar 2010, 18:28
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Integrating My buddy list from DB with SmartFox buddy list
- Replies: 18
- Views: 24192
BuddyListManager
Is it possible to replace the Zone's BuddyListManager with my own?
I want to save buddy invitations when the invitee is offline.
I want to save buddy invitations when the invitee is offline.
- 11 Mar 2010, 23:21
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Clustering public/private messages
- Replies: 1
- Views: 3949
Clustering public/private messages
We are using terracotta to cluster our SMF servers and are having trouble with private and public messages. Is there a way to cluster public and private messages without having to write specific extension commands? What I mean is, can I send a regular public or private message like this one: smartFo...
- 02 Feb 2009, 14:56
- Forum: Server Side Extension Development
- Topic: sfs.getActiveRoom() Error
- Replies: 3
- Views: 6184
- 30 Jan 2009, 00:55
- Forum: Server Side Extension Development
- Topic: sfs.getActiveRoom() Error
- Replies: 3
- Views: 6184
sfs.getActiveRoom() Error
When I join a dynamic room and then I exit that room and try to join a another room, the following line throws a null error (in SysHandler.as): params.user = sfs.getActiveRoom().getUser(userId) != null ? sfs.getActiveRoom().getUser(userId) : varOwner; Is trying to ret...
- 29 Jan 2009, 14:45
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: java - Room - getUserCount vs howManyUsers
- Replies: 3
- Views: 6044
- 19 Jan 2009, 17:05
- Forum: Server Side Extension Development
- Topic: Exception when deleting a buddy
- Replies: 4
- Views: 6840
- 16 Jan 2009, 16:48
- Forum: Server Side Extension Development
- Topic: Exception when deleting a buddy
- Replies: 4
- Views: 6840
Exception when deleting a buddy
The SmartFox Server version is 1.6.2 And I'm running on Windows Vista 32-bit Here is a snippet of the Java Extension where the exception occurs //Get buddy name String buddyName = jso.getString("buddy"); SFSPersister p = new SFSPersister(); // Get both users from the db STU...
- 15 Jan 2009, 19:58
- Forum: Server Side Extension Development
- Topic: Exception when deleting a buddy
- Replies: 4
- Views: 6840
Exception when deleting a buddy
Hi, I'm using my own buddy persistence class and when I call: "extensionHelper.removeBuddy( buddyName, user );" I get the following error: java.lang.ClassCastException: it.gotoandplay.smartfoxserver.data.User cannot be cast to java.nio.channels.SocketChannel at it.gotoandplay.smartfoxserve...
- 14 Jan 2009, 23:16
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: sendBuddyListUpdate
- Replies: 3
- Views: 5924
- 14 Jan 2009, 19:40
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: sendBuddyListUpdate
- Replies: 3
- Views: 5924
Thanks Lapo! I was using my own extension to load and manage buddyLists and that was causing problems. But with your suggestion I got it to work. Now I have another problem. I allow users to send offline invitations. When a user sends an invitation to another user that is offline the invitation is s...
- 09 Jan 2009, 23:16
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: sendBuddyListUpdate
- Replies: 3
- Views: 5924
sendBuddyListUpdate
I'm using my custom BuddyPersister to save a user buddyList to a MySQL db, and to allow buddy invitation requests to be sent to offline users. My problem is that after user1 loaded his/her buddyList, and user2 (which is on user1's buddyList) logs in, user1's buddyList does not get updated and user1 ...