ডিবাগ নিবন্ধন ত্রুটি
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Tink কখনও কখনও যেমন ত্রুটি বার্তা উত্পাদন করে
-
No wrapper registered for type
-
No manager for type T has been registered
-
Unable to get primitive interface P for key of type T
এই পৃষ্ঠাটি এই ধরনের সমস্যাগুলি ডিবাগ করতে সাহায্য করে৷
কেস 1: "কোন মোড়ক খুঁজে পাওয়া যায়নি" বা অনুরূপ ত্রুটির তারকা।
আপনি GetPrimitive()
কল করছেন একটি আদিম টাইপ পেতে যা নিবন্ধিত হয়নি, যা সাধারণত TinkConfig.register()
বাইনারিতে কোথাও কল করে ঠিক করা হয়। একবার নিবন্ধন করা যথেষ্ট এবং স্টার্টআপে করা যেতে পারে।
কিছু আদিমদের আরও বিশেষ নিবন্ধন প্রয়োজন।
-
KeysetDeriver
এর প্রয়োজন KeyDerivationConfig.register()
-
JwtMac
এর JwtMacConfig.register()
প্রয়োজন -
JwtPublicKeySign
এবং JwtPublicKeyVerify
প্রয়োজন JwtSignatureConfig.register()
কেস 2: ত্রুটি একটি মূল প্রকার এবং একটি আদিম তালিকাভুক্ত করে৷
উদাহরণস্বরূপ, ত্রুটি বলতে পারে P এবং T-এর কিছু নির্দিষ্ট মানের জন্য Unable to get primitive interface P for key of type T
এই ক্ষেত্রে, Tink আপনার কাছে থাকা কীসেটের জন্য আপনি যে নির্দিষ্ট আদিম জিজ্ঞাসা করেছেন তা তৈরি করতে অক্ষম। সাধারণত, এটি ঘটে কারণ আপনার কাছে ভুল টাইপের জন্য একটি কীসেট আছে। উদাহরণস্বরূপ, আপনি একটি ম্যাকের জন্য জিজ্ঞাসা করতে পারেন, কিন্তু কীসেটটি Aead-এর জন্য।
একটি সাধারণ ঘটনা হল যে ব্যক্তি প্রাইভেট কী সমন্বিত একটি কীসেট থেকে একটি সর্বজনীন কী আদিম পেতে চেষ্টা করে। এটি সমস্যা কিনা তা দেখতে, পরিবর্তে GetPublicKeysetHandle()
এর ফলাফলে GetPrimitive()
কল করার কথা বিবেচনা করুন।
যদি এটি সাহায্য না করে, আমাদের ক্রস ল্যাঙ্গুয়েজ পরীক্ষায় এখানে কী ধরনের একটি আপ টু ডেট তালিকা পাওয়া যাবে। আপনার চেক করা উচিত যে আদিম P কী টাইপ T-এর সাথে একসাথে তালিকাভুক্ত হয়েছে কিনা।
যদি আদিমটি সংশ্লিষ্ট কী প্রকারের সাথে তালিকাভুক্ত করা হয়, তাহলে এটি হতে পারে যে আপনার ভাষার Tink বাস্তবায়ন কী টাইপ T সমর্থন করে না। Tink আপনার ভাষায় আপনার কী প্রকার সমর্থন করে কিনা তা দেখতে কী ধরনের তালিকা পরীক্ষা করুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eTink error messages like "No wrapper registered" often indicate missing primitive registration, fixable with \u003ccode\u003eTinkConfig.register()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eErrors mentioning key type and primitive usually mean an incompatible keyset is used, like requesting a Mac with an Aead keyset.\u003c/p\u003e\n"],["\u003cp\u003ePublic key primitives require keysets obtained via \u003ccode\u003eGetPublicKeysetHandle()\u003c/code\u003e to avoid key type mismatches.\u003c/p\u003e\n"],["\u003cp\u003eVerify key type and primitive compatibility by checking the cross-language test resources and supported key types documentation for your language.\u003c/p\u003e\n"]]],["Tink error messages like \"No wrapper registered\" or \"Unable to get primitive\" indicate issues with key and primitive type registration or compatibility. For \"No wrapper\" errors, register the type using `TinkConfig.register()` or specialized methods like `KeyDerivationConfig.register()`. For primitive-key type mismatches, verify that the keyset's type matches the requested primitive, and use `GetPublicKeysetHandle()` for public keys. Check supported key type lists if registration or type-checking does not fix the issue.\n"],null,["# Debug Registration Errors\n\nTink sometimes produces error messages such as\n\n- `No wrapper registered for type`\n- `No manager for type T has been registered`\n- `Unable to get primitive interface P for key of type T`\n\nThis page helps to debug such issues.\n\nCase 1: The error stars with \"No wrapper found\" or similar.\n-----------------------------------------------------------\n\nYou are calling `GetPrimitive()` to get a primitive type that has not been\nregistered, which is generally fixed by calling `TinkConfig.register()`\nsomewhere earlier in the binary. Registering once suffices and can be done at\nstartup.\n\nSome primitives need more specialized registration.\n\n- `KeysetDeriver` requires `KeyDerivationConfig.register()`\n- `JwtMac` requires `JwtMacConfig.register()`\n- `JwtPublicKeySign` and `JwtPublicKeyVerify` require `JwtSignatureConfig.register()`\n\nCase 2: The error lists a key type and a primitive.\n---------------------------------------------------\n\nFor example, the error might say `Unable to get primitive interface P for key\nof type T` for some specific value of P and T.\n\nIn this case, Tink is unable to create the specific primitive you asked it\nfor the keyset you have. Typically, this happens because you have a keyset\nfor the wrong type. For example, you might be asking for a Mac, but the keyset\nis for Aead.\n\nOne common case is that one tries to get a public key primitive from a keyset\ncontaining private keys. To see if this is the problem, consider calling\n`GetPrimitive()` on the result of `GetPublicKeysetHandle()` instead.\n\nIf this does not help, an up to date list of the key types can be found\n[here](https://github.com/tink-crypto/tink-cross-lang-tests/blob/main/cross_language/cross_language/tink_config/_key_types.py),\nin our [cross language tests](https://github.com/tink-crypto/tink-cross-lang-tests/blob/main/cross_language/cross_language). You should check if the primitive P is listed\ntogether with the key type T.\n\nIf the primitive is listed with the corresponding key type, it may be that\nthe Tink implementation of your language does not support key type T. Check the\n[list of key types](/tink/supported-key-types) to see if Tink supports your key\ntype in your language."]]