getApi().joinRoom(user, room); not working second time

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

madhanakrishnan
Posts: 3
Joined: 07 Mar 2013, 04:59

getApi().joinRoom(user, room); not working second time

Postby madhanakrishnan » 07 Mar 2013, 10:20

Hi Every One We are developing Rummy game with SFS, Java, AmfPHP, Mysql. We introduced tournament feature for our clients. While i writing code getApi().joinRoom(user, room); not working for second level(second time) users. Please help me.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: getApi().joinRoom(user, room); not working second time

Postby Lapo » 07 Mar 2013, 11:01

The joinRoom() method throws several exceptions, are you catching them?
Make sure to check the logs and see what kind of error you are getting, then let us know
Lapo
--
gotoAndPlay()
...addicted to flash games
madhanakrishnan
Posts: 3
Joined: 07 Mar 2013, 04:59

Re: getApi().joinRoom(user, room); not working second time

Postby madhanakrishnan » 09 Mar 2013, 04:47

I'm getting this error(please see attached file), when i execute getApi().joinRoom(user, room); second time(It working fine for first time). Please reply.
Attachments
JoinRoomApiError.JPG
(118.79 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: getApi().joinRoom(user, room); not working second time

Postby Lapo » 09 Mar 2013, 10:52

It is a NullPointerException happening in your disconnection handler. Check what's going on at line 58 of the specified class, evidently you are calling a method on an object that is null.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 11 guests