org.springframework.expression.spel.SpelEvaluationException

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.
tip

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

tip

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

tip

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

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(PropertyOrFieldReference.java:208) at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:72) at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:52) at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:93) at org.springframework.expression.spel.ast.InlineList.getValueInternal(InlineList.java:86) at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:93) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:88) at org.springframework.cache.interceptor.ExpressionEvaluator.key(ExpressionEvaluator.java:80) at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.generateKey(CacheAspectSupport.java:464)
    via by Juha Syrjälä,
    • org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 0): Method call: Method getType() cannot be found on com.graphaware.module.es.mapping.json.RelationshipExpression type at org.springframework.expression.spel.ast.MethodReference.findAccessorForMethod(MethodReference.java:211) at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:125) at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:85) at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:153) at com.graphaware.module.es.mapping.json.GraphDocumentMapper.getType(GraphDocumentMapper.java:130) at com.graphaware.module.es.mapping.json.GraphDocumentMapper.getDocumentRepresentation(GraphDocumentMapper.java:184) at com.graphaware.module.es.mapping.json.GraphDocumentMapper.getDocumentRepresentation(GraphDocumentMapper.java:159) at com.graphaware.module.es.mapping.json.DocumentMappingRepresentation.createOrUpdateRelationship(DocumentMappingRepresentation.java:79) at com.graphaware.module.es.mapping.JsonFileMapping.createRelationship(JsonFileMapping.java:96) at com.graphaware.module.es.mapping.JsonFileMapping.getActions(JsonFileMapping.java:76) at com.graphaware.module.es.ElasticSearchWriter.processOperations(ElasticSearchWriter.java:108) at com.graphaware.writer.thirdparty.BaseThirdPartyWriter.runOneIteration(BaseThirdPartyWriter.java:63) at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:174) at com.google.common.util.concurrent.Callables$3.run(Callables.java:95) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    aidoan
    2 times, last one,
    Casper
    6 times, last one,
    Unknown visitor1 times, last one,
    Axelo
    1 times, last one,
    tomthomas
    3 times, last one,
    65 more bugmates