Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1715] Titanium Studio launch login failed

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2015-09-30T05:40:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsmacos, titanium
Reporterchanakya
AssigneeShak Hossain
Created2015-07-27T06:36:35.000+0000
Updated2016-03-08T07:38:12.000+0000

Description

I haven't set anything in proxy options for login. But Login failed when launch of Titanium Studio. Previously I logged without fail when launch of Titanium studio. *Expected Result:* Titanium Studio should be launch. *Actual Result:* Unable to launch titanium studio. *Titanium Studio Log:* Last login: Sat Jul 25 03:07:41 on ttys000 Swati-MacBook-Pro:~ srinivas$ /Applications/Titanium\ Studio/TitaniumStudio.app/Contents/MacOS/TitaniumStudio ; exit; !SESSION 2015-07-25 03:11:26.464 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_65 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US Framework arguments: -keyring /Users/srinivas/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/srinivas/.eclipse_keyring -consoleLog -showlocation !ENTRY org.eclipse.core.resources 2 10035 2015-07-25 03:11:34.466 !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. !ENTRY org.eclipse.core.net 1 0 2015-07-25 03:11:34.929 !MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences org.eclipse.core.runtime.CoreException: java.lang.RuntimeException: Could not generate DH keypair at com.appcelerator.titanium.core.user.TitaniumUserManager.signIn(TitaniumUserManager.java:224) at com.appcelerator.titanium.rcp.handlers.TitaniumSplashHandler$12.run(TitaniumSplashHandler.java:780) Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1747) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1708) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1691) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1222) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:476) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1031) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) at com.appcelerator.titanium.core.user.TitaniumUserManager.createOutputStream(TitaniumUserManager.java:253) at com.appcelerator.titanium.core.user.TitaniumUserManager.signIn(TitaniumUserManager.java:166) ... 1 more Caused by: java.lang.RuntimeException: Could not generate DH keypair at com.sun.net.ssl.internal.ssl.DHCrypt.(DHCrypt.java:114) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:559) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:186) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:943) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215) ... 8 more Caused by: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive) at com.sun.crypto.provider.DHKeyPairGenerator.initialize(DashoA13*..) at java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:627) at com.sun.net.ssl.internal.ssl.DHCrypt.(DHCrypt.java:107) ... 15 more

Attachments

FileDateSize
LoginFailed.png2015-07-27T06:32:26.000+0000232344
loginmy.png2015-07-27T06:32:16.000+0000145011

Comments

  1. roel 2015-07-31

    Did you find a solution to this?
  2. Radamantis Torres-Lechuga 2015-08-01

    [~chanakya], [~roel] please use Appcelerator Studio
  3. chanakya 2015-08-04

    Added and updated required files in mac and windows(in java_1.6). Now it is working fine for me in both mac and windows. *Steps:* 1.Download bouncy castle jar here: http://www.bouncycastle.org/download/bcprov-jdk15on-152.jar 2.Copy jar file to: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/ 3.Edit: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/java.security 4.Add the following line where other security providers are defined: security.provider.11=org.bouncycastle.jce.provider.BouncyCastleProvider 5.Restart Titanium Studio 6.Login 7.Success
  4. roel 2015-08-04

    Just perfect. How did you come up with this. Thank you, especially after many useless answers.

JSON Source