Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL method in Android 2.2 #33

Open
adre310 opened this issue May 13, 2013 · 2 comments
Open

SSL method in Android 2.2 #33

adre310 opened this issue May 13, 2013 · 2 comments

Comments

@adre310
Copy link

adre310 commented May 13, 2013

In NetworkConnectionImpl

SSLContext sc = SSLContext.getInstance("SSL");
but in android 2.2 (API 8) - i have exception SSLMethodUnknown
more valid

SSLContext sc = SSLContext.getInstance("TLS");

@foxykeep
Copy link
Owner

So ... I tried on my 2.2 device and on a 2.2 emulator and I don't have any issue with it.

Is it on a specific device ?

@adre310
Copy link
Author

adre310 commented May 29, 2013

On 29.05.2013 9:52, Foxykeep wrote:

So ... I tried on my 2.2 device and on a 2.2 emulator and I don't have
any issue with it.

Is it on a specific device ?


Reply to this email directly or view it on GitHub
#33 (comment).

if line 293 to in NetworkConnectionImpl.java
SSLContext sc = SSLContext.getInstance("SSL");

i have exception

LogCat
05-29 11:44:24.252 289-317/iae.home.money2011.v2
E/NetworkConnectionImpl: NoSuchAlgorithmException
java.security.NoSuchAlgorithmException: SSLContext SSL
implementation not found
at
org.apache.harmony.security.fortress.Engine.getInstance(Engine.java:105)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:58)
at
com.foxykeep.datadroid.internal.network.NetworkConnectionImpl.getAllHostsValidSocketFactory(NetworkConnectionImpl.java:293)
at
com.foxykeep.datadroid.internal.network.NetworkConnectionImpl.execute(NetworkConnectionImpl.java:188)
at
com.foxykeep.datadroid.network.NetworkConnection.execute(NetworkConnection.java:221)
at
iae.home.money2011.v2.sync.adapter.SyncAdapter.onPerformSync(SyncAdapter.java:62)
at
android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:163)
05-29 11:44:24.252 289-317/iae.home.money2011.v2 E/SyncAdapter:
onPerformSync
com.foxykeep.datadroid.exception.ConnectionException:
java.security.NoSuchAlgorithmException: SSLContext SSL implementation
not found
at
com.foxykeep.datadroid.internal.network.NetworkConnectionImpl.execute(NetworkConnectionImpl.java:262)
at
com.foxykeep.datadroid.network.NetworkConnection.execute(NetworkConnection.java:221)
at
iae.home.money2011.v2.sync.adapter.SyncAdapter.onPerformSync(SyncAdapter.java:62)
at
android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:163)
Caused by: java.security.NoSuchAlgorithmException: SSLContext
SSL implementation not found
at
org.apache.harmony.security.fortress.Engine.getInstance(Engine.java:105)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:58)
at
com.foxykeep.datadroid.internal.network.NetworkConnectionImpl.getAllHostsValidSocketFactory(NetworkConnectionImpl.java:293)
at
com.foxykeep.datadroid.internal.network.NetworkConnectionImpl.execute(NetworkConnectionImpl.java:188)

... 3 more

but if this line is
SSLContext sc = SSLContext.getInstance("TLS");

run fine.

device google sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants