v2.20.0 admin console - unable to login due to errors

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

Moderators: Lapo, Bax

Post Reply
AlaskanDruid
Posts: 10
Joined: 06 Aug 2024, 01:26

v2.20.0 admin console - unable to login due to errors

Post by AlaskanDruid »

Steps to reproduce:

1. Install newest full installer 2.19 on a windows box. Using this link: https://smartfoxserver.com/download/sfs2x#p=installer
2. Install 2.20 patch. Using this link: https://smartfoxserver.com/download/sfs2x#p=updates
3. Replace JRE with one from newest Eclipse install w/ BAT file modifications, or even OpenJDK, or even Eclipse Temurin. Using this link: https://docs2x.smartfoxserver.com/Advan ... patibility
4. Run SFS.
5. Try to login the portal with default credentials. Using this link: https://docs2x.smartfoxserver.com/Getti ... /admintool

** Please note, this works fine with the built-in/installed JRE that comes with the SFS download. Unfortunately, I have to use Java v21 due to the newest Eclipse limitations. **

** This is kind of more of a heads up as older versions of Eclipse run just fine with Java 11 **

Errors below:

13:59:27,667 INFO [main] v2.SmartFoxServer - Boot sequence starts...
13:59:28,040 INFO [main] core.SFSEventManager - SFSEventManager initialized
13:59:28,066 INFO [main] impl.DefaultFileReplicator - Using "C:\Users\{EDITED}\AppData\Local\Temp\vfs_cache" as temporary files store.
13:59:28,128 INFO [main] v2.SmartFoxServer - License loaded:

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

13:59:28,130 INFO [main] managers.SFSBannedUserStorage - BanUserStorage initialized
13:59:28,163 INFO [main] managers.SFSBannedUserManager - BanUser data loaded: 0 records.
13:59:28,169 INFO [main] v2.SmartFoxServer - Protocol Type is: BINARY
13:59:28,183 INFO [main] config.DefaultConfigLoader - Loading: zones\BasicExamples.zone.xml
13:59:28,209 INFO [main] managers.SFSZoneManager -

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
>> Zone: BasicExamples
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

13:59:28,241 INFO [main] managers.SFSRoomManager - Room created: { Zone: BasicExamples }, [ Room: The Lobby, Id: 0, Group: default, isGame: false ], type = SFSRoom
13:59:28,247 INFO [main] managers.SFSRoomManager - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: false ], type = SFSRoom
13:59:28,378 INFO [main] core.AdminToolService - AdminTool Service started
13:59:28,526 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 0.0.0.0:9933, (Udp) }
13:59:28,532 INFO [SFSWorker:Sys:1] v2.SmartFoxServer -
_____ _____ _____ ___ __ __
| __| __| __| |_ | | |
|__ | __|__ | | _|- -|
|_____|__| |_____| |___|__|__|
_____ _____ _____ ____ __ __
| __ | __| _ | \| | |
| -| __| | | |_ _|
|__|__|_____|__|__|____/ |_|

[ Version: 2.20.0 ]
(c) gotoAndPlay() 2012-2024

13:59:28,532 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - SmartFoxServer 2X (2.20.0) READY!
13:59:28,535 WARN [SFSWorker:Sys:1] v2.SmartFoxServer - com.smartfoxserver.v2.exceptions.SFSRuntimeException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException
Message: Using default Admin login and password!
----------------------------------------------------------------------
You are currently using the default Admin credentials, which aren't very secure.
We urge you to connect via the AdminTool and change your Admin credentials.
Once logged in choose Server Settings > Remote Admin, apply the changes and restart SFS2X.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

13:59:32,217 INFO [TomcatRunner] bluebox.BBSessionFilter - SFS2X Web Service (4.0.2) Ready -- Tomcat: Apache Tomcat/9.0.87
14:04:19,644 WARN [http-nio-8080-exec-10] websocket.SFS2XWSService - Error on Websocket connection.
java.lang.IllegalArgumentException: '[0:0:0:0:0:0:0:1]' is not an IP string literal.
at com.google.common.net.InetAddresses.forString(InetAddresses.java:153)
at com.smartfoxserver.bitswarm.util.IPUtil.getIntAddress(IPUtil.java:95)
at com.smartfoxserver.bitswarm.util.IPUtil.isInRange(IPUtil.java:85)
at com.smartfoxserver.bitswarm.core.security.AdvancedConnectionFilter.isWhiteListed(AdvancedConnectionFilter.java:170)
at com.smartfoxserver.bitswarm.core.security.AdvancedConnectionFilter.validateAndAddAddress(AdvancedConnectionFilter.java:153)
at sfs2x.ws.tomcat.websocket.SFS2XWSService.onOpenEvent(SFS2XWSService.java:183)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:67)
at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:46)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:970)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1786)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
14:04:19,667 WARN [SFSWorker:Sys:3] v290.SystemReqController - java.lang.NullPointerException: Cannot invoke "com.smartfoxserver.bitswarm.sessions.ISession.getFullIpAddress()" because "session" is null
com.smartfoxserver.v2.util.CryptoUtils.getUniqueSessionToken(CryptoUtils.java:34)
com.smartfoxserver.v2.controllers.system.Handshake.execute(Handshake.java:107)
com.smartfoxserver.v2.controllers.v290.SystemReqController.processRequest(SystemReqController.java:191)
com.smartfoxserver.v2.controllers.v290.SystemReqController.enqueueRequest(SystemReqController.java:146)
com.smartfoxserver.bitswarm.io.protocols.AbstractProtocolCodec.dispatchRequestToController(AbstractProtocolCodec.java:39)
com.smartfoxserver.bitswarm.websocket.tomcat.WebSocketBinaryProtocolCodec.dispatchRequest(WebSocketBinaryProtocolCodec.java:217)
com.smartfoxserver.bitswarm.websocket.tomcat.WebSocketBinaryProtocolCodec.onPacketRead(WebSocketBinaryProtocolCodec.java:78)
sfs2x.ws.tomcat.websocket.SFS2XWSService$WSIOExecutor.run(SFS2XWSService.java:521)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
java.base/java.lang.Thread.run(Thread.java:1583)

14:04:26,854 WARN [http-nio-8080-exec-5] websocket.SFS2XWSService - Error on Websocket connection.
java.lang.IllegalArgumentException: '[0:0:0:0:0:0:0:1]' is not an IP string literal.
at com.google.common.net.InetAddresses.forString(InetAddresses.java:153)
at com.smartfoxserver.bitswarm.util.IPUtil.getIntAddress(IPUtil.java:95)
at com.smartfoxserver.bitswarm.util.IPUtil.isInRange(IPUtil.java:85)
at com.smartfoxserver.bitswarm.core.security.AdvancedConnectionFilter.isWhiteListed(AdvancedConnectionFilter.java:170)
at com.smartfoxserver.bitswarm.core.security.AdvancedConnectionFilter.validateAndAddAddress(AdvancedConnectionFilter.java:153)
at sfs2x.ws.tomcat.websocket.SFS2XWSService.onOpenEvent(SFS2XWSService.java:183)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:67)
at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:46)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:970)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1786)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
14:04:26,857 WARN [SFSWorker:Sys:4] v290.SystemReqController - java.lang.NullPointerException: Cannot invoke "com.smartfoxserver.bitswarm.sessions.ISession.getFullIpAddress()" because "session" is null
com.smartfoxserver.v2.util.CryptoUtils.getUniqueSessionToken(CryptoUtils.java:34)
com.smartfoxserver.v2.controllers.system.Handshake.execute(Handshake.java:107)
com.smartfoxserver.v2.controllers.v290.SystemReqController.processRequest(SystemReqController.java:191)
com.smartfoxserver.v2.controllers.v290.SystemReqController.enqueueRequest(SystemReqController.java:146)
com.smartfoxserver.bitswarm.io.protocols.AbstractProtocolCodec.dispatchRequestToController(AbstractProtocolCodec.java:39)
com.smartfoxserver.bitswarm.websocket.tomcat.WebSocketBinaryProtocolCodec.dispatchRequest(WebSocketBinaryProtocolCodec.java:217)
com.smartfoxserver.bitswarm.websocket.tomcat.WebSocketBinaryProtocolCodec.onPacketRead(WebSocketBinaryProtocolCodec.java:78)
sfs2x.ws.tomcat.websocket.SFS2XWSService$WSIOExecutor.run(SFS2XWSService.java:521)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
java.base/java.lang.Thread.run(Thread.java:1583)

14:07:16,953 INFO [Thread-0] managers.SFSZoneManager - BuddyList saveAll...
14:07:16,953 WARN [SFS2X ShutdownHook] core.SFSShutdownHook - SFS2X is shutting down. The process may take a few seconds...
14:07:16,957 INFO [Thread-1] managers.SFSBannedUserManager - BanUser data saved.
Terminate batch job (Y/N)? y
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: v2.20.0 admin console - unable to login due to errors

Post by Lapo »

Hi,
I have to use Java v21 due to the newest Eclipse limitations.

What limitations, exactly?
I am currently using the latest Eclipse (2024-06) with Java 11 and there is no problem.

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
AlaskanDruid
Posts: 10
Joined: 06 Aug 2024, 01:26

Re: v2.20.0 admin console - unable to login due to errors

Post by AlaskanDruid »

Lapo wrote:Hi,
I have to use Java v21 due to the newest Eclipse limitations.

What limitations, exactly?
I am currently using the latest Eclipse (2024-06) with Java 11 and there is no problem.

thanks


My apologies (I'll also correct myself in the other thread), I misspoke on that part of my post :(

Ah I forgot the rest of the post lol.

Is it possible to update the Java upgrade page with instructions to prevent the SFS from crashing when upgrading Java? Or is it safer to wait until the next version of SFS with a newer version of Java?
Post Reply