Test

I am having all sorts of trouble with WebStart, SGS, etc… and my router. Not sure what address to use where. I can connect and run my game fom the LAN, but can’t test from outside. Probably will get “error connecting: null”

Anyway, can somone ping it and let me know if you get the “null” error, or if you can get ther at all.

http://71.206.133.215/CubeWars/CW.jnlp

same here:

[quote]begin init…
Created wall # 0
Created wall # 1
Created wall # 2
Created wall # 3
Created wall # 4
Created wall # 5
Created wall # 6
Created wall # 7
Created wall # 8
Created wall # 9
Created wall # 10
Created wall # 11
Created wall # 12
Created wall # 13
Created wall # 14
Created wall # 15
Created wall # 16
Created wall # 17
Created wall # 18
Created wall # 19
Created wall # 20
Created wall # 21
Created wall # 22
Created wall # 23
Created wall # 24
Created wall # 25
Created wall # 26
Created wall # 27
Created wall # 28
Created wall # 29
Created wall # 30
Should have found discovery…
Found discovery stream of size: 22
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at com.sun.gi.comm.discovery.impl.URLDiscoverer.games(URLDiscoverer.java:117)
at com.sun.gi.comm.users.client.impl.ClientConnectionManagerImpl.discoverGame(ClientConnectionManagerImpl.java:153)
at com.sun.gi.comm.users.client.impl.ClientConnectionManagerImpl.getUserManagerClassNames(ClientConnectionManagerImpl.java:133)
at org.mb.cubewars.Client.connect(Client.java:87)
at org.mb.cubewars.CubeWars.logic(CubeWars.java:465)
at org.mb.cubewars.CubeWars.run(CubeWars.java:353)
at org.mb.cubewars.CubeWars.(CubeWars.java:154)
at org.mb.cubewars.CubeWars.main(CubeWars.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[/quote]

and… not sure what “org.xml.sax.SAXParseException: Content is not allowed in prolog.” means! ?

Look at:

[quote]at com.sun.gi.comm.discovery.impl.URLDiscoverer.games(URLDiscoverer.java:117)
[/quote]
After that you get an XML (SAXParseException). So, something with your games file (XML) might be wrong? Just my 2 cents, not sure if it is of any help?

Yeah, did a little searching and I must have a space or CRLF at the top of my XML. Will double check when I get home.

Well, checked and nothing out of the ordinary. In fact the only diff between that and my copy for local use is the ip address. hmmmm? According to the error message, it is this line (87)

String [] classNames = connManager.getUserManagerClassNames();

odd!

Think I got it working…!!! Let me know.

Okay so few questions for those of you having trouble.

First one is, are you using real dscovery (the disovery.xml file generated by the server) or a local fake discovery file.

In general real-discovery will not work with a server behind a NAT firewall. This is because the server announes its ip to the client rhough discoveru but the ip gets changed by the NAT firewall. The solution is to run your server in the DMZ of your firewall if it has one, our outside your firewall otherwise

To be honest, I am using the FakeDiscovery and have it sitting with my jars. I pass a Url of the FD location (h…p://ip/gamename/fakediscovery.xml) Just was easier since I had all sorts of trouble trying to decide what ip to put in my jnlp, fakediscovery and deploy.xml files. Was trial and error till it worked. Then my kids played head to head last night for about an hour them they played XSW for another hour.
Now that I have it working, I am ready to convert Galaxy Traders to SGS (after making a backup that I can revert back to if the legal stuff doesnt pan out for me).