aptal karga (foolish crow)

Started by raft, March 24, 2005, 01:59:36 AM

Previous topic - Next topic

raft

ehm, i really dont know what's going on :?

it does work on my windows xp and fedora 4. there's one difference though, in untrusted mode (windowed) on windows, javaws displays a warning about connections to cave (localhost). it goes on to connect if user presses cancel :roll:

have you modified any configuration files ? maybe re-installing java6 may help.

on the good side, fullscreen exlusive mode is now supported on my fedora 4

r a f t

EgonOlsen

No, nothing has been modified. This is my girlfriend's machine with a brand new Java6 installation (i also tried to reinstall but it didn't help). I remember a similar problem that i had with a Java6 beta and webstart (webstart couldn't access the server to load the jars). The solution was to modify some Java-config file to use an old style...i don't know...something to do with network stuff. I can't remember exactly what it was... :(

EgonOlsen

Found the old thread with that problem, but it doesn't seem to be related to this one. The workaround for that problem (remove dnsns.jar from the lib/ext-dir) doesn't do any good here either.

raft

so, it does work on your own machine but not on your girlfriends' one. is it a windows xp ?

can u please try to login using the following link:
http://www.aptalkarga.com/jws/karga_window_logall.jnlp

it logs lots of data to console. i'm interested in the two lines that are printed just after clicking the login button, like below:

FINE : create rmi socket www.aptalkarga.com:9998 [Rmi.java, raft.karga.net.Rmi$ClientSocketFactory:createSocket 23] [AWT-EventQueue-0]
FINE : create rmi socket 72.9.254.10:9998 [Rmi.java, raft.karga.net.Rmi$ClientSocketFactory:createSocket 23] [AWT-EventQueue-0]


i really dont know what may cause this but wonder if same information is passed to my rmi socket factories

r a f t

EgonOlsen

I can't try it at my own machine ATM. I don't know, if it works there. Here's the debug:

01-Jan-07 21:54:46.125    FINE : pack fullScreen: false, maximized: false, windowSize: java.awt.Dimension[width=512,height=384], displayMode: 512x384 32 bits  60 hertz [Desktop.java, raft.karga.client.j:b 153] [javawsApplicationMain]
01-Jan-07 21:54:46.171    FINE : desktop resized: 512x384 [Desktop.java, raft.karga.client.j$2:componentResized 123] [AWT-EventQueue-0]
01-Jan-07 21:54:46.218    FINE : AvatarPanel.RenderPanel resized -119x-37 [AvatarPanel.java, raft.karga.client.q$_d$2:componentResized 512] [AWT-EventQueue-0]
01-Jan-07 21:54:46.250    FINE : AvatarPanel.RenderPanel resized 246x183 [AvatarPanel.java, raft.karga.client.q$_d$2:componentResized 512] [AWT-EventQueue-0]
01-Jan-07 21:54:46.281    FINE : created buffer 246x183 [AvatarPanel.java, raft.karga.client.q$_d:qf 613] [AWT-EventQueue-0]
01-Jan-07 21:54:57.265    FINE : AvatarPanel.RenderPanel resized 231x183 [AvatarPanel.java, raft.karga.client.q$_d$2:componentResized 512] [AWT-EventQueue-0]
01-Jan-07 21:54:57.375    FINE : created buffer 231x183 [AvatarPanel.java, raft.karga.client.q$_d:qf 613] [AWT-EventQueue-0]
01-Jan-07 21:55:28.281    FINE : create rmi socket www.aptalkarga.com:9998 [Rmi.java, raft.karga.net.Rmi$ClientSocketFactory:createSocket 23] [AWT-EventQueue-0]
Ignored exception: java.net.MalformedURLException: unknown protocol: socket
01-Jan-07 21:55:32.234 WARNING : java.rmi.ConnectIOException: Exception creating connection to: www.aptalkarga.com; nested exception is:
java.net.SocketException: Cant connect to SOCKS proxy:Connection refused: connect [LoginPanel.java, raft.karga.client.v$2:actionPerformed 124] [AWT-EventQueue-0]
java.rmi.ConnectIOException: Exception creating connection to: www.aptalkarga.com; nested exception is:
java.net.SocketException: Can't connect to SOCKS proxy:Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at raft.karga.client.e.g(Connector.java:142)
at raft.karga.client.e.b(Connector.java:64)
at raft.karga.client.v$2.actionPerformed(LoginPanel.java:101)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.net.SocketException: Can't connect to SOCKS proxy:Connection refused: connect
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at raft.karga.net.Rmi$RmiSocket.<init>(Rmi.java:76)
at raft.karga.net.Rmi$ClientSocketFactory.createSocket(Rmi.java:24)
... 33 more

raft

after some digging and hunting that seems to be a proxy related java bug but i'm not sure exactly what it is

if some of you has the same problem with java 6, can you please run the following application with both java 5 and 6 and post the result here or pm me. i hope this may clarify things

http://www.aptalkarga.com/jws/socks.jnlp

btw, it's a good thing that sun does not update get java page with initial release of every major version. i hope this connection issue will be solved till get java page is updated ;)

r a f t

EgonOlsen

As already known, girlfriend's machine says:

selector: com.sun.deploy.net.proxy.DeployProxySelector@1ea5671
----
1 proxies for socket://www.aptalkarga.com:9998
SOCKS: SOCKS @ /10.10.10.18:8080: class java.net.Proxy, address: /10.10.10.18:8080

EgonOlsen

BTW: The jnlp explicitly asks for Java6. Difficult to run it using Java5... :wink:

raft

oops :oops: i've corrected the jnlp file. so can u please run it with java 5 so we can compare the results ?

thx
r a f t

EgonOlsen

Did that...the Console says something about 1.5....so i assume that 1.5 is actually being used. However, the results are exactly the same.

Edit: Can't run karga with 1.5 on this machine. The exception is the same. But i did ran Karga on this machine some month ago with 1.5. I've no idea what's wrong here.... Maybe the problem comes from the fact that even when running it with 1.5, the javaws is the one from 1.6.

raft

all my ideas about java bug were depending on the fact that karga runs with java 5 but not with 6. if that's not the case then certainly there's a problem on that machine

as direct connection works on that machine you can workaround the problem by disabling proxy usage, that is: on web start configuration panel, in general tab, in network seettings dialog, select direct connection option

hope that will solve -at least workaround- the problem
r a f t

EgonOlsen

No, it is a Java6 problem...just not like we thought with Java6 itself but with the webstart client. It defaults to do it's network connection like the browser does. But the browser is set to "direct connection". The webstart client doesn't seem to get it and uses a manual proxy setting instead which is present in the browser but not enabled. Java5's webstart client seemed to be able to handle this correctly, because that inactive setting is present in the browser from the first day of operation of this machine. I used it for setting up the machine and disabled it right after that.

raft

i guess you're talking about that java5 web start 6 issue :
Quote from: "Egon"Maybe the problem comes from the fact that even when running it with 1.5, the javaws is the one from 1.6

you can force web start 5 from command line:
<java5 folder>/jre/bin/javaws.exe <jnlp file>

can u please run the test application again with java 5

EgonOlsen

Did that. Java5 webstart reads the browser setting correctly (i.e. direct connection) where the Java6 client uses the inactive proxy settings.

Edit: Should be easy to try this yourself. Just enter a proxy in the browser and don't use it but "direct connection". Set the Java network setting to "from browser" and see if it happens on your machine too.

raft

so the output of test program differs for web start 5 and 6. possibly java 5's output is something like, meaning direct connection:

selector: com.sun.deploy.net.proxy.DeployProxySelector@1592174
----
1 proxies for socket://www.aptalkarga.com:9998
DIRECT: DIRECT: class java.net.Proxy, address: null


if this is the case, we should submit a bug report to sun. i can do that but you have more information about the enviroment

my web start 6 uses correct settings from within both firefox 2.0 and internet explorer 7.0