ExtensionsHelper_Exception

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

freeandoni
Posts: 14
Joined: 28 Feb 2012, 19:02

ExtensionsHelper_Exception

Postby freeandoni » 02 Mar 2012, 15:35

Hello,

I was trying to access in the zone manager and I have this error:

Code: Select all

 
_____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.0.1 ]

16:32:07,290 INFO  [main] v2.SmartFoxServer     - SmartFoxServer 2X (2.0.1) READY!
16:32:24,178 INFO  [SocketReader] core.SocketAcceptor     - Session created: { Id: 1, Type: DEFAULT, Logged: No, IP: 127.0.0.1:50990 } on Server port: 9933 <---> 50990
16:32:24,208 INFO  [pool-1-thread-3] api.SFSApi     - Login in, { Zone: --=={{{ AdminZone }}}==-- }, ( User Name: sfsadmin, Id: 0, Priv: 0, Sess: 127.0.0.1:50990 )
16:32:36,979 ERROR [com.smartfoxserver.v2.controllers.ExtensionController-1] controllers.ExtensionController     -
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: Error while handling client request in extension: { Ext: Admin, Type: JAVA, Lev: ZONE, { Zone: --=={{{ AdminZone }}}==-- }, {} }
Extension Cmd: zoneConfig.getZoneConfig
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.admin.helper.ExtensionsHelper.loadExtensionsData(ExtensionsHelper.java:98)
com.smartfoxserver.v2.admin.handlers.ZoneConfigModuleReqHandler.handleClientRequest(ZoneConfigModuleReqHandler.java:147)
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(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

16:33:12,926 ERROR [com.smartfoxserver.v2.controllers.ExtensionController-2] controllers.ExtensionController     -
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: Error while handling client request in extension: { Ext: Admin, Type: JAVA, Lev: ZONE, { Zone: --=={{{ AdminZone }}}==-- }, {} }
Extension Cmd: zoneConfig.getZoneConfig
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.admin.helper.ExtensionsHelper.loadExtensionsData(ExtensionsHelper.java:98)
com.smartfoxserver.v2.admin.handlers.ZoneConfigModuleReqHandler.handleClientRequest(ZoneConfigModuleReqHandler.java:147)
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(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


It is the same error for example zone and for my custom zone.

Any idea?
User avatar
Bax
Site Admin
Posts: 4479
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: ExtensionsHelper_Exception

Postby Bax » 03 Mar 2012, 19:16

There seems to be some error in the Zone configuration. Try removing all Zones and create a new one from scratch in the Admin Tool.
If the problem persists, please send the new Zone definition.
Paolo Bax
The SmartFoxServer Team
freeandoni
Posts: 14
Joined: 28 Feb 2012, 19:02

Re: ExtensionsHelper_Exception

Postby freeandoni » 05 Mar 2012, 12:20

It was a rar file inside extension folder (with an extension inside).

Thank you for advice.
kalani96746
Posts: 6
Joined: 21 Jun 2008, 17:24

Re: ExtensionsHelper_Exception

Postby kalani96746 » 25 Jul 2012, 18:54

Wow good thing I found this. I had zipped up my extension leaving it in my extensions folder and had no idea why I was getting this error trying to edit my zone.

com.smartfoxserver.v2.admin.helper.ExtensionsHelper.loadExtensionsData(ExtensionsHelper.java:98)
com.smartfoxserver.v2.admin.handlers.ZoneConfigModuleReqHandler.handleClientRequest(ZoneConfigModuleReqHandler.java:147)
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:680)


Deleting the .zip fixed the issue. It must be looking through other archives other than .jars for class files.

Kalani Bright
tantanix
Posts: 13
Joined: 16 Feb 2012, 05:18

Re: ExtensionsHelper_Exception

Postby tantanix » 30 Jul 2012, 08:40

Code: Select all

Picked up JAVA_TOOL_OPTIONS: -Xmx256M
16:22:04,687 INFO  [main] v2.SmartFoxServer     - Boot sequence starts...
16:22:04,695 INFO  [main] v2.SmartFoxServer     -
 _____ _____ _____    ___ __ __    _____ _____ _____ _____
|   __|   __|   __|  |_  |  |  |  | __  |     |     |_   _|
|__   |   __|__   |  |  _|-   -|  | __ -|  |  |  |  | | |
|_____|__|  |_____|  |___|__|__|  |_____|_____|_____| |_|

16:22:05,003 INFO  [main] v2.SmartFoxServer     - License code not found, starti
ng Community Edition license
16:22:05,003 INFO  [main] core.SFSEventManager     - AnonymousService-1 initaliz
ed
16:22:05,016 INFO  [main] impl.DefaultFileReplicator     - Using "C:\Users\CHRIS
T~2\AppData\Local\Temp\vfs_cache" as temporary files store.
16:22:05,103 INFO  [main] v2.SmartFoxServer     - License loaded:

===================================
LICENSE DETAILS
-----------------------------------
Type            : Community Edition
Max users       : 100
===================================

16:22:05,104 INFO  [main] managers.SFSBannedUserStorage     - BanUserStorage ini
tialized
16:22:05,111 INFO  [main] managers.SFSBannedUserManager     - BanUser data loade
d: 0 records.
16:22:05,134 INFO  [main] api.SFSApi     - Room created: [ Room: AdminRoom, Id:
0, Group: default, isGame: false ]
16:22:05,139 INFO  [main] core.AdminToolService     - AdminTool Service started
16:22:05,764 INFO  [main] http.SFSHttpServer     - Http Server started.
16:22:05,769 INFO  [main] managers.SFSPostOffice     - PostOffice service starte
d
16:22:05,831 INFO  [main] v2.SmartFoxServer     - Listening Sockets: { 127.0.0.1
:9933, (Tcp) }
16:22:05,832 INFO  [main] v2.SmartFoxServer     -
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.0.0-RC3 ]

