Captive Imagination
September 06, 2010, 09:37:02 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
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
Captive Imagination
>
API Support
>
JavaGameNetworking (JGN)
>
Connect Exception
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Connect Exception (Read 671 times)
0 Members and 1 Guest are viewing this topic.
elias4444
Full Member
Offline
Posts: 110
Connect Exception
«
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
Posts: 2650
Re: Connect Exception
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> LogicalNetwork.com
=> Off-Topic
-----------------------------
Games
-----------------------------
=> Roll-A-Rama
=> LaunchPad
-----------------------------
API Support
-----------------------------
=> JavaGameNetworking (JGN)
===> jME-Networking
===> PhysicsNetworking API
===> GTGE-Networking
=> jcommon API
=> xjava
=> JavaRelational
=> Magic Beans
=> jSeamless
===> Swing Implementation
===> Architecture Planning
=> Artificial Intelligence API
Loading...