org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 18): Field or property 'server' cannot be found on object of type 'com.springsource.insight.dashboard.resources.ResourceSummary'

Spring JIRA | Scott Andrews | 7 years ago
  1. 0

    [SPR-6923] SpEL resolving nested property as outer object - Spring JIRA

    spring.io | 1 year ago
    org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 18): Field or property 'server' cannot be found on object of type 'com.springsource.insight.dashboard.resources.ResourceSummary'
  2. 0

    Using the new spring:eval tag and evaluating an expression against a ServletRequest attribute results in inconsistent behavior. <spring:eval expression='resource.resource.server' /> produces SEVERE: Servlet.service() for servlet default threw exception org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 18): Field or property 'server' cannot be found on object of type 'com.springsource.insight.dashboard.resources.ResourceSummary' at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:180) at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:60) at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:57) at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:102) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:97) at org.springframework.web.servlet.tags.EvalTag.doEndTag(EvalTag.java:108) at org.apache.jsp.WEB_002dINF.controllers.resources.resource_jsp._jspx_meth_spring_005feval_005f1(resource_jsp.java:1295) Modifying the expression to use the get*() method invocation syntax works as expected: <spring:eval expression='resource.getResource().server' /> The ResourceSummary instance is stored as a servlet request attribute under 'resource'. ResourceSummary has a method getResource() which returns a Resource instance which has a getServer() method. The ResourceSummary#getResource() does not reference itself in anyway.

    Spring JIRA | 7 years ago | Scott Andrews
    org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 18): Field or property 'server' cannot be found on object of type 'com.springsource.insight.dashboard.resources.ResourceSummary'
  3. 0

    Using the new spring:eval tag and evaluating an expression against a ServletRequest attribute results in inconsistent behavior. <spring:eval expression='resource.resource.server' /> produces SEVERE: Servlet.service() for servlet default threw exception org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 18): Field or property 'server' cannot be found on object of type 'com.springsource.insight.dashboard.resources.ResourceSummary' at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:180) at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:60) at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:57) at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:102) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:97) at org.springframework.web.servlet.tags.EvalTag.doEndTag(EvalTag.java:108) at org.apache.jsp.WEB_002dINF.controllers.resources.resource_jsp._jspx_meth_spring_005feval_005f1(resource_jsp.java:1295) Modifying the expression to use the get*() method invocation syntax works as expected: <spring:eval expression='resource.getResource().server' /> The ResourceSummary instance is stored as a servlet request attribute under 'resource'. ResourceSummary has a method getResource() which returns a Resource instance which has a getServer() method. The ResourceSummary#getResource() does not reference itself in anyway.

    Spring JIRA | 7 years ago | Scott Andrews
    org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 18): Field or property 'server' cannot be found on object of type 'com.springsource.insight.dashboard.resources.ResourceSummary'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    Stack Overflow | 3 years ago | Chandan Patra
    org.springframework.expression.spel.SpelEvaluationException: EL1027E:(pos 4): Indexing into type 'com.test.domain.Employee' is not supported
  6. 0

    spring app not finding property on object

    Stack Overflow | 3 years ago | CodeMed
    org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 9): Field or property 'day' cannot be found on object of type 'org.springframework.samples.knowledgemanager.model.AppointmentCalendar'

  1. musketyr 5 times, last 1 week ago
  2. tvrmsmith 1 times, last 1 week ago
  3. gehel 14 times, last 1 week ago
  4. serious2monkeys 1 times, last 1 month ago
  5. Pilleo 2 times, last 2 months ago
8 more registered users
49 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.expression.spel.SpelEvaluationException

    EL1008E:(pos 18): Field or property 'server' cannot be found on object of type 'com.springsource.insight.dashboard.resources.ResourceSummary'

    at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty()
  2. Spring Expression Language (SpEL)
    SpelExpression.getValue
    1. org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:180)
    2. org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:60)
    3. org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:57)
    4. org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:102)
    5. org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:97)
    5 frames
  3. Spring MVC
    EvalTag.doEndTag
    1. org.springframework.web.servlet.tags.EvalTag.doEndTag(EvalTag.java:108)
    1 frame
  4. org.apache.jsp
    resource_jsp._jspx_meth_spring_005feval_005f1
    1. org.apache.jsp.WEB_002dINF.controllers.resources.resource_jsp._jspx_meth_spring_005feval_005f1(resource_jsp.java:1295)
    1 frame