SDKBOX iap problem

Hello,
I’ve been searching over google for more than 2 days but no luck,
here is a crash log i get.

JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NullPointerException: Attempt to invoke interface method ‘java.util.Collection java.util.Map.values()’ on a null object reference
runtime.cc:531] at java.util.List com.sdkbox.plugin.SDKBoxIABBillingClient.getSkuList(java.lang.String) (SDKBoxIABBillingClient.java:319)
08-27 17:18:17.147 4142-4162/com.gecekondu.kelime.avcisi A/zygote: runtime.cc:531] at void com.sdkbox.plugin.SDKBoxIABBillingClient.requestProducts() (SDKBoxIABBillingClient.java:147)
runtime.cc:531] at void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int) (Cocos2dxRenderer.java:-2)
runtime.cc:531] at void org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(javax.microedition.khronos.opengles.GL10, javax.microedition.khronos.egl.EGLConfig) (Cocos2dxRenderer.java:73)
runtime.cc:531] at void android.opengl.GLSurfaceView$GLThread.guardedRun() (GLSurfaceView.java:1539)
runtime.cc:531] at void android.opengl.GLSurfaceView$GLThread.run() (GLSurfaceView.java:1270)
runtime.cc:531]
runtime.cc:531] in call to FindClass
runtime.cc:531] from void org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(int, int)
runtime.cc:531] “GLThread 239” prio=5 tid=16 Runnable
runtime.cc:531] | group=“main” sCount=0 dsCount=0 flags=0 obj=0x15cc8a20 self=0x8c31ce00
runtime.cc:531] | sysTid=4162 nice=0 cgrp=default sched=0/0 handle=0x8aedd970
runtime.cc:531] | state=R schedstat=( 273593500 68481110 938 ) utm=12 stm=15 core=3 HZ=100
runtime.cc:531] | stack=0x8addb000-0x8addd000 stackSize=1038KB
runtime.cc:531] | held mutexes= “mutator lock”(shared held)
runtime.cc:531] native: #00 pc 0047eae1 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)+209)
runtime.cc:531] native: #01 pc 0057c193 /system/lib/libart.so (art::thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits>&, bool, BacktraceMap*, bool) const+355)
runtime.cc:531] native: #02 pc 00577693 /system/lib/libart.so (art::thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits>&, bool, BacktraceMap*, bool) const+83)
runtime.cc:531] native: #03 pc 00395256 /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1254)
runtime.cc:531] native: #04 pc 003956c1 /system/lib/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, char*)+113)
runtime.cc:531] native: #05 pc 0014f207 /system/lib/libart.so (art::ScopedCheck::AbortF(char const*, …)+71)
runtime.cc:531] native: #06 pc 0014ed19 /system/lib/libart.so (art::ScopedCheck::CheckThread(_JNIEnv*)+457)
runtime.cc:531] native: #07 pc 0014dc2c /system/lib/libart.so (art::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::JniValueType)+140)
runtime.cc:531] native: #08 pc 0014cf85 /system/lib/libart.so (art::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::JniValueType*)+853)
runtime.cc:531] native: #09 pc 00132077 /system/lib/libart.so (art::CheckJNI::FindClass(_JNIEnv*, char const*)+903)
runtime.cc:531] native: #10 pc 0047ebd2 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (sdkbox::JNIUtils::GetClassObjectFromName(char const*, _JNIEnv*)+50)
runtime.cc:531] native: #11 pc 0047f152 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (sdkbox::JNIUtils::GetJNIStaticMethodInfo(char const*, char const*, char const*, _JNIEnv*)+50)
runtime.cc:531] native: #12 pc 0047a879 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (ZN6sdkbox15JNIInvokeStaticINSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEJEEET_PKcSA_DpT0+89)
runtime.cc:531] native: #13 pc 0047aa60 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (sdkbox::SdkboxCore::getChannel() const+48)
runtime.cc:531] native: #14 pc 0044fc40 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (sdkbox::ConfigManager::getConfig(char const*) const+512)
runtime.cc:531] native: #15 pc 0045842a /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (sdkbox::SdkboxCore::getConfig(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator> const&) const+58)
runtime.cc:531] native: #16 pc 00418b60 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (sdkbox::IAPWrapperEnabled::init(char const*)+288)
runtime.cc:531] native: #17 pc 0041fd73 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (sdkbox::IAP::init(char const*)+35)
runtime.cc:531] native: #18 pc 003d108b /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (ThirdPartyManager::init()+123)
runtime.cc:531] native: #19 pc 0033e2ea /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (AppDelegate::applicationDidFinishLaunching()+4090)
runtime.cc:531] native: #20 pc 0048179c /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (cocos2d::Application::run()+44)
runtime.cc:531] native: #21 pc 0048f69f /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/lib/x86/libMyGame.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit+367)
runtime.cc:531] native: #22 pc 00003502 /data/app/com.gecekondu.kelime.avcisi-TvSlxqu3AstDYBC-5HtIBA==/oat/x86/base.odex (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit__II+162)
runtime.cc:531] at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native method)
runtime.cc:531] at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:73)
runtime.cc:531] at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1539)
runtime.cc:531] at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)

when i try to init iap it fails with this log.
iap version: 2.4.0.3
cocos version: 3.15.1 (i also get the same error with 3.17)
i compile code with c++_static and NDK_TOOLCHAIN_VERSION is clang.

PluginIAP.jar.zip (19.5 KB)

plz try 2.4.1.0 version.

i get the same crash again.

also i tried updating sdkbox with sdkbox update --staging and update files but i get the error.
#FATAL: list indices must be integers, not unicode

ok i started a project from scratch and use --staging with sdkbox imports and problem solved.
2.4.0.1 looks working for now. thanks for replies. By the way i upgrade the cocos version to 3.17.

when you got this error, you can add -vv to get the full message log.

we have fixed another restore issue, you can try with:

sdkbox update --staging --forcedownload --forcecopy

Thanks for your patience.

i have the same error in this version but the occurences are rare. here is a crash log, maybe it helps. cheers.crash_log.zip (4.2 KB)

fixed this issue on staging server.
plz try

sdkbox update --staging --forcedownload --forcecopy

Thanks for your testing.

I am using PluginIAP 2.4.1.0 Version, but I am getting the same error. Is there any other solution?

can you show your crash log? crash when lanuch? crash every time?

@rnjstndnd