This Exception always happen

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

hebatarek
Posts: 21
Joined: 16 May 2016, 08:50

This Exception always happen

Postby hebatarek » 03 May 2017, 09:36

Hello I have the following exception thrown too many times

Code: Select all

03 May 2017 | 07:03:51,334 | WARN  | SFSWorker:Sys:1 | controllers.v290.SystemReqController |     | com.smartfoxserver.v2.exceptions.SFSRuntimeException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException
Message: *** Null ***
Description: Runtime error while processing request
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.controllers.BaseControllerCommand.checkRequestPermissions(BaseControllerCommand.java:166)
com.smartfoxserver.v2.controllers.system.GenericMessage.executePublicMessage(GenericMessage.java:213)
com.smartfoxserver.v2.controllers.system.GenericMessage.execute(GenericMessage.java:124)
com.smartfoxserver.v2.controllers.v290.SystemReqController.processRequest(SystemReqController.java:172)
com.smartfoxserver.v2.controllers.v290.SystemReqController.enqueueRequest(SystemReqController.java:127)
com.smartfoxserver.bitswarm.io.protocols.AbstractProtocolCodec.dispatchRequestToController(AbstractProtocolCodec.java:39)
com.smartfoxserver.v2.protocol.SFSProtocolCodec.dispatchRequest(SFSProtocolCodec.java:133)
com.smartfoxserver.v2.protocol.SFSProtocolCodec.onPacketRead(SFSProtocolCodec.java:90)
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler$1.run(BinaryIoHandler.java:477)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


server version : 2.12.0
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: This Exception always happen

Postby Lapo » 03 May 2017, 10:06

Can you give me a bit more context?
The error seems to stem from the flood filter. Can you show me how you have configured it?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
hebatarek
Posts: 21
Joined: 16 May 2016, 08:50

Re: This Exception always happen

Postby hebatarek » 03 May 2017, 11:22

in init :-
addFilter("customLoginFilter", new ActionsFilter());

and Action Filter class
package com.a51integrated.sfs2x;
import com.a51integrated.sfs2x.models.AppMethods;
import com.smartfoxserver.v2.core.ISFSEvent;
import com.smartfoxserver.v2.entities.User;
import com.smartfoxserver.v2.entities.data.ISFSObject;
import com.smartfoxserver.v2.extensions.SFSExtension;
import com.smartfoxserver.v2.extensions.filter.FilterAction;
import com.smartfoxserver.v2.extensions.filter.SFSExtensionFilter;

public class ActionsFilter extends SFSExtensionFilter {
@Override
public void destroy() {
AppMethods.forceLog("Filter destroyed!");
}
@Override
public FilterAction handleClientRequest(String cmd, User sender,
ISFSObject params) {
String paramsStr=params.toJson();
trace("FilterAction "+sender.getName()+":"+cmd+" &params:"+paramsStr);
return FilterAction.CONTINUE;
}
@Override
public FilterAction handleServerEvent(ISFSEvent event) {
return FilterAction.CONTINUE;
}
@Override
public void init(SFSExtension ext) {
super.init(ext);
AppMethods.forceLog("Filter inited!");
}
}
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: This Exception always happen

Postby Lapo » 03 May 2017, 14:15

Hi,
no I meant the server's "Flood Filter", under AdminTool > Zone Configurator > Flood Filter.

That's where the error seems to be generated from.
Lapo

--

gotoAndPlay()

...addicted to flash games
hebatarek
Posts: 21
Joined: 16 May 2016, 08:50

Re: This Exception always happen

Postby hebatarek » 03 May 2017, 14:43

sorry, please check the attached image
Attachments
1.png
(57.4 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: This Exception always happen

Postby Lapo » 04 May 2017, 07:56

Hi,
the message in the log is simply a trace of the refused request, according to the rules you have set in the filter.

The error however fails to provide the details since the "Message" field is null, where it would probably be better so have extra info. We'll make sure to add them. Other than that this is not an issue. It's just the filter at work.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 99 guests