Closed sina-masoud-ansari closed 12 years ago
Sina, can you please check if behaviour is more reasonable now? Also related to #66 and #68
alright... attempt number 2. Can you try again?
This looks good now, clean exit. May be good to have a message "Could not connect to server, please check your network connection" or some such.
Hm, how do we do that? Do we know where the exception is thrown/catched now? If, it should be easy enough to make error message prettier.
@yuriyh, can you add the message? I don't know where...
Closing this, error message that is displayed seems detailed enough.
Got this when I wasn't connected to the internet...
smas036-1:target EC\smas036$ java -jar gricli-binary.jar java.net.UnknownHostException: myproxy.arcs.org.au at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201) at java.net.InetAddress.getAllByName0(InetAddress.java:1154) at java.net.InetAddress.getAllByName(InetAddress.java:1084) at java.net.InetAddress.getAllByName(InetAddress.java:1020) at java.net.InetAddress.getByName(InetAddress.java:970) at grisu.frontend.control.login.LoginHelpers.gssCredentialLogin(LoginHelpers.java:206) at grisu.frontend.control.login.LoginHelpers.defaultLocalProxyLogin(LoginHelpers.java:72) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:368) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:481) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:499) at grisu.frontend.control.login.LoginManager.loginCommandline(LoginManager.java:595) at grisu.gricli.command.InteractiveLoginCommand.execute(InteractiveLoginCommand.java:29) at grisu.gricli.Gricli.main(Gricli.java:125) java.net.UnknownHostException: myproxy.arcs.org.au at java.net.InetAddress.getAllByName0(InetAddress.java:1158) at java.net.InetAddress.getAllByName(InetAddress.java:1084) at java.net.InetAddress.getAllByName(InetAddress.java:1020) at java.net.InetAddress.getByName(InetAddress.java:970) at grith.jgrith.Environment.getDefaultMyProxy(Environment.java:35) at grith.jgrith.myProxy.MyProxy_light.getMyProxy(MyProxy_light.java:135) at grith.jgrith.control.DirectMyProxyUpload.init(DirectMyProxyUpload.java:251) at grith.jgrith.control.DirectMyProxyUpload.init(DirectMyProxyUpload.java:166) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at grisu.frontend.control.login.LoginHelpers.gssCredentialLogin(LoginHelpers.java:217) at grisu.frontend.control.login.LoginHelpers.defaultLocalProxyLogin(LoginHelpers.java:72) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:368) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:481) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:499) at grisu.frontend.control.login.LoginManager.loginCommandline(LoginManager.java:595) at grisu.gricli.command.InteractiveLoginCommand.execute(InteractiveLoginCommand.java:29) at grisu.gricli.Gricli.main(Gricli.java:125) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at grisu.frontend.control.login.LoginHelpers.gssCredentialLogin(LoginHelpers.java:217) at grisu.frontend.control.login.LoginHelpers.defaultLocalProxyLogin(LoginHelpers.java:72) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:368) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:481) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:499) at grisu.frontend.control.login.LoginManager.loginCommandline(LoginManager.java:595) at grisu.gricli.command.InteractiveLoginCommand.execute(InteractiveLoginCommand.java:29) at grisu.gricli.Gricli.main(Gricli.java:125) Caused by: java.lang.RuntimeException: Could not upload proxy credential to the MyProxy server: MyProxy put failed. [Caused by: myproxy.arcs.org.au] at grith.jgrith.control.DirectMyProxyUpload.init(DirectMyProxyUpload.java:256) at grith.jgrith.control.DirectMyProxyUpload.init(DirectMyProxyUpload.java:166) ... 12 more Exception in thread "main" grisu.gricli.GricliRuntimeException: grisu.frontend.control.login.LoginException: Could not login: Could not create & upload proxy to the myproxy server. Probably because of a wrong private key passphrase or network problems. at grisu.gricli.command.InteractiveLoginCommand.execute(InteractiveLoginCommand.java:46) at grisu.gricli.Gricli.main(Gricli.java:125) Caused by: grisu.frontend.control.login.LoginException: Could not login: Could not create & upload proxy to the myproxy server. Probably because of a wrong private key passphrase or network problems. at grisu.frontend.control.login.LoginManager.login(LoginManager.java:373) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:481) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:499) at grisu.frontend.control.login.LoginManager.loginCommandline(LoginManager.java:595) at grisu.gricli.command.InteractiveLoginCommand.execute(InteractiveLoginCommand.java:29) ... 1 more Caused by: grisu.frontend.control.login.LoginException: Could not create & upload proxy to the myproxy server. Probably because of a wrong private key passphrase or network problems. at grisu.frontend.control.login.LoginHelpers.gssCredentialLogin(LoginHelpers.java:237) at grisu.frontend.control.login.LoginHelpers.defaultLocalProxyLogin(LoginHelpers.java:72) at grisu.frontend.control.login.LoginManager.login(LoginManager.java:368) ... 5 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at grisu.frontend.control.login.LoginHelpers.gssCredentialLogin(LoginHelpers.java:217) ... 7 more Caused by: java.lang.RuntimeException: Could not upload proxy credential to the MyProxy server: MyProxy put failed. [Caused by: myproxy.arcs.org.au] at grith.jgrith.control.DirectMyProxyUpload.init(DirectMyProxyUpload.java:256) at grith.jgrith.control.DirectMyProxyUpload.init(DirectMyProxyUpload.java:166) ... 12 more smas036-1:target EC\smas036$