Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such method error for com.google.protobuf.GeneratedMessageLite.registerDefaultInstance #2

Open
paliwalg opened this issue Jul 20, 2021 · 1 comment

Comments

@paliwalg
Copy link

I am trying to generate the python wrapper for Hedera Java DID SDK https://github.com/hashgraph/did-sdk-java
using the same approach as with this project.

I can see python wrappers are generated successfully, but when I am trying to use them, it fails with the error as :

File "jnius/jnius_export_class.pxi", line 270, in jnius.JavaClass.init
File "jnius/jnius_export_class.pxi", line 370, in jnius.JavaClass.call_constructor
File "jnius/jnius_jvm_dlopen.pxi", line 91, in jnius.create_jnienv
jnius.JavaException: JVM exception occurred: 'void com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(java.lang.Class, com.google.protobuf.GeneratedMessageLite)' java.lang.NoSuchMethodError

Any idea what I might have done it wrongly or I have missed here ?

Let me know if you need more information.

@paliwalg paliwalg changed the title No much method error for com.google.protobuf.GeneratedMessageLite.registerDefaultInstance No such method error for com.google.protobuf.GeneratedMessageLite.registerDefaultInstance Jul 20, 2021
@laoym88
Copy link

laoym88 commented Jul 31, 2022

Am having same protobuf issues after ContractCallQuery()

..., print(query_result.rawResult)
it outputs <com.google.protobuf.ByteString at 0x7fa4f5aba200 jclass=com/google/protobuf/ByteString jself=<LocalRef obj=0x38957d0 at 0x7fa520f92a50>>

Managed to view ContractFunctionResult{ .... rawResult='00000...00' ...} separately.

Couldnt decode this ByteString.

Please help. Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants