[ WARNING ] > Exception in ExtensionHandler: java.lang.Nu

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
castik2
Posts: 2
Joined: 13 Oct 2010, 04:51

[ WARNING ] > Exception in ExtensionHandler: java.lang.Nu

Post by castik2 »

Hi

I am using SFS v1.6.6 PRO

For some reason I am getting this warning. Any idea how I can trace it so that I know where is triggered?

I read other posts and from what I understand 1.6.8 fixes this warning. I just want to confirm if upgrading to 1.6.8 will get rid of this issue. Thanks

01:27:10.414 - [ WARNING ] > Exception in ExtensionHandler: java.lang.NullPointe
rException
Exception type: java.lang.NullPointerException
java.lang.NullPointerException
at it.gotoandplay.smartfoxserver.extensions.JavascriptExtension.logASErr
or(JavascriptExtension.java:668)
at it.gotoandplay.smartfoxserver.extensions.JavascriptExtension.handleRe
quest(JavascriptExtension.java:273)
at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.processEve
nt(ExtensionHandler.java:454)
at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.run(Extens
ionHandler.java:344)
at java.lang.Thread.run(Thread.java:619)
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Have you see this posting --> http://forums.smartfoxserver.com/viewtopic.php?t=8586 ?

From this line --> it.gotoandplay.smartfoxserver.extensions.JavascriptExtension.handleRe
quest

it's telling me that the NullPointerException had occurred somewhere in the handleRequest method.
Smartfox's forum is my daily newspaper.
castik2
Posts: 2
Joined: 13 Oct 2010, 04:51

Post by castik2 »

Yes I have seen this posting, however this posting talks about openspace and it is not the exact same warning.

In fact I have found at least 3 other posts that describe the exact same warning and a possible resolution seems to be to update to a newer version but is not very clear. I was hoping to find out if there is something else that I am missing.

The problem is that I have 3 extensions and I am not sure where this warning takes place to be able to trace it.

Any ideas?


Other threads discussing this exact issue without a clear resolution:

http://forums.smartfoxserver.com/viewto ... rexception:

http://forums.smartfoxserver.com/viewto ... rexception

http://forums.smartfoxserver.com/viewto ... rexception

http://forums.smartfoxserver.com/viewto ... rexception
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

I never was able to tell which line the error was occurring with Actionscript Extensions - as the line where the error had occurred did not match the line of the code that caused the error.

With java extension, line numbering does match.

So, you may have to put some trace messages in various places until you can track it down - this was what I did. - so, for starters - put a trace message in each handleRequest methods with a unique trace message. After knowing which extension it was, put a trace every 40 lines or so. Not pretty.. :shock:
Smartfox's forum is my daily newspaper.
Post Reply