Skip to content

[mac] Provider com.sshtools.twoslices.impl.SWTToaster$Service not found #3

@avently

Description

@avently

Hello. One of users has this exception on Mac arm64 on version 0.9.3. No such exception happened in 0.9.0-SNAPSHOT:

java.util.ServiceConfigurationError: com.sshtools.twoslices.ToasterService: Provider com.sshtools.twoslices.impl.SWTToaster$Service not found
	at java.base/java.util.ServiceLoader.fail(Unknown Source)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(Unknown Source)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(Unknown Source)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(Unknown Source)
	at java.base/java.util.ServiceLoader$2.hasNext(Unknown Source)
	at java.base/java.util.ServiceLoader$3.hasNext(Unknown Source)
	at com.sshtools.twoslices.ToasterFactory$ServicesToasterFactory.toaster(ToasterFactory.java:56)
	at com.sshtools.twoslices.ToastBuilder.toast(ToastBuilder.java:513)
	at chat.simplex.common.model.NtfManager.displayNotificationViaLib(NtfManager.desktop.kt:113)
	at chat.simplex.common.model.NtfManager.displayNotification(NtfManager.desktop.kt:87)
	at chat.simplex.common.platform.AppCommon_desktopKt$initApp$1.displayNotification(AppCommon.desktop.kt:21)
	at chat.simplex.common.platform.NtfManager.displayNotification$default(NtfManager.kt:99)
	at chat.simplex.common.platform.NtfManager.notifyContactConnected(NtfManager.kt:20)
	at chat.simplex.common.model.ChatController.processReceivedMsg(SimpleXAPI.kt:1711)
	at chat.simplex.common.model.ChatController.access$processReceivedMsg(SimpleXAPI.kt:349)
	at chat.simplex.common.model.ChatController$startReceiver$1$finishedWithoutTimeout$1.invokeSuspend(SimpleXAPI.kt:483)
	at chat.simplex.common.model.ChatController$startReceiver$1$finishedWithoutTimeout$1.invoke(SimpleXAPI.kt)
	at chat.simplex.common.model.ChatController$startReceiver$1$finishedWithoutTimeout$1.invoke(SimpleXAPI.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:72)
	at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:148)
	at kotlinx.coroutines.TimeoutKt.withTimeoutOrNull(Timeout.kt:104)
	at chat.simplex.common.model.ChatController$startReceiver$1.invokeSuspend(SimpleXAPI.kt:482)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:28)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)

Do you have any idea why it happens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions