I am encountering problems sending private messages. I have attempted sending a PrivateMessageRequest in my Unity project, and also sending the message on the server (via SFSApi.sendPrivateMessage). This is code which was functional prior to updating to RC1, so I suspect a problem was introduced.
In both cases, the server complains of a null pointer exception at SFSApi.java:971.
Private message issue
-
ThomasLund
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Was this resolved? I am getting the same bug when trying to sendPrivateMessage through the server API from my multihandler.
Working with AS3 client, Windows 7 64Bit.
Here is the server console trace:
All the parameters send to the getApi.sendPrivateMessage are valid so no reason for it to complain. This is a major issue for me since i need to send private messages through server extension since it checks chat sessions between users and add valid handshake and info data where needed.
Working with AS3 client, Windows 7 64Bit.
Here is the server console trace:
Code: Select all
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: Error while handling client request in extension: { Ext: customv3, Type: JAVA, Lev: ZONE, { Zone: CustomV3 }, {} }
Extension Cmd: chat.send
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.api.SFSApi.sendPrivateMessage(SFSApi.java:971)
com.viral.customv3.ChatMultiHandler.handleClientRequest(ChatMultiHandler.java:41)
com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.java:187)
com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:137)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Pushing the limits of flash platform at http://blog.flash-core.com
Lapo thanks enabling the words filter and setting it to BLACK_LIST helped.
However your assumption is incorrect since i didn't have the filter enabled in the first place. So i rechecked, once the filter is disabled or set to WHITE_LIST the error happens. The only time it doesn't happen is once the filter is enabled and set to BLACK_LIST.
However your assumption is incorrect since i didn't have the filter enabled in the first place. So i rechecked, once the filter is disabled or set to WHITE_LIST the error happens. The only time it doesn't happen is once the filter is enabled and set to BLACK_LIST.
Pushing the limits of flash platform at http://blog.flash-core.com
Take into account that this is fixed in RC1a, which probably you didn't install.
http://forums.smartfoxserver.com/viewtopic.php?t=9117
http://forums.smartfoxserver.com/viewtopic.php?t=9117