Search found 28 matches

by vaibhavkashyap
10 May 2013, 08:05
Forum: SFS2X Questions
Topic: Sleep Interrupt exception thrown massively
Replies: 3
Views: 1617

Re: Sleep Interrupt exception thrown massively

Yes , it is coming massively over console screen. But i really don't how it could be reproduced. All i can explain that i am running numerous bot threads with this program. BasicClient.java : else if (params.get("cmd").equals("game.takeseat")) { // this is sent to the user who ha...
by vaibhavkashyap
10 May 2013, 07:23
Forum: SFS2X Questions
Topic: Sleep Interrupt exception thrown massively
Replies: 3
Views: 1617

Sleep Interrupt exception thrown massively

hi I have a doubt , i am getting the following exception. Is it due to the loop is getting iterated over iterator instead of for loop at smartfox level??? Please let me know the possible cause.. thanks in advance. java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Met...
by vaibhavkashyap
02 Apr 2013, 06:32
Forum: SFS2X Questions
Topic: SFSEvent.CONNECTION fired even if server is down
Replies: 2
Views: 864

Re: SFSEvent.CONNECTION fired even if server is down

Please my friend needs your help.. :( we are not sure about that concept
by vaibhavkashyap
01 Apr 2013, 14:03
Forum: SFS2X Questions
Topic: SFSEvent.CONNECTION fired even if server is down
Replies: 2
Views: 864

SFSEvent.CONNECTION fired even if server is down

Hi i am trying to make a simple connection and login snippet through smartfoxserver using Java Client API. Problem what i am facing is that following code is supposed to be called when client gets successfully connected to the server. But in my case even if the server is not started , i am getting C...
by vaibhavkashyap
18 Mar 2013, 09:23
Forum: SFS2X Questions
Topic: BB sending error: can't send data
Replies: 3
Views: 879

Re: BB sending error: can't send data

No , their isn't any specific reason. Thanks , i'll try without bluebox now :) :)
by vaibhavkashyap
18 Mar 2013, 08:22
Forum: SFS2X Questions
Topic: BB sending error: can't send data
Replies: 3
Views: 879

BB sending error: can't send data

Hi I am using Java Client Api for automated bot program. Bots are supposed to join room whenever any non-bot-user joins rooms , they do even but while playing the game bots get disconnected and over console i am getting : "BB sending error: can't send data, BlueBox connection is not active"...
by vaibhavkashyap
28 Feb 2013, 05:44
Forum: SFS2X Questions
Topic: event to handle "java.nio.channels.ClosedChannelException"
Replies: 10
Views: 4502

Re: event to handle "java.nio.channels.ClosedChannelExceptio

Code which i have posted only comprises code for the re-connection process. The exception which i have told comes over second disconnection.
by vaibhavkashyap
27 Feb 2013, 14:17
Forum: SFS2X Questions
Topic: event to handle "java.nio.channels.ClosedChannelException"
Replies: 10
Views: 4502

Re: event to handle "java.nio.channels.ClosedChannelExceptio

package sfs2x.client.example; import sfs2x.client.SmartFox; import sfs2x.client.core.*; import sfs2x.client.entities.*; import sfs2x.client.requests.*; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import ...
by vaibhavkashyap
27 Feb 2013, 14:17
Forum: SFS2X Questions
Topic: event to handle "java.nio.channels.ClosedChannelException"
Replies: 10
Views: 4502

Re: event to handle "java.nio.channels.ClosedChannelExceptio

I am posting Three classes : 1) ThreadPoolManager (ThreadPool) 2) RummyBot(Bot class) 3) BotSpawner (main class) Now you may check the flow for disconnection and reconnection Please i am stucked because of this exception , i badly need your help public class ThreadPoolManager { Thread runner; public...
by vaibhavkashyap
26 Feb 2013, 05:44
Forum: SFS2X Questions
Topic: event to handle "java.nio.channels.ClosedChannelException"
Replies: 10
Views: 4502

Re: event to handle "java.nio.channels.ClosedChannelExceptio

But they were not logging-in by their own. Because of this bug i have to call log-in request at connection resume. :(
by vaibhavkashyap
25 Feb 2013, 19:22
Forum: SFS2X Questions
Topic: event to handle "java.nio.channels.ClosedChannelException"
Replies: 10
Views: 4502

Re: event to handle "java.nio.channels.ClosedChannelExceptio

I have created a thread pool which keeps live instances of Bots 1) Bots are logged in only once through sfs. 2) they are given room name to join wherever they are needed. 3) when they get free they are made to join Lobby and the reference of the live bot thread is stored in a map , with room name as...
by vaibhavkashyap
25 Feb 2013, 14:38
Forum: SFS2X Questions
Topic: event to handle "java.nio.channels.ClosedChannelException"
Replies: 10
Views: 4502

event to handle "java.nio.channels.ClosedChannelException"

Hi , i have made a thread pool for bot program. Bot threads have to reconnect back after reconnection & they do even , when CONNECTION_RESUME event is fired but sometimes i am getting the BELOW Exception after that bots doesn't try to logging-in back. Basically i have requested to logging-in aga...
by vaibhavkashyap
14 Jan 2013, 09:29
Forum: SFS2X Questions
Topic: putUtfString maximum character length , can hold
Replies: 3
Views: 928

putUtfString maximum character length , can hold

what is the maximum characters length of putUtfString , for sending to client???
by vaibhavkashyap
22 Oct 2012, 14:00
Forum: SFS2X Questions
Topic: Process called before defined interval time in taskscheduler
Replies: 5
Views: 1964

Re: Process called before defined interval time in tasksched

As i told ZoneFetch() wasn't call when i commented code inside run method. :( :(

Go to advanced search