org.springframework.expression.spel.SpelEvaluationException: EL1011E:(pos 4): Method call: Attempted to call method toString() on null context object

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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 <var name="serviceProviderSubscriptionBB" class="the full name of your class"/>

,
Expert 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

Solutions on the web

via Spring JIRA by Satish, 1 year ago
EL1011E:(pos 4): Method call: Attempted to call method toString() on null context object
via Spring JIRA by Satish, 1 year ago
EL1011E:(pos 4): Method call: Attempted to call method toString() on null context object
via Stack Overflow by Bastian Voigt
, 11 months ago
EL1011E:(pos 13): Method call: Attempted to call method getAttribute(java.lang.String) on null context object
via Stack Overflow by Deniss M.
, 5 months ago
EL1011E: Method call: Attempted to call method getAttribute(java.lang.String) on null context object
via Stack Overflow by GodVic
, 1 year ago
EL1011E:(pos 30): Method call: Attempted to call method getPlainId() on null context object
via Stack Overflow by tiktak
, 2 years ago
EL1011E:(pos 23): Method call: Attempted to call method verify(java.lang.String) on null context object
org.springframework.expression.spel.SpelEvaluationException: EL1011E:(pos 4): Method call: Attempted to call method toString() on null context object
at org.springframework.expression.spel.ast.MethodReference.throwIfNotNullSafe(MethodReference.java:137)
at org.springframework.expression.spel.ast.MethodReference.getValueRef(MethodReference.java:68)
at org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:63)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:84)
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:103)
at org.springframework.cache.interceptor.ExpressionEvaluator.key(ExpressionEvaluator.java:103)
at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.generateKey(CacheAspectSupport.java:429)
at org.springframework.cache.interceptor.CacheAspectSupport.generateKey(CacheAspectSupport.java:325)
at org.springframework.cache.interceptor.CacheAspectSupport.findCachedItem(CacheAspectSupport.java:278)
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:201)
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at com.sun.proxy.$Proxy96.findOne(Unknown Source)

Users with the same issue

9 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
2 times, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
68 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.