is SFS2x support java7?

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

Moderators: Lapo, Bax

wes
Posts: 9
Joined: 08 Mar 2012, 03:44

is SFS2x support java7?

Postby wes » 08 Mar 2012, 03:55

when i use jre7, the admin tool will get error =>

Code: Select all

11:36:23,776 WARN  [com.smartfoxserver.v2.controllers.ExtensionController-1] controllers.ExtensionController     -
java.lang.IllegalAccessError: tried to access class sun.management.ManagementFactory from class com.smartfoxserver.v2.admin.utils.Performanc
eMonitor
        com.smartfoxserver.v2.admin.utils.PerformanceMonitor.<init>(PerformanceMonitor.java:12)
        com.smartfoxserver.v2.admin.handlers.RuntimeStatisticsModuleReqHandler.<init>(RuntimeStatisticsModuleReqHandler.java:46)
        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        java.lang.Class.newInstance0(Class.java:372)
        java.lang.Class.newInstance(Class.java:325)
        com.smartfoxserver.v2.extensions.SFSHandlerFactory.getHandlerInstance(SFSHandlerFactory.java:100)
        com.smartfoxserver.v2.extensions.SFSHandlerFactory.findHandler(SFSHandlerFactory.java:74)
        com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.java:178)
        com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:137)
        com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
        java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        java.lang.Thread.run(Thread.java:722)

wish anyone can help me thx ><
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: is SFS2x support java7?

Postby Lapo » 10 Mar 2012, 10:36

Did you replace the jre (v6) provided with SFS2X with version 7?
Lapo
--
gotoAndPlay()
...addicted to flash games
wes
Posts: 9
Joined: 08 Mar 2012, 03:44

Re: is SFS2x support java7?

Postby wes » 12 Mar 2012, 08:39

I'm sure,When I copy jar7 to change the jre (v6) provided with SFS2X,
The above error occurs,so can i do any things to fix this error?
Or some things I can attention ?
thx Lapo :D
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: is SFS2x support java7?

Postby Lapo » 12 Mar 2012, 09:18

Yes, I have verified it under Windows, there's a problem with a non-official sun.management.* package that is used to obtain informations about the OS and the CPU usage. The class is packed in the JDK6 but it is considered as a support class, outside of the official classes, which are all contained under java.* package.

The bad news is that in JDK7 those unofficial classe have finally been moved under the official package tree --> java.lang.management.*, thus creating an incompatibility with previous JDKs.
My only suggestion for the moment is to stick with JDK6, we will fix this in a later release.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
wes
Posts: 9
Joined: 08 Mar 2012, 03:44

Re: is SFS2x support java7?

Postby wes » 13 Mar 2012, 03:12

ok..thx Lapo :D
Diab10
Posts: 63
Joined: 26 Jun 2012, 18:19

Re: is SFS2x support java7?

Postby Diab10 » 26 Jun 2012, 18:24

Hello! You forgot about this problem? I have the same problem, but I program is not for android, but for Unity

//Translated with translate.google.com, do not scold :)
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: is SFS2x support java7?

Postby Lapo » 26 Jun 2012, 18:34

Not at all, the latest update supports Java 7 :)
http://www.smartfoxserver.com/download/sfs2x#p=updates
Lapo

--

gotoAndPlay()

...addicted to flash games
Diab10
Posts: 63
Joined: 26 Jun 2012, 18:19

Re: is SFS2x support java7?

Postby Diab10 » 26 Jun 2012, 18:47

Code: Select all

26 июн 2012 | 22:33:34,580 | WARN  | com.smartfoxserver.v2.controllers.ExtensionController-1 | v2.controllers.ExtensionController |     |
java.lang.IllegalAccessError: sun/management/ManagementFactory
   com.smartfoxserver.v2.admin.utils.PerformanceMonitor.<init>(PerformanceMonitor.java:12)
   com.smartfoxserver.v2.admin.handlers.RuntimeStatisticsModuleReqHandler.<init>(RuntimeStatisticsModuleReqHandler.java:46)
   sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   java.lang.reflect.Constructor.newInstance(Unknown Source)
   java.lang.Class.newInstance0(Unknown Source)
   java.lang.Class.newInstance(Unknown Source)
   com.smartfoxserver.v2.extensions.SFSHandlerFactory.getHandlerInstance(SFSHandlerFactory.java:100)
   com.smartfoxserver.v2.extensions.SFSHandlerFactory.findHandler(SFSHandlerFactory.java:74)
   com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.java:178)
   com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:137)
   com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)

26 июн 2012 | 22:33:36,606 | WARN  | com.smartfoxserver.v2.controllers.ExtensionController-2 | v2.controllers.ExtensionController |     |
java.lang.IllegalAccessError: sun/management/ManagementFactory
   com.smartfoxserver.v2.admin.utils.PerformanceMonitor.<init>(PerformanceMonitor.java:12)
   com.smartfoxserver.v2.admin.handlers.RuntimeStatisticsModuleReqHandler.<init>(RuntimeStatisticsModuleReqHandler.java:46)
   sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   java.lang.reflect.Constructor.newInstance(Unknown Source)
   java.lang.Class.newInstance0(Unknown Source)
   java.lang.Class.newInstance(Unknown Source)
   com.smartfoxserver.v2.extensions.SFSHandlerFactory.getHandlerInstance(SFSHandlerFactory.java:100)
   com.smartfoxserver.v2.extensions.SFSHandlerFactory.findHandler(SFSHandlerFactory.java:74)
   com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.java:178)
   com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:137)
   com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)

26 июн 2012 | 22:33:38,632 | WARN  | com.smartfoxserver.v2.controllers.ExtensionController-3 | v2.controllers.ExtensionController |     |
java.lang.IllegalAccessError: sun/management/ManagementFactory
   com.smartfoxserver.v2.admin.utils.PerformanceMonitor.<init>(PerformanceMonitor.java:12)
   com.smartfoxserver.v2.admin.handlers.RuntimeStatisticsModuleReqHandler.<init>(RuntimeStatisticsModuleReqHandler.java:46)
   sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   java.lang.reflect.Constructor.newInstance(Unknown Source)
   java.lang.Class.newInstance0(Unknown Source)
   java.lang.Class.newInstance(Unknown Source)
   com.smartfoxserver.v2.extensions.SFSHandlerFactory.getHandlerInstance(SFSHandlerFactory.java:100)
   com.smartfoxserver.v2.extensions.SFSHandlerFactory.findHandler(SFSHandlerFactory.java:74)
   com.smartfoxserver.v2.extensions.SFSExtension.handleClientRequest(SFSExtension.java:178)
   com.smartfoxserver.v2.controllers.ExtensionController.processRequest(ExtensionController.java:137)
   com.smartfoxserver.bitswarm.controllers.AbstractController.run(AbstractController.java:96)
   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: is SFS2x support java7?

Postby Lapo » 26 Jun 2012, 18:51

Clear your browser cache, you might be running the old version of the AdminTool
Lapo

--

gotoAndPlay()

...addicted to flash games
Diab10
Posts: 63
Joined: 26 Jun 2012, 18:19

Re: is SFS2x support java7?

Postby Diab10 » 26 Jun 2012, 19:53

Did not help =(
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: is SFS2x support java7?

Postby Lapo » 26 Jun 2012, 21:41

Then I think there is something wrong with your installation. Please double check.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 1 guest