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

misconfigured reflection crash after blocking contact #1686

Open
brad2014 opened this issue Jan 18, 2025 · 1 comment
Open

misconfigured reflection crash after blocking contact #1686

brad2014 opened this issue Jan 18, 2025 · 1 comment

Comments

@brad2014
Copy link

Signal-cli 0.3.12

  1. On Android, block a contact (with null number)
  2. On linked signal-cli device, receive.

Note following error traceback form signal-cli receive:

WARN  CheckWhoAmIJob - Failed to check whoAmI
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `org.whispersystems.signalservice.internal.push.WhoAmIResponse$Entitlements`: cannot deserialize from Object value (no delegate- or property-based Creator): this appears to be a native image, in which case you may need to configure reflection for the class that is to be deserialized
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 276] (through reference chain: org.whispersystems.signalservice.internal.push.WhoAmIResponse["entitlements"])
	at com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition(DeserializationContext.java:1888)
	at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:414)
	at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1370)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1509)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:348)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:543)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:585)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:447)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1497)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:348)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4917)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3860)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3828)
	at org.whispersystems.signalservice.internal.util.JsonUtil.fromJson(JsonUtil.java:67)
	at org.whispersystems.signalservice.internal.push.PushServiceSocket.getWhoAmI(PushServiceSocket.java:513)
	at org.whispersystems.signalservice.api.SignalServiceAccountManager.getWhoAmI(SignalServiceAccountManager.java:158)
	at org.asamk.signal.manager.helper.AccountHelper.checkWhoAmiI(AccountHelper.java:129)
	at org.asamk.signal.manager.jobs.CheckWhoAmIJob.run(CheckWhoAmIJob.java:17)
	at org.asamk.signal.manager.internal.JobExecutor.lambda$runNextJob$0(JobExecutor.java:59)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at [email protected]/java.lang.Thread.runWith(Thread.java:1596)
	at [email protected]/java.lang.Thread.run(Thread.java:1583)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:896)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:872)
@brad2014
Copy link
Author

Note: the syncMessage contains a mix of numbers and uuids, if that matters:

{"envelope":{"source":"[REDACTED NUMBER]","sourceNumber":"[REDACTED NUMBER]","sourceUuid":"[REDACTED UUID]","sourceName":"[REDACTED NAME]","sourceDevice":1,"timestamp":1737231840779,"serverReceivedTimestamp":1737231839010,"serverDeliveredTimestamp":1737231849645,"syncMessage":{"blockedNumbers":["[REDACTED NUMBER]","[REDACTED UUID]"],"blockedGroupIds":[]}},"account":"[REDACTED NUMBER]"}

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

1 participant