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

java.lang.NoClassDefFoundError: org/signal/libsignal/net/CdsiLookupResponse$Entry on Linux #1720

Open
dukhaSlayer opened this issue Feb 28, 2025 · 2 comments

Comments

@dukhaSlayer
Copy link
Contributor

Getting this exception (line numbers are off by my additional logging):

java.lang.NoClassDefFoundError: org/signal/libsignal/net/CdsiLookupResponse$Entry
	at org.whispersystems.signalservice.api.SignalServiceAccountManager.getRegisteredUsersWithCdsi(SignalServiceAccountManager.java:283)
	at org.asamk.signal.manager.helper.RecipientHelper.getRegisteredUsersV2(RecipientHelper.java:239)
	at org.asamk.signal.manager.helper.RecipientHelper.getRegisteredUsers(RecipientHelper.java:187)
	at org.asamk.signal.manager.helper.RecipientHelper.getRegisteredUsers(RecipientHelper.java:179)
	at org.asamk.signal.manager.internal.ManagerImpl.getUserStatus(ManagerImpl.java:278)

While trying to fetch users's identify on Linux. On Mac Silicon works just fine.

Looked at CdsiLookupResponse$Entry and it seems to be called from native code (it has @CalledFromNative). But have no idea so far why it's failing.

@AsamK
Copy link
Owner

AsamK commented Feb 28, 2025

Looks like a mismatch between the java and jni (native .so file) part of libsignal-client.
Both need to match the one required for your signal-cli version. https://github.com/AsamK/signal-cli/blob/master/CHANGELOG.md

@dukhaSlayer
Copy link
Contributor Author

Hm... interesting. I don't use custom libsignal-client, always use com.github.turasa:signal-service-java. Also, version mismatch most probably would behave similarly on Mac and Linux. OK, will do more testing.

@dukhaSlayer dukhaSlayer changed the title java.lang.NoClassDefFoundError: org/signal/libsignal/net/CdsiLookupResponse$Entry on Linus java.lang.NoClassDefFoundError: org/signal/libsignal/net/CdsiLookupResponse$Entry on Linux Mar 3, 2025
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