Thread: [Kronos] Error Connecting to Server

Results 1 to 8 of 8
  1. #1 [Kronos] Error Connecting to Server 
    Registered Member
    Join Date
    Aug 2021
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I have changed the Cache path in server.properties
    I have changed the ClientConfigloader class
    I have changed the NettyServer

    I have created the text files in Kronos Folder
    uuid_bans, ip_bans, ip_mutes and mac_bans

    go to run client no errors till i try to connect a second time and get the Error connecting to server message and the stuff in Update server

    what else am I missing?

    if I dont need this from shadowpkers guide then why cant it connect?
    "You don't need sql to play. You don't also need Xampp"

    Thank you

    Server.properties
    Code:
            #Initial loading data
            offline_mode=true
            cache_path=..//Cache
            data_path=Data
    
            #World information
            world_id=3
            world_name=World 3
            world_stage=DEV
            world_type=PVP
            world_flag=CANADA
            world_settings=MEMBERS
            world_address=0.0.0.0:13302
            central_address=127.0.0.1
    
            #Misc info
            login_set=live
    
            #Server theme
            halloween=false
            christmas=false
            database_host=3
            database_password=2
            database_user=1
    ClientConfigLoader
    Code:
    		/*
    		 * Copyright (c) 2016-2017, Adam <[email protected]>
    		 * Copyright (c) 2018, Tomas Slusny <[email protected]>
    		 * All rights reserved.
    		 *
    		 * Redistribution and use in source and binary forms, with or without
    		 * modification, are permitted provided that the following conditions are met:
    		 *
    		 * 1. Redistributions of source code must retain the above copyright notice, this
    		 *    list of conditions and the following disclaimer.
    		 * 2. Redistributions in binary form must reproduce the above copyright notice,
    		 *    this list of conditions and the following disclaimer in the documentation
    		 *    and/or other materials provided with the distribution.
    		 *
    		 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    		 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    		 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    		 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
    		 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    		 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    		 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    		 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    		 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    		 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    		 */
    		package net.runelite.client.rs;
    
    		import io.reactivex.Single;
    		import java.io.BufferedReader;
    		import java.io.IOException;
    		import java.io.InputStreamReader;
    		import net.runelite.http.api.RuneLiteAPI;
    		import okhttp3.HttpUrl;
    		import okhttp3.Request;
    		import okhttp3.Response;
    
    		class ClientConfigLoader
    		{
    			private ClientConfigLoader()
    			{
    				throw new RuntimeException();
    			}
    
    		//	private static final String CONFIG_URL = "http://community.kronos.rip/jav_config.ws";
    			private static final String CONFIG_URL = "http://oldschool6b.runescape.com/jav_config.ws";
    			private static final int MAX_ATTEMPTS = 16;
    
    			static Single<RSConfig> fetch()
    			{
    				return Single.create(obs ->
    				{
    					int attempt = 0;
    
    					HostSupplier supplier = null;
    					HttpUrl url = HttpUrl.parse(CONFIG_URL);
    
    					final RSConfig config = new RSConfig();
    
    					while (attempt++ < MAX_ATTEMPTS)
    					{
    						final Request request = new Request.Builder()
    							.url(url)
    							.build();
    
    						try (final Response response = RuneLiteAPI.CLIENT.newCall(request).execute())
    						{
    							if (!response.isSuccessful())
    							{
    								if (supplier == null)
    								{
    									supplier = new HostSupplier();
    								}
    
    								url = supplier.get();
    								continue;
    							}
    
    							String str;
    							final BufferedReader in = new BufferedReader(new InputStreamReader(response.body().byteStream()));
    							while ((str = in.readLine()) != null)
    							{
    								int idx = str.indexOf('=');
    
    								if (idx == -1)
    								{
    									continue;
    								}
    
    								String s = str.substring(0, idx);
    
    								switch (s)
    								{
    									case "param":
    										str = str.substring(idx + 1);
    										idx = str.indexOf('=');
    										s = str.substring(0, idx);
    
    										config.getAppletProperties().put(s, str.substring(idx + 1));
    										break;
    									case "msg":
    										// ignore
    										break;
    									default:
    										config.getClassLoaderProperties().put(s, str.substring(idx + 1));
    										break;
    								}
    							}
    
    							obs.onSuccess(config);
    							return;
    						}
    					}
    
    					obs.onError(new IOException("Too many attempts"));
    				});
    			}
    		}
    NettyServer

    Code:
            package io.ruin.api.netty;
    
            import io.netty.bootstrap.ServerBootstrap;
            import io.netty.channel.*;
            import io.netty.channel.nio.NioEventLoopGroup;
            import io.netty.channel.socket.SocketChannel;
            import io.netty.channel.socket.nio.NioServerSocketChannel;
            import io.ruin.api.utils.ServerWrapper;
            import io.ruin.api.utils.ThreadUtils;
    
            public class NettyServer {
    
                private final EventLoopGroup bossGroup, workerGroup;
    
                private NettyServer(EventLoopGroup bossGroup, EventLoopGroup workerGroup) {
                    this.bossGroup = bossGroup;
                    this.workerGroup = workerGroup;
                }
    
                public void shutdown() {
                    bossGroup.shutdownGracefully();
                    workerGroup.shutdownGracefully();
                }
    
                public static NettyServer start(String name, int port, Class<? extends ChannelHandler> c, int gcs, boolean local) {
                    NettyServer server = new NettyServer(new NioEventLoopGroup(), new NioEventLoopGroup());
                    ServerBootstrap bootstrap = new ServerBootstrap();
                    bootstrap.group(server.bossGroup, server.workerGroup);
                    bootstrap.channel(NioServerSocketChannel.class);
                    bootstrap.childHandler(new ChannelInitializer<SocketChannel>() {
                        @Override
                        public void initChannel(SocketChannel ch) throws Exception {
                            ChannelPipeline pipeline = ch.pipeline();
                            pipeline.addLast("decoder", c.newInstance());
                            pipeline.addLast("exception_handler", new ExceptionHandler());
                        }
                    });
                    bootstrap.childOption(ChannelOption.CONNECT_TIMEOUT_MILLIS, 30000);
                    bootstrap.childOption(ChannelOption.TCP_NODELAY, true);
                    bootstrap.childOption(ChannelOption.SO_KEEPALIVE, true);
    
                    if(gcs > 0) {
                        for(int i = 0; i < gcs; i++)
                            System.gc();
                        ThreadUtils.sleep(1000L);
                    }
    
                    String host = "127.0.0.1";
                    if (!local) {
                    //  host = "144.217.10.42";
                        host = "127.0.0.1";
                        if (name.toLowerCase().contains("beta")) {
                        //  host = "167.114.217.217";
                            host = "127.0.0.1";
                        }
                        bootstrap.bind(host, port);
                    } else {
                        bootstrap.bind(port);
                    }
    
                    ServerWrapper.println(name + " is now listening on " + host + ":" + port);
                    return server;
                }
    
            }

    Error Update server

    Code:
    2:55:26 PM: Executing task 'run'...
    
    Configuration on demand is an incubating feature.
    
    > Configure project :
    The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.4.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
    	at build_5h8yaq95row1mzinqzuaq4c6l$_run_closure2$_closure14.doCall(C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\build.gradle:61)
    	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
    The testCompile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testImplementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.4.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
    	at build_5h8yaq95row1mzinqzuaq4c6l$_run_closure2$_closure14.doCall(C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\build.gradle:68)
    	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
    
    > Task :kronos-update-server:processResources NO-SOURCE
    > Task :kronos-api:compileKotlin UP-TO-DATE
    
    > Task :kronos-api:compileJava UP-TO-DATE
    Using insecure protocols with repositories has been deprecated. This is scheduled to be removed in Gradle 7.0. Switch Maven repository 'maven(http://repo.maven.apache.org/maven2)' to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/6.4.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
    
    > Task :kronos-api:processResources NO-SOURCE
    > Task :kronos-api:classes UP-TO-DATE
    > Task :kronos-api:inspectClassesForKotlinIC UP-TO-DATE
    > Task :kronos-api:jar UP-TO-DATE
    > Task :kronos-update-server:compileJava UP-TO-DATE
    > Task :kronos-update-server:classes UP-TO-DATE
    
    > Task :kronos-update-server:run
    Initiating file store...
    [main] INFO io.ruin.update.Server - Looking for system.properties in C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\kronos-update-server\..\kronos-server\server.properties
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/C:/Users/John-PC/.gradle/caches/modules-2/files-2.1/io.netty/netty-all/4.1.17.Final/43142cd1d6a0ea281eb6a4990354b4d3ad23dd43/netty-all-4.1.17.Final.jar) to constructor java.nio.DirectByteBuffer(long,int)
    WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    [09/08/2021 02:55:29 PM]: Update Server is now listening on 127.0.0.1:7304
    [nioEventLoopGroup-3-21] ERROR rollingErrorFileLogger - Netty issue
    java.net.SocketException: Connection reset
    	at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:342)
    	at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:374)
    	at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)
    	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1106)
    	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:343)
    	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
    	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
    	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
    	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
    	at java.base/java.lang.Thread.run(Thread.java:830)
    Reply With Quote  
     

  2. #2  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by pure eater View Post
    I have changed the Cache path in server.properties
    I have changed the ClientConfigloader class
    I have changed the NettyServer

    I have created the text files in Kronos Folder
    uuid_bans, ip_bans, ip_mutes and mac_bans

    go to run client no errors till i try to connect a second time and get the Error connecting to server message and the stuff in Update server

    what else am I missing?

    if I dont need this from shadowpkers guide then why cant it connect?
    "You don't need sql to play. You don't also need Xampp"

    Thank you

    Server.properties
    Code:
            #Initial loading data
            offline_mode=true
            cache_path=..//Cache
            data_path=Data
    
            #World information
            world_id=3
            world_name=World 3
            world_stage=DEV
            world_type=PVP
            world_flag=CANADA
            world_settings=MEMBERS
            world_address=0.0.0.0:13302
            central_address=127.0.0.1
    
            #Misc info
            login_set=live
    
            #Server theme
            halloween=false
            christmas=false
            database_host=3
            database_password=2
            database_user=1
    ClientConfigLoader
    Code:
    		/*
    		 * Copyright (c) 2016-2017, Adam <[email protected]>
    		 * Copyright (c) 2018, Tomas Slusny <[email protected]>
    		 * All rights reserved.
    		 *
    		 * Redistribution and use in source and binary forms, with or without
    		 * modification, are permitted provided that the following conditions are met:
    		 *
    		 * 1. Redistributions of source code must retain the above copyright notice, this
    		 *    list of conditions and the following disclaimer.
    		 * 2. Redistributions in binary form must reproduce the above copyright notice,
    		 *    this list of conditions and the following disclaimer in the documentation
    		 *    and/or other materials provided with the distribution.
    		 *
    		 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    		 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    		 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    		 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
    		 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    		 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    		 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    		 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    		 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    		 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    		 */
    		package net.runelite.client.rs;
    
    		import io.reactivex.Single;
    		import java.io.BufferedReader;
    		import java.io.IOException;
    		import java.io.InputStreamReader;
    		import net.runelite.http.api.RuneLiteAPI;
    		import okhttp3.HttpUrl;
    		import okhttp3.Request;
    		import okhttp3.Response;
    
    		class ClientConfigLoader
    		{
    			private ClientConfigLoader()
    			{
    				throw new RuntimeException();
    			}
    
    		//	private static final String CONFIG_URL = "http://community.kronos.rip/jav_config.ws";
    			private static final String CONFIG_URL = "http://oldschool6b.runescape.com/jav_config.ws";
    			private static final int MAX_ATTEMPTS = 16;
    
    			static Single<RSConfig> fetch()
    			{
    				return Single.create(obs ->
    				{
    					int attempt = 0;
    
    					HostSupplier supplier = null;
    					HttpUrl url = HttpUrl.parse(CONFIG_URL);
    
    					final RSConfig config = new RSConfig();
    
    					while (attempt++ < MAX_ATTEMPTS)
    					{
    						final Request request = new Request.Builder()
    							.url(url)
    							.build();
    
    						try (final Response response = RuneLiteAPI.CLIENT.newCall(request).execute())
    						{
    							if (!response.isSuccessful())
    							{
    								if (supplier == null)
    								{
    									supplier = new HostSupplier();
    								}
    
    								url = supplier.get();
    								continue;
    							}
    
    							String str;
    							final BufferedReader in = new BufferedReader(new InputStreamReader(response.body().byteStream()));
    							while ((str = in.readLine()) != null)
    							{
    								int idx = str.indexOf('=');
    
    								if (idx == -1)
    								{
    									continue;
    								}
    
    								String s = str.substring(0, idx);
    
    								switch (s)
    								{
    									case "param":
    										str = str.substring(idx + 1);
    										idx = str.indexOf('=');
    										s = str.substring(0, idx);
    
    										config.getAppletProperties().put(s, str.substring(idx + 1));
    										break;
    									case "msg":
    										// ignore
    										break;
    									default:
    										config.getClassLoaderProperties().put(s, str.substring(idx + 1));
    										break;
    								}
    							}
    
    							obs.onSuccess(config);
    							return;
    						}
    					}
    
    					obs.onError(new IOException("Too many attempts"));
    				});
    			}
    		}
    NettyServer

    Code:
            package io.ruin.api.netty;
    
            import io.netty.bootstrap.ServerBootstrap;
            import io.netty.channel.*;
            import io.netty.channel.nio.NioEventLoopGroup;
            import io.netty.channel.socket.SocketChannel;
            import io.netty.channel.socket.nio.NioServerSocketChannel;
            import io.ruin.api.utils.ServerWrapper;
            import io.ruin.api.utils.ThreadUtils;
    
            public class NettyServer {
    
                private final EventLoopGroup bossGroup, workerGroup;
    
                private NettyServer(EventLoopGroup bossGroup, EventLoopGroup workerGroup) {
                    this.bossGroup = bossGroup;
                    this.workerGroup = workerGroup;
                }
    
                public void shutdown() {
                    bossGroup.shutdownGracefully();
                    workerGroup.shutdownGracefully();
                }
    
                public static NettyServer start(String name, int port, Class<? extends ChannelHandler> c, int gcs, boolean local) {
                    NettyServer server = new NettyServer(new NioEventLoopGroup(), new NioEventLoopGroup());
                    ServerBootstrap bootstrap = new ServerBootstrap();
                    bootstrap.group(server.bossGroup, server.workerGroup);
                    bootstrap.channel(NioServerSocketChannel.class);
                    bootstrap.childHandler(new ChannelInitializer<SocketChannel>() {
                        @Override
                        public void initChannel(SocketChannel ch) throws Exception {
                            ChannelPipeline pipeline = ch.pipeline();
                            pipeline.addLast("decoder", c.newInstance());
                            pipeline.addLast("exception_handler", new ExceptionHandler());
                        }
                    });
                    bootstrap.childOption(ChannelOption.CONNECT_TIMEOUT_MILLIS, 30000);
                    bootstrap.childOption(ChannelOption.TCP_NODELAY, true);
                    bootstrap.childOption(ChannelOption.SO_KEEPALIVE, true);
    
                    if(gcs > 0) {
                        for(int i = 0; i < gcs; i++)
                            System.gc();
                        ThreadUtils.sleep(1000L);
                    }
    
                    String host = "127.0.0.1";
                    if (!local) {
                    //  host = "144.217.10.42";
                        host = "127.0.0.1";
                        if (name.toLowerCase().contains("beta")) {
                        //  host = "167.114.217.217";
                            host = "127.0.0.1";
                        }
                        bootstrap.bind(host, port);
                    } else {
                        bootstrap.bind(port);
                    }
    
                    ServerWrapper.println(name + " is now listening on " + host + ":" + port);
                    return server;
                }
    
            }

    Error Update server

    Code:
    2:55:26 PM: Executing task 'run'...
    
    Configuration on demand is an incubating feature.
    
    > Configure project :
    The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.4.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
    	at build_5h8yaq95row1mzinqzuaq4c6l$_run_closure2$_closure14.doCall(C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\build.gradle:61)
    	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
    The testCompile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testImplementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.4.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
    	at build_5h8yaq95row1mzinqzuaq4c6l$_run_closure2$_closure14.doCall(C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\build.gradle:68)
    	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
    
    > Task :kronos-update-server:processResources NO-SOURCE
    > Task :kronos-api:compileKotlin UP-TO-DATE
    
    > Task :kronos-api:compileJava UP-TO-DATE
    Using insecure protocols with repositories has been deprecated. This is scheduled to be removed in Gradle 7.0. Switch Maven repository 'maven(http://repo.maven.apache.org/maven2)' to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/6.4.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
    
    > Task :kronos-api:processResources NO-SOURCE
    > Task :kronos-api:classes UP-TO-DATE
    > Task :kronos-api:inspectClassesForKotlinIC UP-TO-DATE
    > Task :kronos-api:jar UP-TO-DATE
    > Task :kronos-update-server:compileJava UP-TO-DATE
    > Task :kronos-update-server:classes UP-TO-DATE
    
    > Task :kronos-update-server:run
    Initiating file store...
    [main] INFO io.ruin.update.Server - Looking for system.properties in C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\kronos-update-server\..\kronos-server\server.properties
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/C:/Users/John-PC/.gradle/caches/modules-2/files-2.1/io.netty/netty-all/4.1.17.Final/43142cd1d6a0ea281eb6a4990354b4d3ad23dd43/netty-all-4.1.17.Final.jar) to constructor java.nio.DirectByteBuffer(long,int)
    WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    [09/08/2021 02:55:29 PM]: Update Server is now listening on 127.0.0.1:7304
    [nioEventLoopGroup-3-21] ERROR rollingErrorFileLogger - Netty issue
    java.net.SocketException: Connection reset
    	at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:342)
    	at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:374)
    	at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)
    	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1106)
    	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:343)
    	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
    	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
    	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
    	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
    	at java.base/java.lang.Thread.run(Thread.java:830)
    Are server.properties in updates server too?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2021
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Mr Pharaoh View Post
    Are server.properties in updates server too?
    Server UpdateServer and Kronos Launcher ya unless its the Data path however it hasnt given any problems with finding it in the terminals.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2021
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Ive even changed customworld
    guessing its related to playersaving possibly?
    Reply With Quote  
     

  5. #5  
    Slow resistance wins the war...
    Altar's Avatar
    Join Date
    Jun 2014
    Age
    26
    Posts
    65
    Thanks given
    25
    Thanks received
    17
    Rep Power
    36
    WARNING: An illegal reflective access operation has occurred - you can read up on this error here but I do believe this is a Java related issue. I assume you must be using Java JDK 16 or Java JDK 17; I believe the poster of the original source said he used Java JDK 8 to compile/run the server, so you might want to try with this and give it a go.

    Also, remember to change settings in File>Project Structure>Project>Project SDK> ensure it's JDK 1.8

    Give it a shot and let me know how it goes!
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Aug 2021
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Altar View Post
    WARNING: An illegal reflective access operation has occurred - you can read up on this error here but I do believe this is a Java related issue. I assume you must be using Java JDK 16 or Java JDK 17; I believe the poster of the original source said he used Java JDK 8 to compile/run the server, so you might want to try with this and give it a go.

    Also, remember to change settings in File>Project Structure>Project>Project SDK> ensure it's JDK 1.8

    Give it a shot and let me know how it goes!
    something about package not existing
    i did the 1.8 Azul one so it should be like import azul or something not sure what the pacakge is called exactly

    Class47

    Code:
    import java.applet.Applet;
    import net.runelite.mapping.ObfuscatedName;
    import net.runelite.mapping.ObfuscatedSignature;
    import netscape.javascript.JSObject;
    
    @ObfuscatedName("aj")
    public class class47 {
    	@ObfuscatedName("z")
    	@ObfuscatedSignature(
    		signature = "(Ljava/applet/Applet;Ljava/lang/String;I)V",
    		garbageValue = "-716931956"
    	)
    	public static void method880(Applet var0, String var1) throws Throwable {
    		JSObject.getWindow(var0).eval(var1);
    	}
    
    	@ObfuscatedName("n")
    	@ObfuscatedSignature(
    		signature = "(Ljava/applet/Applet;Ljava/lang/String;B)Ljava/lang/Object;",
    		garbageValue = "-1"
    	)
    	public static Object method881(Applet var0, String var1) throws Throwable {
    		return JSObject.getWindow(var0).call(var1, (Object[])null);
    	}
    }
    Reply With Quote  
     

  7. #7  
    Slow resistance wins the war...
    Altar's Avatar
    Join Date
    Jun 2014
    Age
    26
    Posts
    65
    Thanks given
    25
    Thanks received
    17
    Rep Power
    36
    Quote Originally Posted by pure eater View Post
    something about package not existing
    i did the 1.8 Azul one so it should be like import azul or something not sure what the pacakge is called exactly

    Class47

    Code:
    import java.applet.Applet;
    import net.runelite.mapping.ObfuscatedName;
    import net.runelite.mapping.ObfuscatedSignature;
    import netscape.javascript.JSObject;
    
    @ObfuscatedName("aj")
    public class class47 {
    	@ObfuscatedName("z")
    	@ObfuscatedSignature(
    		signature = "(Ljava/applet/Applet;Ljava/lang/String;I)V",
    		garbageValue = "-716931956"
    	)
    	public static void method880(Applet var0, String var1) throws Throwable {
    		JSObject.getWindow(var0).eval(var1);
    	}
    
    	@ObfuscatedName("n")
    	@ObfuscatedSignature(
    		signature = "(Ljava/applet/Applet;Ljava/lang/String;B)Ljava/lang/Object;",
    		garbageValue = "-1"
    	)
    	public static Object method881(Applet var0, String var1) throws Throwable {
    		return JSObject.getWindow(var0).call(var1, (Object[])null);
    	}
    }
    Do not use anything that says azul. It should look like this:
    Attached image

    Then compiler should be setup like this:
    Settings > Build-Execution-Deployment > Build Tools > Gradle
    Attached image
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Aug 2021
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I changed to JDK 1.8.292 and no errors in Update server however kronos server gave this

    guessing Killim is the netty stuff like databases and the worlds?

    still does Error connecting to server aswell

    jav_config.ws

    Code:
    title=Old School RuneScape
    adverturl=http://www.runescape.com/g=oldscape/bare_advert.ws
    codebase=http://oldschool17.runescape.com/
    cachedir=oldschool
    storebase=0
    initial_jar=gamepack_2740394.jar
    initial_class=client.class
    termsurl=http://www.jagex.com/g=oldscape/terms/terms.ws
    privacyurl=http://www.jagex.com/g=oldscape/privacy/privacy.ws
    viewerversion=124
    win_sub_version=1
    mac_sub_version=2
    other_sub_version=2
    browsercontrol_win_x86_jar=browsercontrol_0_-1928975093.jar
    browsercontrol_win_amd64_jar=browsercontrol_1_1674545273.jar
    download=1365098
    window_preferredwidth=800
    window_preferredheight=600
    advert_height=96
    applet_minwidth=765
    applet_minheight=503
    applet_maxwidth=5760
    applet_maxheight=2160
    msg=lang0=English
    msg=tandc=This game is copyright � 1999 - 2019 Jagex Ltd.\Use of this game is subject to our ["http://www.runescape.com/terms/terms.ws"Terms and Conditions] and ["http://www.runescape.com/privacy/privacy.ws"Privacy Policy].
    msg=options=Options
    msg=language=Language
    msg=changes_on_restart=Your changes will take effect when you next start this program.
    msg=loading_app_resources=Loading application resources
    msg=err_verify_bc64=Unable to verify browsercontrol64
    msg=err_verify_bc=Unable to verify browsercontrol
    msg=err_load_bc=Unable to load browsercontrol
    msg=loading_app=Loading application
    msg=err_create_target=Unable to create target applet
    msg=err_create_advertising=Unable to create advertising
    msg=err_save_file=Error saving file
    msg=err_downloading=Error downloading
    msg=ok=OK
    msg=cancel=Cancel
    msg=message=Message
    msg=copy_paste_url=Please copy and paste the following URL into your web browser
    msg=information=Information
    msg=err_get_file=Error getting file
    msg=new_version=Update available! You can now launch the client directly from the OldSchool website.\nGet the new version from the link on the OldSchool homepage: http://oldschool.runescape.com/
    msg=new_version_linktext=Open OldSchool Homepage
    msg=new_version_link=http://oldschool.runescape.com/
    param=8=true
    param=14=0
    param=2=https://payments.jagex.com/operator/v1/
    param=10=5
    param=7=0
    param=11=https://auth.jagex.com/
    param=3=true
    param=12=1
    param=18=
    param=15=0
    param=9=ElZAIrq5NpKN6D3mDdihco3oPeYN2KFy2DCquj7JMmECPmLrDP3Bnw
    param=17=https://www.dropbox.com/s/finxgzq8atzhwmo/worlds.ws?dl=0
    param=16=false
    param=1=1
    param=13=.runescape.com
    param=6=0
    param=19=196515767263-1oo20deqm6edn7ujlihl6rpadk9drhva.apps.googleusercontent.com
    param=5=1
    param=4=49009


    Code:
    1:14:50 PM: Executing task 'run'...
    
    Starting Gradle Daemon...
    Gradle Daemon started in 3 s 538 ms
    Configuration on demand is an incubating feature.
    
    > Configure project :
    The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.4.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
    	at build_5h8yaq95row1mzinqzuaq4c6l$_run_closure2$_closure14.doCall(C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\build.gradle:61)
    	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
    The testCompile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testImplementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.4.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
    	at build_5h8yaq95row1mzinqzuaq4c6l$_run_closure2$_closure14.doCall(C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\build.gradle:68)
    	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
    
    > Task :kronos-server:processResources UP-TO-DATE
    > Task :kronos-api:compileKotlin UP-TO-DATE
    
    > Task :kronos-api:compileJava UP-TO-DATE
    Using insecure protocols with repositories has been deprecated. This is scheduled to be removed in Gradle 7.0. Switch Maven repository 'maven(http://repo.maven.apache.org/maven2)' to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/6.4.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
    
    > Task :kronos-api:processResources NO-SOURCE
    > Task :kronos-api:classes UP-TO-DATE
    > Task :kronos-api:inspectClassesForKotlinIC UP-TO-DATE
    > Task :kronos-api:jar UP-TO-DATE
    > Task :kronos-server:compileKotlin UP-TO-DATE
    > Task :kronos-server:compileJava UP-TO-DATE
    > Task :kronos-server:classes UP-TO-DATE
    
    > Task :kronos-server:run
    Failed to install signal handler: java.lang.IllegalArgumentException: Unknown signal: TRAP
    [main] INFO io.ruin.Server - sun.misc.Launcher$AppClassLoader@18b4aac2
    [Attach Listener] INFO kilim.agent.KilimAgent - agentmain method invoked with args:  and inst: sun.instrument.InstrumentationImpl@10aa85d2
    [09/29/2021 01:15:14 PM]: Loading server settings...
    [main] INFO io.ruin.Server - Looking for system.properties in C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\kronos-server\server.properties
    [09/29/2021 01:15:15 PM]: WARNING: Offline mode enabled!
    [09/29/2021 01:15:15 PM]: Loading server data...
    [09/29/2021 01:15:16 PM]: Data folder does not exist, attempting to load packed data...
    [main] ERROR rollingErrorFileLogger - 
    java.io.IOException: C:\Users\John-PC\Desktop\Kronos-master1.1\Kronos-master\kronos-server\build\classes\java\server-data.json not found!
    	at io.ruin.data.DataFile.loadPacked(DataFile.java:72)
    	at io.ruin.data.DataFile.load(DataFile.java:47)
    	at io.ruin.Server.main(Server.java:140)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at kilim.WeavingClassLoader.run(WeavingClassLoader.java:122)
    	at kilim.tools.Kilim.trampoline(Kilim.java:110)
    	at kilim.tools.Kilim.trampoline(Kilim.java:79)
    	at io.ruin.Server.main(Server.java:80)
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2010, 09:57 AM
  2. Replies: 2
    Last Post: 02-01-2010, 09:17 AM
  3. Replies: 0
    Last Post: 08-29-2009, 05:49 PM
  4. error connecting to server-PLEAZE HELP!!!
    By Alex D Gr8r in forum Help
    Replies: 3
    Last Post: 03-29-2009, 02:26 AM
  5. error connecting to server
    By eracana in forum Help
    Replies: 0
    Last Post: 02-26-2009, 09:28 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •