Author Topic: aptal karga (foolish crow)  (Read 71898 times)

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
aptal karga (foolish crow)
« Reply #60 on: January 01, 2007, 07:28:06 pm »
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

Code: [Select]
r a f t

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #61 on: January 01, 2007, 07:40:03 pm »
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... :(

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #62 on: January 01, 2007, 07:45:56 pm »
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.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
aptal karga (foolish crow)
« Reply #63 on: January 01, 2007, 08:36:24 pm »
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:

Code: [Select]
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

Code: [Select]
r a f t

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #64 on: January 01, 2007, 10:02:22 pm »
I can't try it at my own machine ATM. I don't know, if it works there. Here's the debug:

Code: [Select]
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

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
aptal karga (foolish crow)
« Reply #65 on: January 12, 2007, 11:29:53 pm »
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 ;)

Code: [Select]
r a f t

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #66 on: January 13, 2007, 09:28:39 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #67 on: January 14, 2007, 01:07:19 pm »
BTW: The jnlp explicitly asks for Java6. Difficult to run it using Java5... :wink:

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
aptal karga (foolish crow)
« Reply #68 on: January 14, 2007, 05:26:54 pm »
oops :oops: i've corrected the jnlp file. so can u please run it with java 5 so we can compare the results ?

thx
Code: [Select]
r a f t

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #69 on: January 14, 2007, 06:03:47 pm »
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.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
aptal karga (foolish crow)
« Reply #70 on: January 14, 2007, 06:38:36 pm »
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
Code: [Select]
r a f t

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #71 on: January 14, 2007, 07:12:08 pm »
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.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
aptal karga (foolish crow)
« Reply #72 on: January 14, 2007, 07:38:22 pm »
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:
Code: [Select]
<java5 folder>/jre/bin/javaws.exe <jnlp file>

can u please run the test application again with java 5

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
aptal karga (foolish crow)
« Reply #73 on: January 14, 2007, 07:50:00 pm »
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.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
aptal karga (foolish crow)
« Reply #74 on: January 14, 2007, 08:06:59 pm »
so the output of test program differs for web start 5 and 6. possibly java 5's output is something like, meaning direct connection:

Code: [Select]
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