NPE at it.gotoandplay.util.launcher

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

Moderators: Lapo, Bax

Jochanan
Posts: 79
Joined: 11 May 2018, 09:12

NPE at it.gotoandplay.util.launcher

Postby Jochanan » 26 Jul 2019, 11:45

Hi, we are experiencing this kind of exception when creating a room on server side:

Code: Select all

java.lang.NullPointerException
        at it.gotoandplay.util.launcher.JarFilesUtil.scanFolderForJarFiles(JarFilesUtil.java:23)
        at it.gotoandplay.util.launcher.JarLoader.loadClasses(JarLoader.java:19)
        at com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createJavaExtension(SFSExtensionManager.java:332)
        at com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createExtension(SFSExtensionManager.java:260)
        at com.smartfoxserver.v2.entities.managers.SFSRoomManager.createRoomExtension(SFSRoomManager.java:247)
        at com.smartfoxserver.v2.entities.managers.SFSRoomManager.createRoom(SFSRoomManager.java:194)
        at com.smartfoxserver.v2.entities.managers.SFSRoomManager.createRoom(SFSRoomManager.java:78)
        at com.smartfoxserver.v2.entities.SFSZone.createRoom(SFSZone.java:266)


Since the exceptions appeared in the log, no room can be created (it always crashes on this exception).
We are using SFS 2.13.4
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: NPE at it.gotoandplay.util.launcher

Postby Lapo » 26 Jul 2019, 14:10

Hi,
something is wrong with the jar file(s) you have deployed or the Extension configuration.
It looks as if you are passing a path that doesn't exists, for your Room Extension.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Jochanan
Posts: 79
Joined: 11 May 2018, 09:12

Re: NPE at it.gotoandplay.util.launcher

Postby Jochanan » 26 Jul 2019, 14:29

It cannot be, because there have been hundreds of rooms created prior that error without server restart nor any change to the jar file
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: NPE at it.gotoandplay.util.launcher

Postby Lapo » 26 Jul 2019, 15:45

Have you tried restarting the server and see if the problem goes away?
Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 60 guests