Announcement Announcement Module
Collapse
No announcement yet.
JSPException in simple show.jspx in Roo 1.1.0.M1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSPException in simple show.jspx in Roo 1.1.0.M1

    Hi,

    I want to upgrade from Roo 1.0.2 to 1.1.0.M1 but I'm getting a JSP rendering error in a simple test app. Here's the roo script:

    // Spring Roo 1.1.0.M1 [rev 3a0b8a3] log opened at 2010-06-04 14:25:39
    project --topLevelPackage datetest
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    entity --class User --permitReservedWords
    field string name
    field date --type java.util.Date dateOfBirth
    controller all --package ~.web
    logging setup --level DEBUG
    exit
    // Spring Roo 1.1.0.M1 [rev 3a0b8a3] log closed at 2010-06-04 14:26:54

    I run the app with mvn jetty:run, I create a User and then after saving get an error on the show user page (http://localhost:8080/datetest/users/1):

    Code:
    DEBUG 5920992@qtp-17209834-0 org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'datetest' processing GET request for [/datetest/app/users/1]
    ...
    DEBUG 5920992@qtp-17209834-0 org.springframework.web.servlet.DispatcherServlet - Could not complete request
    org.apache.tiles.impl.CannotRenderException: JSPException including path '/WEB-INF/views/users/show.jspx'.
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:692)
    ...
    Caused by: org.apache.tiles.util.TilesIOException: JSPException including path '/WEB-INF/views/users/show.jspx'.
    	at org.apache.tiles.servlet.context.ServletUtil.wrapServletException(ServletUtil.java:241)
    ...
    Caused by: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: org.springframework.expression.spel.SpelEvaluationException: EL1021E:(pos 0): A problem occurred whilst attempting to access the property 'object': 'Unexpected exception occurred accessing 'object' as an implicit variable'
    	at org.apache.jsp.WEB_002dINF.views.users.show_jspx$show_jspxHelper.invoke(org.apache.jsp.WEB_002dINF.views.users.show_jspx:164)
    ...
    Caused by: javax.servlet.jsp.JspException: org.springframework.expression.spel.SpelEvaluationException: EL1021E:(pos 0): A problem occurred whilst attempting to access the property 'object': 'Unexpected exception occurred accessing 'object' as an implicit variable'
    	at org.apache.jsp.tag.web.form.fields.display_tagx.doTag(org.apache.jsp.tag.web.form.fields.display_tagx:208)
    ...
    Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1021E:(pos 0): A problem occurred whilst attempting to access the property 'object': 'Unexpected exception occurred accessing 'object' as an implicit variable'
    	at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:199)
    ...
    Caused by: org.springframework.expression.AccessException: Unexpected exception occurred accessing 'object' as an implicit variable
    	at org.springframework.web.servlet.tags.EvalTag$JspPropertyAccessor.resolveImplicitVariable(EvalTag.java:177)
    ...
    Caused by: java.lang.NullPointerException
    	at org.springframework.web.servlet.tags.EvalTag$JspPropertyAccessor.resolveImplicitVariable(EvalTag.java:174)

    This is a serious blocker - I can't upgrade to 1.1.0.M1 with this.

    Thanks,
    Alex

  • #2
    Hi,

    Could a member of the Roo dev team perhaps try and reproduce this please?

    Thanks a lot.

    Comment


    • #3
      FYI: No error with tomcat:run

      FYI: I reproduce identical error using mvn jetty:run
      But no error occurs using mvn tomcat:run
      Same roo script.

      Comment

      Working...
      X