Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
Vaadin Spring 1.0.0.beta1- Autowire @VaadinSessionScope to @Scope("singleto
Hello,
I use Vaadin 7.5.6 and Vaadin Spring 1.0.0.beta1.
I need autowire @VaadinSessionScope bean to @Scope("singleton") bean.
When I start my application I get the exception:
Injection of autowired dependencies failed; nested exception
is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: _SessionBean_ _SingletonBean_.sessionBean; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'sessionBean': Scope 'vaadin-session' is not active for the current thread;
consider defining a scoped proxy for this bean if you intend to refer to it
from a singleton; nested exception is
java.lang.IllegalStateException: No VaadinSession bound to current thread
Hope it's clear enough, can you point me in the right direction?
Last updated on
Hey,
did you try it with Vaadin Spring 1.0.0 Release Version?
They changed quite a bit as far as I've seen.
Last updated on
The same problem with Vaadin Spring 1.0.0.
Is it possible autowire special Vaadin Scope VaadinSessionScope to ordinary Spring Scope Singleton?
Last updated on
You cannot reply to this thread.