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

lastConnection, firstConnection, knownConnection all throw and error #304

Closed
open-sudo opened this issue May 27, 2023 · 14 comments
Closed
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed

Comments

@open-sudo
Copy link

I am getting below error when trying to reuse connection. I suspect it is related to the issue of store that was reported previously:

Exception in thread "main" java.lang.NoSuchFieldError: READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE
        at com.fasterxml.jackson.databind.deser.std.EnumDeserializer.createContextual(EnumDeserializer.java:211)
        at com.fasterxml.jackson.databind.DeserializationContext.handlePrimaryContextualization(DeserializationContext.java:836)
        at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve(BeanDeserializerBase.java:550)
        at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:294)
        at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)
        at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)
        at com.fasterxml.jackson.databind.DeserializationContext.findNonContextualValueDeserializer(DeserializationContext.java:644)
        at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve(BeanDeserializerBase.java:539)
        at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:294)
        at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)
        at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)
        at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:654)
        at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:4956)
        at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4826)
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3817)
        at it.auties.whatsapp.util.Smile.readValue(Smile.java:93)
        at it.auties.whatsapp.controller.DefaultControllerSerializer$SmileFile.read(DefaultControllerSerializer.java:369)
        at it.auties.whatsapp.controller.DefaultControllerSerializer$SmileFile.read(DefaultControllerSerializer.java:356)
        at it.auties.whatsapp.controller.DefaultControllerSerializer.deserializeStoreFromId(DefaultControllerSerializer.java:208)
        at it.auties.whatsapp.controller.DefaultControllerSerializer.deserializeStore(DefaultControllerSerializer.java:196)
        at it.auties.whatsapp.controller.Store.of(Store.java:398)
        at it.auties.whatsapp.api.OptionsBuilder.<init>(OptionsBuilder.java:23)
        at it.auties.whatsapp.api.WebOptionsBuilder.<init>(WebOptionsBuilder.java:13)
        at it.auties.whatsapp.api.ConnectionBuilder.createConnection(ConnectionBuilder.java:108)
        at it.auties.whatsapp.api.ConnectionBuilder.firstConnection(ConnectionBuilder.java:91)
@Auties00
Copy link
Owner

it's a version conflict, one of your dependencies is using an older version of Jackson

@open-sudo
Copy link
Author

open-sudo commented May 27, 2023 via email

@Auties00
Copy link
Owner

I am building the original Whatsapp4j project. None of my dependencies is involved. git clone https://github.com/Auties00/Whatsapp4j.git cd Whatsapp4j maven clean package

On Sat, May 27, 2023 at 8:47 AM Alessandro Autiero @.> wrote: it's a version conflict, one of your dependencies is using an older version of Jackson — Reply to this email directly, view it on GitHub <#304 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A . You are receiving this because you authored the thread.Message ID: @.>

Can you try now?

@Auties00 Auties00 added the waiting triage A maintainer acknowledged the issue, further discussion is needed label May 27, 2023
@open-sudo
Copy link
Author

open-sudo commented May 27, 2023 via email

@Auties00
Copy link
Owner

I am getting this now: [ERROR] Plugin com.github.auties00:protobuf-serialization-plugin:2.0.3 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.github.auties00:protobuf-serialization-plugin:jar:2.0.3 (absent): com.github.auties00:protobuf-serialization-plugin:jar:2.0.3 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] On Sat, May 27, 2023 at 11:07 AM Alessandro Autiero < @.> wrote:

I am building the original Whatsapp4j project. None of my dependencies is involved. git clone https://github.com/Auties00/Whatsapp4j.git cd Whatsapp4j maven clean package … <#m_2626908554068669879_> On Sat, May 27, 2023 at 8:47 AM Alessandro Autiero @.
> wrote: it's a version conflict, one of your dependencies is using an older version of Jackson — Reply to this email directly, view it on GitHub <#304 (comment) <#304 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A . You are receiving this because you authored the thread.Message ID: @.
> Can you try now? — Reply to this email directly, view it on GitHub <#304 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6PLIDTNOIMQQAGOP4JSQLXIIKEDANCNFSM6AAAAAAYREHM2A . You are receiving this because you authored the thread.Message ID: @.
**>

Maven central might not have gotten the update yet, wait 10/20 minutes

@open-sudo
Copy link
Author

open-sudo commented May 27, 2023 via email

@Auties00
Copy link
Owner

still not working here.

On Sat, May 27, 2023 at 11:54 AM Alessandro Autiero <
@.***> wrote:

I am getting this now: [ERROR] Plugin
com.github.auties00:protobuf-serialization-plugin:2.0.3 or one of its
dependencies could not be resolved: The following artifacts could not be
resolved: com.github.auties00:protobuf-serialization-plugin:jar:2.0.3
(absent): com.github.auties00:protobuf-serialization-plugin:jar:2.0.3 was
not found in https://repo.maven.apache.org/maven2 during a previous
attempt. This failure was cached in the local repository and resolution is
not reattempted until the update interval of central has elapsed or updates
are forced -> [Help 1] On Sat, May 27, 2023 at 11:07 AM Alessandro Autiero
< @.

