Page 1 of 1

Can`t retrieve Clip list

Posted: 21 Nov 2012, 17:45
by Alekz
When I try to retrieve clip list, I receive the following message on the log:

Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException
Message: Request handler not found: 'rb_avClip.list'. Make sure the handler is registered in your extension using addRequestHandler()
Description: Error while handling client request in extension: { Ext: maxredbox, Type: JAVA, Lev: ZONE, { Zone: TesteRedBox }, {} }
Extension Cmd: rb_avClip.list

Re: Can`t retrieve Clip list

Posted: 21 Nov 2012, 18:14
by Alekz
I've upgraded both client and server API, and the error persist

Re: Can`t retrieve Clip list

Posted: 22 Nov 2012, 08:54
by Bax
Your Extension must "extend" (sorry for the pun) the RedBox Extension. In other words your Extension class declaration should be something like this:

Code: Select all

public class MaxRedBoxExtension extends RedBoxExtension

Of course the RedBoxExtension jar must exist in your Extension's folder.

Re: Can`t retrieve Clip list

Posted: 23 Nov 2012, 11:51
by Alekz
It is already that way. My extension is working when I send a webcam image to all users, and to record and retrieve some data in de DB, but the clip part is getting me some problems.

Re: Can`t retrieve Clip list

Posted: 25 Nov 2012, 17:32
by Bax
Are you calling the super.init() method in your Extension's init() method?
That is where the handler corresponding to the "rb_avClip" prefix is created.

Re: Can`t retrieve Clip list

Posted: 28 Nov 2012, 18:09
by Alekz
How do I call the super.init() ?

Re: Can`t retrieve Clip list

Posted: 28 Nov 2012, 18:50
by Alekz
It worked. Now, I only have to figure out how to make a clip list