NullPointerException thrown when I call moveAvatar

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

cyli
Posts: 16
Joined: 09 Mar 2010, 18:39

NullPointerException thrown when I call moveAvatar

Postby cyli » 17 Jun 2010, 23:09

I get these errors every so often:

[OpenSpace] User NPC_1276816364083 [15] requested path from (0, 1, 0) to (6, 3, 0) on map 'map#1276816293734'
java.lang.NullPointerException
at com.smartfoxserver.openspace.commands.CalculatePathCommand.execute(CalculatePathCommand.java:79)
at com.smartfoxserver.openspace.OpenSpaceExtension.moveAvatar(OpenSpaceExtension.java:360)

It is not a PathfindingException - I was wondering if you knew what could be causing it? Is there a problem with the map, perhaps?

Thank you!
cyli
Posts: 16
Joined: 09 Mar 2010, 18:39

Postby cyli » 17 Jun 2010, 23:32

Also, I have observed that previously the same path was found correctly, and the map has not changed in the intermittent period.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 18 Jun 2010, 07:22

Also no changes in the avatar type?
Can you send us an example showing the problem, so we can investigate it?
Paolo Bax
The SmartFoxServer Team
qtmflash
Posts: 5
Joined: 25 Nov 2010, 13:59

Postby qtmflash » 17 Feb 2011, 15:45

Was this problem ever solved ? I also have this problem occasionally, the avatar will get stuck and cannot move until map is changed.

17 Feb 2011 17:17:16,974 ERROR [com.smartfoxserver.v2.controllers.ExtensionController-1] openspace.utils.Logger - [OpenSpace]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: An unexpected exception occurred while the OpenSpace Core Extension executed command path
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.openspace.commands.CalculatePathCommand.execute(CalculatePathCommand.java:84)
com.smartfoxserver.openspace.handlers.OSRequestHandler.handleClientRequest(OSRequestHandler.java:84)
com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.java:192)
com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:137)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 15 guests