Page 1 of 1

Error Could not dynamically instantiate class CallExtension

Posted: 18 May 2024, 02:36
by hieuitvnsoft
Hi Lapo!

We are getting error:
"Could not dynamically instantiate class: com.smartfoxserver.v2.controllers.system.CallExtension, Error". An error occurs causing the CPU to be full and the server overloaded. Please tell us where it comes from or why it happens and how to handle it.
Thanks bro!

Code: Select all

18 May 2024 | 00:03:12,606 | ERROR | SFSWorker:Sys:3 | controllers.v290.SystemReqController |     | Could not dynamically instantiate class: com.smartfoxserver.v2.controllers.system.CallExtension, Error: java.lang.ClassNotFoundException: com.smartfoxserver.v2.controllers.system.CallExtension
18 May 2024 | 00:03:12,606 | WARN  | SFSWorker:Sys:3 | controllers.v290.SystemReqController |     | java.lang.NullPointerException
   java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
   java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
   com.smartfoxserver.v2.controllers.v290.SystemReqController.processRequest(SystemReqController.java:173)
   com.smartfoxserver.v2.controllers.v290.SystemReqController.enqueueRequest(SystemReqController.java:146)
   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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   java.base/java.lang.Thread.run(Thread.java:829)


[img]https://freeimage.host/i/JPjckLg/img]

Re: Error Could not dynamically instantiate class CallExtension

Posted: 18 May 2024, 13:26
by Lapo
Hi,
if you have created your custom Extension, make sure you are not including the dependencies (sfs2x.jar, sfs2x-core.jar etc...) inside the jar you've created and deployed.

If that doesn't fix it, I would recommend reinstalling the server from scratch as the error suggests that the current installation is corrupted.

Cheers