Я реализовал библиотеку, которая включает в себя Hyperledger libindy SDK версии 1.15.0 и пытается использовать эту библиотеку на эмуляторе Android с поддержкой платформы x86.
Я получаю ошибку в своем коде, где Пул должен быть открыт, Pool.openPoolLedger (poolName, config.to Json ()). get ().
Я НЕ использую docker версию libindy
узлов, у меня есть построил indy-tutorial-sandbox
и запустил инди-узлы на моей машине.
Я использовал IP-значение в моем файле genesis. Возвращаемое значение из команды "make local" в indy-песочнице. Я использую Android Studio 3.5.3 с поддержкой эмулятора X86
Мне удалось initApi
для libindy
и createpoolconfig
, но когда я намеревался открыть пул, я получаю сообщение об ошибке.
Кроме того, я не смог найти места в эмуляторе, где каталоги кошелька и пула со связанными файлами .
Получается следующая ошибка:
W / System: ресурс не смог вызвать close. Ресурсу не удалось позвонить близко.
E/RelationshipsFragment: java.util.concurrent.ExecutionException: org.hyperledger.indy.sdk.ledger.TimeoutException: Timeout happens for ledger operation.
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.hyperledger.indy.sdk.ledger.TimeoutException: Timeout happens for ledger operation.
at gov.tubitak.did.mostar.api.MostarAPIProviderManager$1.initialize(MostarAPIProviderManager.java:27)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager$1.initialize(MostarAPIProviderManager.java:16)
at org.checkerframework.org.apache.commons.lang3.concurrent.AtomicSafeInitializer.get(AtomicSafeInitializer.java:77)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager.getCurrentMostarApi(MostarAPIProviderManager.java:37)
at gov.tubitak.did.nixar.app.android.ui.relationships.RelationshipsFragment$1.onClick(RelationshipsFragment.java:75)
at android.view.View.performClick(View.java:7125)
at android.view.View.performClickInternal(View.java:7102)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27336)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: gov.tubitak.did.mostar.api.MostarApiException: java.util.concurrent.ExecutionException: org.hyperledger.indy.sdk.ledger.TimeoutException: Timeout happens for ledger operation.
at gov.tubitak.did.mostarIndy.IndyMostarApi.initApiLibrary(IndyMostarApi.java:161)
at gov.tubitak.did.mostarIndy.IndyMostarApiProvider.create(IndyMostarApiProvider.java:21)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager$1.initialize(MostarAPIProviderManager.java:23)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager$1.initialize(MostarAPIProviderManager.java:16)
at org.checkerframework.org.apache.commons.lang3.concurrent.AtomicSafeInitializer.get(AtomicSafeInitializer.java:77)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager.getCurrentMostarApi(MostarAPIProviderManager.java:37)
at gov.tubitak.did.nixar.app.android.ui.relationships.RelationshipsFragment$1.onClick(RelationshipsFragment.java:75)
at android.view.View.performClick(View.java:7125)
at android.view.View.performClickInternal(View.java:7102)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27336)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: java.util.concurrent.ExecutionException: org.hyperledger.indy.sdk.ledger.TimeoutException: Timeout happens for ledger operation.
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:361)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1923)
at gov.tubitak.did.mostarIndy.IndyMostarApi.initApiLibrary(IndyMostarApi.java:138)
at gov.tubitak.did.mostarIndy.IndyMostarApiProvider.create(IndyMostarApiProvider.java:21)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager$1.initialize(MostarAPIProviderManager.java:23)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager$1.initialize(MostarAPIProviderManager.java:16)
at org.checkerframework.org.apache.commons.lang3.concurrent.AtomicSafeInitializer.get(AtomicSafeInitializer.java:77)
at gov.tubitak.did.mostar.api.MostarAPIProviderManager.getCurrentMostarApi(MostarAPIProviderManager.java:37)
at gov.tubitak.did.nixar.app.android.ui.relationships.RelationshipsFragment$1.onClick(RelationshipsFragment.java:75)
at android.view.View.performClick(View.java:7125)
at android.view.View.performClickInternal(View.java:7102)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27336)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: org.hyperledger.indy.sdk.ledger.TimeoutException: Timeout happens for ledger operation.
at org.hyperledger.indy.sdk.IndyJava$API.checkResult(IndyJava.java:92)
at org.hyperledger.indy.sdk.pool.Pool.access$100(Pool.java:20)
at org.hyperledger.indy.sdk.pool.Pool$1.callback(Pool.java:52)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:520)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:551)