[Nfd-dev] NFD-Android not working properly

Anthony Dowling dowlinah at clarkson.edu
Thu Jun 22 13:20:13 PDT 2017


Peter and everyone,

I still haven't been able to build the app from source, however, after much
research, I believe has to do with using the SunEC crypto provider used by
the program being incompatible with android systems.

Also, sorry, I sent this to the ndnSIM list on accident.

Thanks,
Anthony

On Thu, Jun 22, 2017 at 4:16 PM, Anthony Dowling <dowlinah at clarkson.edu>
wrote:

> Peter and everyone,
>
> I still haven't been able to build the app from source, however, after
> much research, I believe has to do with using the SunEC crypto provider
> used by the program being incompatible with android systems.
>
> Thanks,
> Anthony
>
> On Mon, Jun 19, 2017 at 4:30 PM, Gusev, Peter <peter at remap.ucla.edu>
> wrote:
>
>> I used Vagrant VM, but I got the same exact error message as Anthony when
>> trying to build it:
>>
>>  ./gradlew assembleRelease
>> Downloading https://services.gradle.org/distributions/gradle-2.10-bin.zip
>>
>> Exception in thread "main" javax.net.ssl.SSLException:
>> java.security.ProviderException: java.security.InvalidKeyException: EC
>> parameters error
>> at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1914)
>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1872)
>> at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl
>> .java:1855)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1376)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1353)
>> at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsCli
>> ent.java:559)
>> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnectio
>> n.connect(AbstractDelegateHttpsURLConnection.java:185)
>> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(H
>> ttpURLConnection.java:1348)
>> at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputSt
>> ream(HttpsURLConnectionImpl.java:254)
>> at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
>> at org.gradle.wrapper.Download.download(Download.java:44)
>> at org.gradle.wrapper.Install$1.call(Install.java:61)
>> at org.gradle.wrapper.Install$1.call(Install.java:48)
>> at org.gradle.wrapper.ExclusiveFileAccessManager.access(Exclusi
>> veFileAccessManager.java:65)
>> at org.gradle.wrapper.Install.createDist(Install.java:48)
>> at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
>> at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
>> Caused by: java.security.ProviderException:
>> java.security.InvalidKeyException: EC parameters error
>> at sun.security.pkcs11.P11Key$P11ECPublicKey.getEncodedInternal
>> (P11Key.java:1024)
>> at sun.security.pkcs11.P11Key.equals(P11Key.java:158)
>> at java.util.ArrayList.indexOf(ArrayList.java:298)
>> at java.util.ArrayList.contains(ArrayList.java:281)
>> at sun.security.validator.PKIXValidator.engineValidate(PKIXVali
>> dator.java:239)
>> at sun.security.validator.Validator.validate(Validator.java:260)
>> at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustMana
>> gerImpl.java:326)
>> at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509Trust
>> ManagerImpl.java:231)
>> at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X50
>> 9TrustManagerImpl.java:126)
>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
>> ndshaker.java:1459)
>> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands
>> haker.java:213)
>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:961)
>> at sun.security.ssl.Handshaker.process_record(Handshaker.java:897)
>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1033)
>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
>> cketImpl.java:1342)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1369)
>> ... 13 more
>> Caused by: java.security.InvalidKeyException: EC parameters error
>> at sun.security.ec.ECParameters.getAlgorithmParameters(ECParame
>> ters.java:284)
>> at sun.security.ec.ECPublicKeyImpl.<init>(ECPublicKeyImpl.java:59)
>> at sun.security.pkcs11.P11Key$P11ECPublicKey.getEncodedInternal
>> (P11Key.java:1021)
>> ... 28 more
>> Caused by: java.security.NoSuchProviderException: no such provider: SunEC
>> at sun.security.jca.GetInstance.getService(GetInstance.java:83)
>> at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)
>> at java.security.Security.getImpl(Security.java:697)
>> at java.security.AlgorithmParameters.getInstance(AlgorithmParam
>> eters.java:199)
>> at sun.security.ec.ECParameters.getAlgorithmParameters(ECParame
>> ters.java:279)
>> ... 30 more
>>
>> Anthony, did you fix it?
>>
>> Thanks,
>>
>> --
>> Peter Gusev
>>
>> peter at remap.ucla.edu
>> +1 213 5872748 <(213)%20587-2748>
>> peetonn_ (skype)
>>
>> Software Engineer/Programmer Analyst @ REMAP UCLA
>>
>> Video streaming/ICN networks/Creative Development
>>
>> On Jun 16, 2017, at 3:28 PM, Chaim Rieger <chaim.rieger at gmail.com> wrote:
>>
>> I compiled it manually and it seems to work. What's the error or issue?
>>
>> On Jun 15, 2017 9:07 AM, "Anthony Dowling" <dowlinah at clarkson.edu> wrote:
>>
>>> Hello All,
>>>
>>> I have recently begun working with NFD on Android systems for a research
>>> project on mobile networks using ndn, so I tried downloading the app from
>>> the google play store for NFD. However, it won't start the NFD. I am using
>>> android 6.1 on a moto g4 play. How could I go about getting NFD to work
>>> properly?
>>>
>>> Thanks,
>>> Anthony Dowling
>>>
>>> _______________________________________________
>>> Nfd-dev mailing list
>>> Nfd-dev at lists.cs.ucla.edu
>>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>>>
>>> _______________________________________________
>> Nfd-dev mailing list
>> Nfd-dev at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170622/4afb93c7/attachment-0001.html>


More information about the Nfd-dev mailing list