Skip to content

Can't start client without account #577

@julianseeger

Description

@julianseeger

Related to the current master. Don't think it's in any release yet.

When the client is started without a selected account (like at the first start of the client), the SyncDaemon is instantiated pre-login and fails to be created because it depends on an existing account.

Exception in thread "main" java.lang.IllegalStateException: failed to call public method on correct class: null
	at de.qabel.desktop.inject.AnnotatedDesktopServiceFactory.invoke(AnnotatedDesktopServiceFactory.java:85)
	at de.qabel.desktop.inject.AnnotatedDesktopServiceFactory.generate(AnnotatedDesktopServiceFactory.java:78)
	at de.qabel.desktop.inject.AnnotatedDesktopServiceFactory.get(AnnotatedDesktopServiceFactory.java:67)
	at de.qabel.desktop.inject.CompositeServiceFactory.get(CompositeServiceFactory.java:16)
	at de.qabel.desktop.Kernel.lambda$initContainer$2(Kernel.java:150)
	at com.airhacks.afterburner.configuration.Configurator.getProperty(Configurator.java:98)
	at de.qabel.desktop.ui.inject.AfterburnerInjector.injectMembers(AfterburnerInjector.java:102)
	at de.qabel.desktop.ui.inject.AfterburnerInjector.injectMembers(AfterburnerInjector.java:81)
	at de.qabel.desktop.ui.inject.AfterburnerInjector.injectMembers(AfterburnerInjector.java:77)
	at de.qabel.desktop.Kernel.initPlugins(Kernel.java:121)
	at de.qabel.desktop.Kernel.initialize(Kernel.java:103)
	at de.qabel.desktop.DesktopClient.main(DesktopClient.java:29)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at de.qabel.desktop.inject.AnnotatedDesktopServiceFactory.invoke(AnnotatedDesktopServiceFactory.java:83)
	... 11 more
Caused by: java.lang.IllegalStateException: couldn't load current account
	at de.qabel.desktop.config.RepositoryBasedClientConfig.getAccount(RepositoryBasedClientConfig.java:66)
	at de.qabel.desktop.inject.RuntimeDesktopServiceFactory.getBoxClient(RuntimeDesktopServiceFactory.java:193)
	at de.qabel.desktop.inject.RuntimeDesktopServiceFactory.getBoxVolumeFactory(RuntimeDesktopServiceFactory.java:176)
	at de.qabel.desktop.inject.RuntimeDesktopServiceFactory.getSyncerFactory(RuntimeDesktopServiceFactory.java:236)
	at de.qabel.desktop.inject.RuntimeDesktopServiceFactory.getSyncDaemon(RuntimeDesktopServiceFactory.java:246)
	... 16 more
Caused by: de.qabel.core.repository.exception.EntityNotFoundException: key not found: account
	at de.qabel.desktop.repository.sqlite.SqliteClientConfigRepository.find(SqliteClientConfigRepository.java:27)
	at de.qabel.desktop.config.RepositoryBasedClientConfig.getAccount(RepositoryBasedClientConfig.java:64)
	... 20 more

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions