Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-408

OGNL can't access a static field in a class in the webapp context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Framework
    • None
    • Windows XP

    Description

      I have a class com.ttdev.shop.ProductDetails in my webapp's context and all the tapestry and related jar files (including ognl.jar) in Tomcat's share lib folder. In this setup, OGNL fails when evaluating the following expression:

      <component id="print" type="Insert">
      <binding name="value" value="ognl:@com.ttdev.shop.ProductDetails@CONTINUE_SHOPPING_BUTTON"/>
      </component>

      This problem is most likely related to the bug tapestry-142. Below is the stack trace:

      1. ognl.ASTStaticField.isNodeConstant(ASTStaticField.java:80)
      2. ognl.SimpleNode.isConstant(SimpleNode.java:270)
      3. ognl.Ognl.isConstant(Ognl.java:536)
      4. ognl.Ognl.isConstant(Ognl.java:546)
      5. org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.isConstant(ExpressionEvaluatorImpl.java:130)
      6. $ExpressionEvaluator_1051f9293d2.isConstant($ExpressionEvaluator_1051f9293d2.java)
      7. org.apache.tapestry.binding.ExpressionBinding.initialize(ExpressionBinding.java:145)
      8. org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:101)
      9. org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:87)
      10. $Insert_70.getValue($Insert_70.java)
      11. org.apache.tapestry.components.Insert.renderComponent(Insert.java:42)
      12. org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
      13. org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
      14. org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
      15. org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:274)
      16. org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:355)
      17. org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:71)
      18. $ResponseRenderer_1051f9292ef.renderResponse($ResponseRenderer_1051f9292ef.java)
      19. org.apache.tapestry.engine.HomeService.service(HomeService.java:65)
      20. $IEngineService_1051f929354.service($IEngineService_1051f929354.java)
      21. org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:65)
      22. org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241)
      23. org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
      24. $WebRequestServicer_1051f929335.service($WebRequestServicer_1051f929335.java)
      25. org.apache.tapestry.services.impl.DisableCachingFilter.service(DisableCachingFilter.java:48)
      26. $WebRequestServicerFilter_1051f929337.service($WebRequestServicerFilter_1051f929337.java)
      27. $WebRequestServicer_1051f929339.service($WebRequestServicer_1051f929339.java)
      28. $WebRequestServicer_1051f929331.service($WebRequestServicer_1051f929331.java)
      29. org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
      30. $ServletRequestServicer_1051f929315.service($ServletRequestServicer_1051f929315.java)
      31. org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
      32. $ServletRequestServicerFilter_1051f929311.service($ServletRequestServicerFilter_1051f929311.java)
      33. $ServletRequestServicer_1051f929317.service($ServletRequestServicer_1051f929317.java)
      34. org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
      35. $ServletRequestServicerFilter_1051f92930f.service($ServletRequestServicerFilter_1051f92930f.java)
      36. $ServletRequestServicer_1051f929317.service($ServletRequestServicer_1051f929317.java)
      37. org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
      38. $ServletRequestServicerFilter_1051f929313.service($ServletRequestServicerFilter_1051f929313.java)
      39. $ServletRequestServicer_1051f929317.service($ServletRequestServicer_1051f929317.java)
      40. $ServletRequestServicer_1051f929309.service($ServletRequestServicer_1051f929309.java)
      41. org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:145)
      42. org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:101)
      43. javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      44. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      45. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      46. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      47. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      48. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      49. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      50. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      51. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      52. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      53. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
      54. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
      55. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
      56. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      57. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      58. java.lang.Thread.run(Thread.java:595)

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              freemant Kent Tong
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: