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

Can't start client without account #577

Open
julianseeger opened this issue Jan 3, 2017 · 0 comments
Open

Can't start client without account #577

julianseeger opened this issue Jan 3, 2017 · 0 comments

Comments

@julianseeger
Copy link
Collaborator

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
@julianseeger julianseeger changed the title Client crashes on start when no account is selected Can't start client without account Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant