Статус: Активный участник
Группы: Участники
Зарегистрирован: 10.10.2013(UTC) Сообщений: 93 Откуда: Москва
|
Добрый день. Столкнулся с такой же проблемой в последней версии CSP. C версией 2.0.37254 все работает, но понадобилось подключить Рутокен ЭЦП БТ. Загрузил новую версию и приложение стало падать на строке: byte[] sign = signature.sign(); CSPConfig.registerActivityContext в методе OnResume выполняется, окно запроса пароля до падения не появляется (в старой версии появлялось). Контейнер создан недавно. Вот кусок лога перед падением:
06-26 14:29:09.184: E/cprocsp(24384): 14:29:09.198584 support_an_fopen:87 p:24384 t:0x0x401161e9 support_an_fopen("/data/data/ru.stroytorgi.sttr/cprocsp/users/10198.10198/policies.ini", "rb") = 0x0x0 fail No such file or directory(2) 06-26 14:29:09.184: I/cprocsp(24384): libssp: rdr_passwd_default_malloc (...) 06-26 14:29:09.184: I/cprocsp(24384): libssp: rdr_passwd_length (...) 06-26 14:29:09.184: I/cprocsp(24384): libssp: rdr_passwd_default_get (...) 06-26 14:29:09.194: E/cprocsp(24384): 14:29:09.200413 support_an_fopen:87 p:24384 t:0x0x401161e9 support_an_fopen("/data/data/ru.stroytorgi.sttr/cprocsp/users/10198.10198/policies.ini", "rb") = 0x0x0 fail No such file or directory(2) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_passwd_default_malloc (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_lock (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun:2301 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun: 2301, code: 1004 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_unlock (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun:2302 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun: 2302, code: 1004 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_passwd_length (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_passwd_term (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_passwd_length (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_passwd_term (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_passwd_length (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_logout (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun:5302 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun: 5302, code: 1004 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_unlock (...) 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun:2302 06-26 14:29:09.194: I/cprocsp(24384): libssp: rdr_restore_call (...), fun: 2302, code: 1004 06-26 14:29:09.194: E/cprocsp(24384): cpcsp: CreateUserCryptObject key_carrier_get_material_with_public fail 06-26 14:29:09.194: I/cprocsp(24384): cpcsp: DWORD CPCSignHash(HCRYPTMODULE, HCRYPTPROV, HCRYPTHASH, DWORD, LPCWSTR, DWORD, BYTE*, DWORD*) (hProv=-769589060, hHash=0xbab6807a, dwKeySpec=1, dwFlags=0x0). Result=0, Err=0x80090020. 06-26 14:29:09.194: W/dalvikvm(24384): JNI WARNING: JNI function SetIntArrayRegion called with exception pending 06-26 14:29:09.204: W/dalvikvm(24384): in Lru/CryptoPro/JCSP/MSCAPI/CAPI;.cryptSignHash:(JILjava/lang/String;I[B[I)I (SetIntArrayRegion) 06-26 14:29:09.204: W/dalvikvm(24384): Pending exception is: 06-26 14:29:09.204: I/dalvikvm(24384): java.lang.NoSuchMethodError: no method with name='<init>' signature='(IILjava/lang/String;)V' in class Lru/CryptoPro/JCSP/tools/common/window/CSPPin; 06-26 14:29:09.204: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.CAPI.cryptSignHash(Native Method) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.j.a((null):-1) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.i.b((null):-1) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.b.a((null):-1) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.CryptoPro.JCSP.Key.AbstractKeySpec.signature((null):-1) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.CryptoPro.JCSP.Sign.CryptoProSign.engineSign((null):-1) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.CryptoPro.JCSP.Sign.JCSPGostElSign.engineSign((null):-1) 06-26 14:29:09.204: I/dalvikvm(24384): at java.security.Signature.sign(Signature.java:318) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.stroytorgi.sttr.crypto.CPSigner.create(CPSigner.java:249) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.stroytorgi.sttr.crypto.CPSigner.signDetach(CPSigner.java:119) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.stroytorgi.sttr.MainActivity.signDetach(MainActivity.java:809) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.stroytorgi.sttr.proc.Test.go(Test.java:98) 06-26 14:29:09.204: I/dalvikvm(24384): at ru.stroytorgi.sttr.WebActivity$JavaScriptHandler$2.run(WebActivity.java:239) 06-26 14:29:09.204: I/dalvikvm(24384): at android.os.Handler.handleCallback(Handler.java:733) 06-26 14:29:09.204: I/dalvikvm(24384): at android.os.Handler.dispatchMessage(Handler.java:95) 06-26 14:29:09.204: I/dalvikvm(24384): at android.os.Looper.loop(Looper.java:157) 06-26 14:29:09.204: I/dalvikvm(24384): at android.app.ActivityThread.main(ActivityThread.java:5350) 06-26 14:29:09.204: I/dalvikvm(24384): at java.lang.reflect.Method.invokeNative(Native Method) 06-26 14:29:09.204: I/dalvikvm(24384): at java.lang.reflect.Method.invoke(Method.java:515) 06-26 14:29:09.204: I/dalvikvm(24384): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) 06-26 14:29:09.204: I/dalvikvm(24384): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) 06-26 14:29:09.204: I/dalvikvm(24384): at dalvik.system.NativeStart.main(Native Method) 06-26 14:29:09.204: I/dalvikvm(24384): "main" prio=5 tid=1 NATIVE 06-26 14:29:09.204: I/dalvikvm(24384): | group="main" sCount=0 dsCount=0 obj=0x419e8ea0 self=0x419d72b0 06-26 14:29:09.204: I/dalvikvm(24384): | sysTid=24384 nice=0 sched=0/0 cgrp=apps handle=1074704724 06-26 14:29:09.204: I/dalvikvm(24384): | state=R schedstat=( 2333235846 728336191 5697 ) utm=174 stm=59 core=0 06-26 14:29:09.224: I/dalvikvm(24384): #00 pc 0000132e /system/lib/libcorkscrew.so (unwind_backtrace_thread+29) 06-26 14:29:09.224: I/dalvikvm(24384): #01 pc 00063f46 /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+33) 06-26 14:29:09.224: I/dalvikvm(24384): #02 pc 00057f20 /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+395) 06-26 14:29:09.224: I/dalvikvm(24384): #03 pc 00057f8e /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25) 06-26 14:29:09.224: I/dalvikvm(24384): #04 pc 0003befc /system/lib/libdvm.so 06-26 14:29:09.224: I/dalvikvm(24384): #05 pc 0003dfb8 /system/lib/libdvm.so 06-26 14:29:09.224: I/dalvikvm(24384): #06 pc 00261d04 /data/app-lib/ru.cprocsp.ACSP-1/libcspjni.so (Java_ru_CryptoPro_JCSP_MSCAPI_CAPI_cryptSignHash+340) 06-26 14:29:09.224: I/dalvikvm(24384): #07 pc 00020bcc /system/lib/libdvm.so (dvmPlatformInvoke+112) 06-26 14:29:09.224: I/dalvikvm(24384): #08 pc 00051926 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+397) 06-26 14:29:09.224: I/dalvikvm(24384): #09 pc 000535ce /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+253) 06-26 14:29:09.224: I/dalvikvm(24384): #10 pc 0002a060 /system/lib/libdvm.so 06-26 14:29:09.224: I/dalvikvm(24384): #11 pc 00031510 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76) 06-26 14:29:09.224: I/dalvikvm(24384): #12 pc 0002eba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) 06-26 14:29:09.224: I/dalvikvm(24384): #13 pc 00064158 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+391) 06-26 14:29:09.224: I/dalvikvm(24384): #14 pc 0006c0da /system/lib/libdvm.so 06-26 14:29:09.224: I/dalvikvm(24384): #15 pc 0002a060 /system/lib/libdvm.so 06-26 14:29:09.224: I/dalvikvm(24384): #16 pc 00031510 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76) 06-26 14:29:09.224: I/dalvikvm(24384): #17 pc 0002eba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) 06-26 14:29:09.224: I/dalvikvm(24384): #18 pc 00063e74 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+335) 06-26 14:29:09.224: I/dalvikvm(24384): #19 pc 0004d456 /system/lib/libdvm.so 06-26 14:29:09.224: I/dalvikvm(24384): #20 pc 00051904 /system/lib/libandroid_runtime.so 06-26 14:29:09.224: I/dalvikvm(24384): #21 pc 00052e9a /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+353) 06-26 14:29:09.224: I/dalvikvm(24384): #22 pc 0000105a /system/bin/app_process 06-26 14:29:09.224: I/dalvikvm(24384): #23 pc 0000e510 /system/lib/libc.so (__libc_init+47) 06-26 14:29:09.224: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.CAPI.cryptSignHash(Native Method) 06-26 14:29:09.224: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.j.a((null):-1) 06-26 14:29:09.224: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.i.b((null):-1) 06-26 14:29:09.224: I/dalvikvm(24384): at ru.CryptoPro.JCSP.MSCAPI.b.a((null):-1) 06-26 14:29:09.224: I/dalvikvm(24384): at ru.CryptoPro.JCSP.Key.AbstractKeySpec.signature((null):-1) 06-26 14:29:09.224: I/dalvikvm(24384): at ru.CryptoPro.JCSP.Sign.CryptoProSign.engineSign((null):-1) 06-26 14:29:09.234: I/dalvikvm(24384): at ru.CryptoPro.JCSP.Sign.JCSPGostElSign.engineSign((null):-1) 06-26 14:29:09.234: I/dalvikvm(24384): at java.security.Signature.sign(Signature.java:318) 06-26 14:29:09.234: I/dalvikvm(24384): at ru.stroytorgi.sttr.crypto.CPSigner.create(CPSigner.java:249) 06-26 14:29:09.234: I/dalvikvm(24384): at ru.stroytorgi.sttr.crypto.CPSigner.signDetach(CPSigner.java:119) 06-26 14:29:09.234: I/dalvikvm(24384): at ru.stroytorgi.sttr.MainActivity.signDetach(MainActivity.java:809) 06-26 14:29:09.234: I/dalvikvm(24384): at ru.stroytorgi.sttr.proc.Test.go(Test.java:98) 06-26 14:29:09.234: I/dalvikvm(24384): at ru.stroytorgi.sttr.WebActivity$JavaScriptHandler$2.run(WebActivity.java:239) 06-26 14:29:09.234: I/dalvikvm(24384): at android.os.Handler.handleCallback(Handler.java:733) 06-26 14:29:09.234: I/dalvikvm(24384): at android.os.Handler.dispatchMessage(Handler.java:95) 06-26 14:29:09.234: I/dalvikvm(24384): at android.os.Looper.loop(Looper.java:157) 06-26 14:29:09.234: I/dalvikvm(24384): at android.app.ActivityThread.main(ActivityThread.java:5350) 06-26 14:29:09.234: I/dalvikvm(24384): at java.lang.reflect.Method.invokeNative(Native Method) 06-26 14:29:09.234: I/dalvikvm(24384): at java.lang.reflect.Method.invoke(Method.java:515) 06-26 14:29:09.234: I/dalvikvm(24384): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) 06-26 14:29:09.234: I/dalvikvm(24384): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) 06-26 14:29:09.234: I/dalvikvm(24384): at dalvik.system.NativeStart.main(Native Method) 06-26 14:29:09.234: E/dalvikvm(24384): VM aborting
|