Error Could not dynamically instantiate class CallExtension

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

Moderators: Lapo, Bax

Post Reply
hieuitvnsoft
Posts: 12
Joined: 26 Sep 2023, 04:54

Error Could not dynamically instantiate class CallExtension

Post 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]
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Error Could not dynamically instantiate class CallExtension

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply