Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPEL: Error message is useless at helping developer resolve problem actual problem, EL1027E:(pos 4): Indexing into type ... [SPR-8876] #13517

spring-projects-issues opened this issue Nov 25, 2011 · 2 comments
in: core status: declined type: enhancement


Copy link

@spring-projects-issues spring-projects-issues commented Nov 25, 2011

Darryl L. Miles opened SPR-8876 and commented

After having used Spring Roo to produce a skeleton application to modify (therefore using the best coding conventions and project design).
When modifiying such a project I came into a situation that was difficult to solve from readying the Exception message.

org.springframework.expression.spel.SpelEvaluationException: EL1027E:(pos 4): Indexing into type 'com.example.MyParentClass' is not supported

in method => public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
at line => throw new SpelEvaluationException(getStartPosition(),SpelMessage.INDEXING_NOT_SUPPORTED_FOR_TYPE, targetObjectTypeDescriptor.asString());

There is not enough information presented to the developer to have any idea about which thing is the problem.
The index/indexValue local variables look very useful at providing the developer anough information to be able to fix the problem.
So this bug request that such messages provide information to allow diagnosis of the problem from the message.

The only way to develop is to set a breakpoint and manually inspect the state of Spring internals before allowing it to throw the exception.

No further details from SPR-8876

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Nov 25, 2011

Chris Beams commented

Hi Darryl,

Thanks for the report. Could you provide a bit more information about the expression that led to this error? And perhaps you could provide a suggestion as to what error message would have helped you more?

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Feb 11, 2013

Phil Webb commented

Without further information I am not sure how we could improve the error message so I am going to mark this as "won't fix" for now.

@spring-projects-issues spring-projects-issues added status: declined type: enhancement in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.2.2 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: core status: declined type: enhancement
None yet

No branches or pull requests

2 participants