If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

You can only access stepExecutionContext within a bean defined in the scope = "step", add "scope = "step"" to your bean declaration.


Flow files only know how to work with Spring Beans, annotate ManagedBean with @Component('serviceProviderSubscriptionBB') or declare the managed bean directly on flow with


If you're not using an embedded servlet container, try do disable the white label in your, with "server.error.whitelabel.enabled = false" otherwise check this answer on stackoverflow:

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Error logging issues
    via GitHub by phamann
  • Pass parameter to Spring soap interceptor
    via Stack Overflow by ViratKohli
  • Reversed if condition
    via GitHub by evelan
  • I am trying to use a result of method call to a spring bean as a part of the cache key, but that doesn't seem to work. @Inject private KeyCreatorBean keyCreatorBean; @Cacheable(value = "cacheName", key = "{@keyCreatorBean.createKey, #p0}") @Override public List<Examples> getExamples(ExampleId exampleId) { Results in this kind of stack trace: org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 1): Field or property 'keyCreatorBean' cannot be found on object of type 'org.springframework.cache.interceptor.CacheExpressionRootObject' at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty( at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal( at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal( at org.springframework.expression.spel.ast.SpelNodeImpl.getValue( at org.springframework.expression.spel.ast.InlineList.getValueInternal( at org.springframework.expression.spel.ast.SpelNodeImpl.getValue( at org.springframework.expression.spel.standard.SpelExpression.getValue( at org.springframework.cache.interceptor.ExpressionEvaluator.key( at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.generateKey(
    via by Juha Syrjälä,
    • org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 0): Method call: Method getType() cannot be found on type at org.springframework.expression.spel.ast.MethodReference.findAccessorForMethod( at org.springframework.expression.spel.ast.MethodReference.getValueInternal( at org.springframework.expression.spel.ast.MethodReference.getValueInternal( at org.springframework.expression.spel.ast.SpelNodeImpl.getValue( at org.springframework.expression.spel.standard.SpelExpression.getValue( at at at at at at at at com.graphaware.writer.thirdparty.BaseThirdPartyWriter.runOneIteration( at$1$ at$ at java.util.concurrent.Executors$ at java.util.concurrent.FutureTask.runAndReset( at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301( at java.util.concurrent.ScheduledThreadPoolExecutor$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at

    Users with the same issue

    2 times, last one,
    6 times, last one,
    Unknown visitor1 times, last one,
    1 times, last one,
    3 times, last one,
    65 more bugmates