Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  ChatTestClient hangs upon mgr.connect()  (Read 1792 times)
0 Members and 1 Guest are viewing this topic.
Offline jslott

Junior Newbie





« Posted 2006-05-21 17:28:09 »

When I run SGS and ChatTestClient, it seems to hang right after it calls mgr.client(). When debugging
through with Netbeans, it makes it past mgr.connect() but it hangs after actionPerformed() returns. In
terms of the GUI, I select a user manger, then nothing happens (Login is greyed out, "Status: Not
Connected" displayed).

Nothing shows up on the server console output after "finished loading files". I am using SGS right
out of the box, so to speak. I use FakeDiscovery.xml, rather than the discovery server. I'm on an
Ultra 20 (Solaris 10 x86) at home, perhaps it is something with my network at home (but it does
use 127.0.0.1 after all...)

I wish I could debug through this further -- if you have any ideas please let me know
Thanks,
Jordan

P.S. There is a bunch of disk activity by the SGS server, I am assuming this is normal.
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2006-05-22 06:55:06 »

Where are you running your server?  Is your FakeDiscovery.xml proeprly set to point to it?

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline jslott

Junior Newbie





« Reply #2 - Posted 2006-05-22 20:52:12 »

Jeff,

Thanks for getting back to me. The FakeDiscovery.xml file points to 127.0.0.1 and is
in the same directory from which I run the client. I am running both on an Ultra 20,
Solaris x64 from home. When I run the client I see the following on the console:

/home/jms54/src/sgs-ea1/release/clients% java -jar ChatTestClient.jar
Java Accessibility Bridge for GNOME loaded.

Found discovery stream of size: 1499
Found discovery stream of size: 1499

When I Ctrl-C the client, the console output for the server is:

finished loading files
May 22, 2006 2:46:55 PM com.sun.gi.logic.impl.SimulationImpl queueTask
WARNING: attempt to queue task for unknown uid UUID(1148323608052:-5200024520845086981)
May 22, 2006 2:46:55 PM com.sun.gi.logic.impl.SimulationImpl$1 userLeft
INFO: user UUID(1148323608052:-5200024520845086981) leaving but was not joined.

This seems to indicate a connection was made, I believe. Anything else I can tell you? Thanks very
much for your help -- good luck with EA2!

Jordan
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2006-05-24 07:03:58 »

Yup.

Wahts is the darkstar.log file?

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline jslott

Junior Newbie





« Reply #4 - Posted 2006-05-28 03:57:36 »

Jeff,

I don't see a darkstar.log file (I did "find" for it, but no luck). Where can I find it?

Thanks for your help,
Jordan
Offline Jeff

JGO Coder




Got any cats?


« Reply #5 - Posted 2006-05-31 23:58:10 »

Hmm. Intreesting.. it does  loo kto me like a low level conenction is happening.

You probably want to enable "FINEST" logging on the sevrer. It looks to me like your log output is goping to the console which shoudl be fine for now.

I need to look up how to enable that, there is a config file you set, Ill post a guide for that tonight.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline jslott

Junior Newbie





« Reply #6 - Posted 2006-06-13 05:09:27 »

Jeff,

I tried the same on my Mac OS X (Tiger v10.4) machine at home as well and do not run
into the problems I do on my Ultra 20 (Solaris 10) machine.  Since I can run this on my
Powerbook just fine, I do not necessarily need to run SGS on my Solaris machine, but
let me give you information about its configuration, since I suspect you may want to look
into this problem:

/opt/SUNWspro/prod/examples% java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

/opt/SUNWspro/prod/examples% uname -a
SunOS akela 5.10 Generic_118844-26 i86pc i386 i86pc

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
nge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 192.168.1.100 netmask ffffff00 broadcast 192.168.1.255
        ether 0:e0:81:5c:9f:cd

If there is anything else you would like me to provide, feel free to ask.
Jordan
Offline Jeff

JGO Coder




Got any cats?


« Reply #7 - Posted 2006-06-13 23:25:08 »

Thanks, yeah, I need to look into this.

We run on Solaris for all the shows and it works for us.  Must be something very subtle going on...

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (11 views)
2014-04-15 18:08:23

BurntPizza (10 views)
2014-04-15 03:46:01

UprightPath (23 views)
2014-04-14 17:39:50

UprightPath (10 views)
2014-04-14 17:35:47

Porlus (27 views)
2014-04-14 15:48:38

tom_mai78101 (49 views)
2014-04-10 04:04:31

BurntPizza (107 views)
2014-04-08 23:06:04

tom_mai78101 (207 views)
2014-04-05 13:34:39

trollwarrior1 (176 views)
2014-04-04 12:06:45

CJLetsGame (182 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!