You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the StateMachineBuilder to create ad-hoc state machines. It is apparently a known issue. However, the proposed solutions don't seem to work.
final StateMachineBuilder.Builder<States, Events> builder = StateMachineBuilder.builder();
// doesn't work
builder.configureConfiguration().withConfiguration().beanFactory(new StaticListableBeanFactory());
// doesn't work either
builder.configureConfiguration().withConfiguration().beanFactory(applicationContext.getAutowireCapableBeanFactory());
This happens regardless using a persister. Is there anything else I can try ?
System configuration:
Linux amd64
JDK 1.8.0_144
Spring 4.3.11.RELEASE
Spring SSM 1.2.6.RELEASE
The text was updated successfully, but these errors were encountered:
I'm finally going to take away that annoying warning message and handle that exception as this mess dates to times when we didn't have builders, thus more change of working outside of spring context.
jvalkeal
changed the title
Can not get rid of 'java.lang.IllegalStateException: Bean factory must be instance of ListableBeanFactory, was null'
Handle null BeanFactory in StateMachineHandlerCallHelper
Nov 12, 2017
jvalkeal
added a commit
to jvalkeal/spring-statemachine
that referenced
this issue
Nov 12, 2017
- Makes things less chatty if BeanFactory is null in
StateMachineHandlerCallHelper as this is usually a case
with manual builders outside of app context.
- Fixesspring-projects#412
- Makes things less chatty if BeanFactory is null in
StateMachineHandlerCallHelper as this is usually a case
with manual builders outside of app context.
- Backport #412
- Relates #307
I am using the StateMachineBuilder to create ad-hoc state machines. It is apparently a known issue. However, the proposed solutions don't seem to work.
This happens regardless using a persister. Is there anything else I can try ?
System configuration:
The text was updated successfully, but these errors were encountered: