I've successfully Connected, Logged in, and Joined existing rooms, but every time I attempt to create a room through the JavaScript API the following warning appears in the server logs:
Code: Select all
WARN | com.smartfoxserver.v2.controllers.SystemController-1 | v2.controllers.SystemController | | java.lang.ClassCastException: java.lang.Short cannot be cast to java.lang.Integer
com.smartfoxserver.v2.entities.data.SFSObject.getInt(SFSObject.java:411)
com.smartfoxserver.v2.entities.data.SFSObjectLite.getShort(SFSObjectLite.java:46)
com.smartfoxserver.v2.controllers.system.CreateRoom.preProcess(CreateRoom.java:101)
com.smartfoxserver.v2.controllers.system.CreateRoom.execute(CreateRoom.java:264)
com.smartfoxserver.v2.controllers.SystemController.processRequest(SystemController.java:131)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
I do have a custom extension running on the zone, but I don't see it in the stack trace at all, so I don't see how it would be the problem. However, when I run the exact same client code when connected to the "BasicExamples" zone, it works.
I'm a little baffled by this, so I'm including any other relevant details I can think of:
- Our actual game client (using the Unity/C# SmartFox client code) can create these same rooms no problem. In fact, my current workaround to this issue is to log in with the game to create the room, then join it from the JavaScript client.
- The "Maximum number of Rooms" and "Maximum rooms per user" settings are both set high enough (again, logging in using our game client creates rooms no problem).
- The "Privilege Manager" is not activated, but it does contain "CreateRoom" in the list of denied requests for the "Guest" profile, whereas that is not the case with "BasicExamples".
- I'm running server version 2.8.2
- JavaScript API version 1.1.1
If anyone has any ideas or suggestions they would be very much appreciated.
Thanks in advance,
Patrick