16:22:05,833 INFO  [main] v2.SmartFoxServer     - SmartFoxServer 2X (2.0.0-RC3)
READY!
16:22:13,915 INFO  [SocketReader] core.SocketAcceptor     - Session created: { I
d: 1, Type: DEFAULT, Logged: No, IP: 127.0.0.1:65153 } on Server port: 9933 <---
> 65153
16:22:13,952 INFO  [pool-1-thread-2] api.SFSApi     - Login in, { Zone: --=={{{
AdminZone }}}==-- }, ( User Name: tann, Id: 0, Priv: 0, Sess: 127.0.0.1:65153 )

16:22:19,840 ERROR [com.smartfoxserver.v2.controllers.ExtensionController-1] con
trollers.ExtensionController     -
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: Error while handling client request in extension: { Ext: Admin, Typ
e: JAVA, Lev: ZONE, { Zone: --=={{{ AdminZone }}}==-- }, {} }
Extension Cmd: zoneConfig.getZoneConfig
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.admin.helper.ExtensionsHelper.loadExtensionsData(Extension
sHelper.java:98)
com.smartfoxserver.v2.admin.handlers.ZoneConfigModuleReqHandler.handleClientRequ
est(ZoneConfigModuleReqHandler.java:147)
com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.j
ava:192)
com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionCo
ntroller.java:137)
com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractControlle
r.java:96)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



I'm using Windows 7 32bit
SFS version 2.0.0-RC3

I'm getting this error whenever I try the following:
a. Edit any Zone (even example zones) from the Admin tool
b. Deleted all zone files and created a new Zone from the Admin tool.

I already checked if I had the same issue as mentioned by the previous user. I did not find any archived files (zip, rar, etc) from the SFS directory.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: ExtensionsHelper_Exception

Postby rjgtav » 30 Jul 2012, 12:08

Please also make sure that all your extension's jars are inside their specific folder, as you can't have extension jars under SFS2X\extensions.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
tantanix
Posts: 13
Joined: 16 Feb 2012, 05:18

Re: ExtensionsHelper_Exception

Postby tantanix » 30 Jul 2012, 12:34

Apparently, I had incorrect socket addresses. I added the necessary addresses and removed the incorrect ones (pointing to a diff IP) and that solved the issue.
Please verify if the solution is related to the issue. May be I was just lucky. ;)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: ExtensionsHelper_Exception

Postby rjgtav » 01 Aug 2012, 18:34

Hmm... that solution doesn't seem to have any relation with the problem... I bet you were just lucky :D
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
tantanix
Posts: 13
Joined: 16 Feb 2012, 05:18

Re: ExtensionsHelper_Exception

Postby tantanix » 01 Aug 2012, 19:49

You were right. I am a lucky guy. But my teammate wasn't. lol
We still haven't figured out the cause.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: ExtensionsHelper_Exception

Postby rjgtav » 01 Aug 2012, 19:57

Try removing everything you have under [SFS2X Installation folder]\SFS2X\extensions except the __lib__ folder. Remove also any content you have on that folder.
(Note: I suggest you to first backup the content of both folders to somewhere else on your computer, as some examples need some extensions in order to work)
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 4 guests