when i am trying to intialize the OmemoManager it gives verification error like below
Exception in thread “main” java.lang.VerifyError: class org.whispersystems.libsignal.state.StorageProtos$PreKeyRecordStructure overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.whispersystems.libsignal.state.PreKeyRecord.(PreKeyRecord.java:25)
at org.whispersystems.libsignal.util.KeyHelper.generatePreKeys(KeyHelper.java:89)
at org.jivesoftware.smackx.omemo.signal.SignalOmemoKeyUtil.generateOmemoPreKeys(SignalOmemoKeyUtil.java:66)
at org.jivesoftware.smackx.omemo.OmemoStore.generateOmemoPreKeys(OmemoStore.java:535)
at org.jivesoftware.smackx.omemo.OmemoStore.packOmemoBundle(OmemoStore.java:201)
at org.jivesoftware.smackx.omemo.OmemoService.publishBundle(OmemoService.java:301)
at org.jivesoftware.smackx.omemo.OmemoService.initialize(OmemoService.java:228)
at org.jivesoftware.smackx.omemo.OmemoManager.initialize(OmemoManager.java:189)
at com.smack.demo.SmackE2E.main(SmackE2E.java:94)
i have used singal-protocol-java-2.6.2 does any one have solution for this problem?
i have installed openfire 4.1.5 and configured smack 4.2.1 snapshot for client.
Unrelated to your main problem, but OMEMO wont work on Openfire, since it’s PEP/PubSub implementation is currently broken.
To the crash you experience:
I’m not sure, what causes this, seems like a bug in libsignal. Can you give some more information about what Android version/device you are using?
Also: How did you include smack-omemo in your project?
As I said, OpenFires PubSub implementation is currently broken, so you wont get working OMEMO encryption using Openfire. You could try if your implementation works on another server like ejabberd or prosody.
You might also want to create a new bugreport for Openfire in case there is no open ticket yet. That might speed up the process of fixing Openfire
Could you please help me to open a bug in jira tracker actully i don’t know from where can i open this bug and since this community is in migration stage i couldn’t find any thing working well.
Please help me to open a bug for developer and we can fix it out.
Or let me know what is basic requirements for pep as i modified the server and i know each and every corner of source code i can fix it but not sure how does omemo work.
I can fix this issue my self but need some direction about how does the omemo working do you have any blogs or refrence from where i can refer and fix this broken issue.
Only a few users are allowed to file tickets in the bug tracker. If you can formulate this bug (short description), i can file it for you. Though, filing it won’t make it fixed faster. There are only a few volunteer developers here. If you can come up with a patch and provide it as a pull request on Github, it might speed up things.
I’ll try my best to fix this bug and then come with pull request before that i need to understand how does the pep working and how the omemo integrated with this currently working on it.
I don’t know in deep as of now so i couldn’t give you enough information about the bug but may be paul has enough reserch on that and if he can provide then it will be great for us.
Thanks for your support and updating me let me try out that i am using alpha 4.2.0 so i think it is also fixed for that let me compile the server again.
i got warning logs from smack at receiver end like
Nov 22, 2017 10:42:13 PM org.jivesoftware.smackx.omemo.OmemoService processReceivingMessage
INFO: There is no key with our deviceId. Silently discard the message.
and getting error at sender end like
Could not fetch device list of test@hiren: org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from test@hiren: XMPPError: internal-server-error - wait
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from test@hiren: XMPPError: internal-server-error - wait
Please help me to get out of this situation don’t know how to resolve it.