> wrote: … <#m_-4169878552150758207_> I am building the original
Whatsapp4j project. None of my dependencies is involved. git clone
https://github.com/Auties00/Whatsapp4j.git
https://github.com/Auties00/Whatsapp4j.git cd Whatsapp4j maven clean
package … <#m_2626908554068669879_> On Sat, May 27, 2023 at 8:47 AM
Alessandro Autiero @.> wrote: it's a version conflict, one of your
dependencies is using an older version of Jackson — Reply to this email
directly, view it on GitHub <#304
#304 (comment) <#304
(comment)
#304 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
. You are receiving this because you authored the thread.Message ID: @.>
Can you try now? — Reply to this email directly, view it on GitHub <#304
(comment)
#304 (comment)>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6PLIDTNOIMQQAGOP4JSQLXIIKEDANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIDTNOIMQQAGOP4JSQLXIIKEDANCNFSM6AAAAAAYREHM2A
. You are receiving this because you authored the thread.Message ID: @.

**>

Maven central might not have gotten the update yet, wait 10/20 minutes


Reply to this email directly, view it on GitHub
#304 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6PLIFHZBOQAQBW5OOQ4J3XIIPS3ANCNFSM6AAAAAAYREHM2A
.
You are receiving this because you authored the thread.Message ID:
@.***>

should work now

@open-sudo
Copy link
Author

open-sudo commented May 27, 2023 via email

@Auties00
Copy link
Owner

I am able to compile now. But the application is not showing the bar code
anymore. It hangs and after 30 seconds it dies.

On Sat, May 27, 2023 at 1:35 PM Alessandro Autiero @.***>
wrote:

still not working here.

On Sat, May 27, 2023 at 11:54 AM Alessandro Autiero <
@.***> wrote:

I am getting this now: [ERROR] Plugin
com.github.auties00:protobuf-serialization-plugin:2.0.3 or one of its
dependencies could not be resolved: The following artifacts could not be
resolved: com.github.auties00:protobuf-serialization-plugin:jar:2.0.3
(absent): com.github.auties00:protobuf-serialization-plugin:jar:2.0.3 was
not found in https://repo.maven.apache.org/maven2 during a previous
attempt. This failure was cached in the local repository and resolution is
not reattempted until the update interval of central has elapsed or updates
are forced -> [Help 1] On Sat, May 27, 2023 at 11:07 AM Alessandro Autiero
< @.

> wrote: … <#m_-4169878552150758207_> I am building the original
Whatsapp4j project. None of my dependencies is involved. git clone
https://github.com/Auties00/Whatsapp4j.git
https://github.com/Auties00/Whatsapp4j.git
https://github.com/Auties00/Whatsapp4j.git
https://github.com/Auties00/Whatsapp4j.git cd Whatsapp4j maven clean
package … <#m_2626908554068669879_> On Sat, May 27, 2023 at 8:47 AM
Alessandro Autiero @.> wrote: it's a version conflict, one of your
dependencies is using an older version of Jackson — Reply to this email
directly, view it on GitHub <#304
#304 #304
#304 (comment) <#304
#304 (comment) #304
(comment)
#304 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIANRMMGR22LIXUH5SLXIHZW5ANCNFSM6AAAAAAYREHM2A
. You are receiving this because you authored the thread.Message ID: @.>
Can you try now? — Reply to this email directly, view it on GitHub <#304
#304 (comment) #304
(comment)
#304 (comment)>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6PLIDTNOIMQQAGOP4JSQLXIIKEDANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIDTNOIMQQAGOP4JSQLXIIKEDANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIDTNOIMQQAGOP4JSQLXIIKEDANCNFSM6AAAAAAYREHM2A
https://github.com/notifications/unsubscribe-auth/AO6PLIDTNOIMQQAGOP4JSQLXIIKEDANCNFSM6AAAAAAYREHM2A
. You are receiving this because you authored the thread.Message ID: @.

**>

Maven central might not have gotten the update yet, wait 10/20 minutes


Reply to this email directly, view it on GitHub
#304 (comment)
#304 (comment)
,
or unsubscribe

https://github.com/notifications/unsubscribe-auth/AO6PLIFHZBOQAQBW5OOQ4J3XIIPS3ANCNFSM6AAAAAAYREHM2A
.
You are receiving this because you authored the thread.Message ID:
@.***>

should work now


Reply to this email directly, view it on GitHub
#304 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6PLIEMXNWMYNYW366NDPTXII3M7ANCNFSM6AAAAAAYREHM2A
.
You are receiving this because you authored the thread.Message ID:
@.***>

can you try to delete your old sessions also make sure you are using the latest commit

@open-sudo
Copy link
Author

open-sudo commented May 27, 2023 via email

@Auties00
Copy link
Owner

Auties00 commented May 27, 2023 via email

@open-sudo
Copy link
Author

Here is a simple project that reproduces the issue: https://github.com/kubecutle/reproducer.git. If I change pom version to 3.4.0, everything works as expected. if you build the main branch with version 38.0.500, app starts but does not show the QR code.

@Auties00
Copy link
Owner

Auties00 commented Jun 6, 2023

the latest commit should fix this error, please lmk

@Auties00
Copy link
Owner

Auties00 commented Jun 7, 2023

Tracking in #289

@Auties00 Auties00 closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed
Projects
None yet
Development

No branches or pull requests

2 participants