its trying to connect to "www.exoticrs.com"
First line "java.net.UnknownHostException: www.exoticrs.com"
This doesnt exist. Change it to localhost
|
|
Hey guys I got the server running fine but cant get the client to run this is what I get when I run it in eclipse if u need more info let me know please and thank you will rep and thanks for help..
java.net.UnknownHostException: [Only registered and activated users can see links. ]
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unkn own Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at java.net.URL.openStream(Unknown Source)
at com.client.FileDownloader.getNewestVersion(FileDow nloader.java:132)
at com.client.FileDownloader.start(FileDownloader.jav a:173)
at com.client.Client.startUp(Client.java:9535)
at com.client.RSApplet.run(RSApplet.java:153)
at com.client.Client.run(Client.java:5601)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.client.TextDrawingArea.<init>(TextDrawingArea. java:19)
at com.client.Client.startUp(Client.java:9568)
at com.client.RSApplet.run(RSApplet.java:153)
at com.client.Client.run(Client.java:5601)
at java.lang.Thread.run(Unknown Source)
Error: loaderror Starting up - This can take a few minutes 15

its trying to connect to "www.exoticrs.com"
First line "java.net.UnknownHostException: www.exoticrs.com"
This doesnt exist. Change it to localhost
I was thinking it mite be some thing like that just don't know where to change it it show that in like 2 or 3 spots
I am thinking it has some thing to do with this line of code but not 100% sure and if so not sure what I should change it to
public static String getNewestVersion() {
String md5 = null;
try (InputStream input = new URL("https://www.exoticrs.com/public/cache/md5.php").openStream()) {
md5 = IOUtils.toString(input);
} catch (IOException e) {
e.printStackTrace();
}
return md5;
}

if you change it to
public static String getNewestVersion() {
return "1";
}
what happens
this is what I get now
java.net.UnknownHostException: exoticrs.com
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unkn own Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at sun.net.[Only registered and activated users can see links. ] Source)
at com.client.FileDownloader.downloadFile(FileDownloa der.java:65)
at com.client.FileDownloader.start(FileDownloader.jav a:168)
at com.client.Client.startUp(Client.java:9535)
at com.client.RSApplet.run(RSApplet.java:153)
at com.client.Client.run(Client.java:5601)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.client.TextDrawingArea.<init>(TextDrawingArea. java:19)
at com.client.Client.startUp(Client.java:9568)
at com.client.RSApplet.run(RSApplet.java:153)
at com.client.Client.run(Client.java:5601)
at java.lang.Thread.run(Unknown Source)
Error: loaderror Starting up - This can take a few minutes 15

Have you got the cache for the client? also whats on each of these lines
FileDownloader.java line 168
Client.java line 9535
RSApplet.java 153
Client.java 5601
yeah I have the cache and here is the code for the lines
FileDownloa der.java:65
try (OutputStream out = new BufferedOutputStream(new FileOutputStream(type.getDirectory() + "/" + localFileName)); InputStream in = conn.getInputStream()) {
FileDownloader.jav a:168
downloadFile(client, type, getArchivedName(type));
Client.java:9535
FileDownloader.start(this, FileType.CACHE);
RSApplet.java:153
startUp();
Client.java:5601
super.run();
there is what is on each line or do u need all the code that goes with it
I put it on there forgot to quote u on it

I think its trying to find your cache but its not in the correct directory so its trying to download it from that website.
You need to be looking in Signlink.java - CacheDownloader.java - Client.java
If you're using an IDE such as Eclipse.. Go to Search -> and type in 'www.'
You'll be able to find any occurrence of your Client trying to connect to a site - it could even be a background image that it's trying to find.
here is 3 spots I found that in u know if this would be it or how to fix?
here is one
public static String getNewestVersion() {
String md5 = null;
try (InputStream input = new URL("https://www.exoticrs.com/public/cache/md5.php").openStream()) {
md5 = IOUtils.toString(input);
} catch (IOException e) {
e.printStackTrace();
}
return md5;
}
here is two
fadingScreen = new FadingScreenImage(newBoldFont,
"Error connecting to server. Go to [Only registered and activated users can see links. ] for info.", (byte) -1, (byte) 5, 765 / 2 - 125,
350, 250);
}
and here is the last one
if (super.mouseX >= centerX - 101 && super.mouseX <= centerX - 59 && super.mouseY >= centerY + 98 && super.mouseY <= centerY + 138) {
launchURL("https://www.exoticrs.com");
}

| « Targ system timers | What does these two statements do? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |