Captive Imagination
September 06, 2010, 09:37:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: jSeamless 1.0 Beta 7 is Available http://www.jseamless.org
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Connect Exception  (Read 671 times)
0 Members and 1 Guest are viewing this topic.
elias4444
Full Member
***
Offline Offline

Posts: 110


View Profile
« on: February 22, 2006, 05:20:50 PM »

I noticed this when a client tried connecting to a non-existent server address:


java.net.ConnectException: Connection refused: connect
   at sun.nio.ch.Net.connect(Native Method)
   at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
   at java.nio.channels.SocketChannel.open(Unknown Source)
   at com.captiveimagination.jgn.TCPMessageServer.getConnection(TCPMessageServer.java:157)
   at com.captiveimagination.jgn.TCPMessageServer.sendMessage(TCPMessageServer.java:141)
   at com.captiveimagination.jgn.client.NetworkingClient.sendToServerTCP(NetworkingClient.java:231)
   at com.captiveimagination.jgn.client.NetworkingClient.sendToServer(NetworkingClient.java:217)
   at com.captiveimagination.jgn.client.NetworkingClient.connect(NetworkingClient.java:137)
   at com.captiveimagination.jgn.client.NetworkingClient.connectAndWait(NetworkingClient.java:149)
   at jgnnetworkers.DGClient.connect(DGClient.java:155)
   at mainmenu.MainMenu.startMPClient(MainMenu.java:1236)
   at mainmenu.MainMenu.findserver(MainMenu.java:1203)
   at mainmenu.MainMenu.begin(MainMenu.java:611)
   at mainmenu.MainMenu.splashscreen(MainMenu.java:442)
   at mainmenu.MainMenu.main(MainMenu.java:1643)

I can't seem to catch the exception. No biggie... but it would be nice to catch the exception and keep it from spitting out because of some user error.
« Last Edit: February 22, 2006, 05:23:12 PM by elias4444 » Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #1 on: February 22, 2006, 06:44:27 PM »

I agree....I definitely need to rework some of the exception handling aspects of the API.

darkfrog
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.192 seconds with 20 queries.