Commons OGNL
  1. Commons OGNL
  2. OGNL-36

Another "getter body: null setter body: null " Error in combination with "||"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: ExpressionCompiler
    • Labels:
      None

      Description

      JWC :

      <parameter name="showIfEmpty" required="no" default-value="false"/>

      <parameter name="tableModel" property="tableModelValue"/>

      <span jwcid="@If" condition="ognl:!showIfEmpty || tableModel.rowCount > 0">

      Nothing respective in my java code!!!

      Unable to parse OGNL expression '!showIfEmpty || tableModel.rowCount > 0': Error compiling expression on object $ExtendedTable_2@932aade1[CompanySearchPage/companyTable] with expression node (showIfEmpty) || (tableModel.rowCount > 0) getter body: null setter body: null org.apache.tapestry.BindingException

      Unable to parse OGNL expression '!showIfEmpty || tableModel.rowCount > 0': Error compiling expression on object $ExtendedTable_2@932aade1[CompanySearchPage/companyTable] with expression node (showIfEmpty) || (tableModel.rowCount > 0) getter body: null setter body: null

      binding: ExpressionBinding[CompanySearchPage/companyTable !showIfEmpty || tableModel.rowCount > 0]

      location: classpath:/com/explido/components/extendedtable/ExtendedTable.html, line 17

      12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

      13 See the License for the specific language governing permissions and

      14 limitations under the License.

      15 -->

      16 <span jwcid="$content$">

      17 <span jwcid="@If" condition="ognl:!showIfEmpty || tableModel.rowCount > 0">

      18 <span jwcid="tableView">

      19 <span jwcid="condPages">

      20 <span jwcid="ifNormalPages">

      21 <span jwcid="tablePages"/>

      22 </span>

      [ +/- ] Exception: Unable to parse OGNL expression '!showIfEmpty || tableModel.rowCount > 0': Error compiling expression on object $ExtendedTable_2@932aade1[CompanySearchPage/companyTable] with expression node (showIfEmpty) || (tableModel.rowCount > 0) getter body: null setter body: null org.apache.hivemind.ApplicationRuntimeException

      Unable to parse OGNL expression '!showIfEmpty || tableModel.rowCount > 0': Error compiling expression on object $ExtendedTable_2@932aade1[CompanySearchPage/companyTable] with expression node (showIfEmpty) || (tableModel.rowCount > 0) getter body: null setter body: null

      [ +/- ] Exception: Error compiling expression on object $ExtendedTable_2@932aade1[CompanySearchPage/companyTable] with expression node (showIfEmpty) || (tableModel.rowCount > 0) getter body: null setter body: null org.apache.hivemind.ApplicationRuntimeException

      Error compiling expression on object $ExtendedTable_2@932aade1[CompanySearchPage/companyTable] with expression node (showIfEmpty) || (tableModel.rowCount > 0) getter body: null setter body: null

      [ +/- ] Exception: Unable to add method java.lang.Boolean ref1(ognl.OgnlContext, java.lang.Object) to class ognl.ASTOr18477885Accessor: [source error] ; is missing org.apache.hivemind.ApplicationRuntimeException

      Unable to add method java.lang.Boolean ref1(ognl.OgnlContext, java.lang.Object) to class ognl.ASTOr18477885Accessor: [source error] ; is missing

      [ +/- ] Exception: [source error] ; is missing javassist.CannotCompileException

      [source error] ; is missing

      [ +/- ] Exception: ; is missing javassist.compiler.CompileError

      ; is missing

      lex: javassist.compiler.Lex@15099a1

      Stack Trace:

      javassist.compiler.Parser.parseReturn(Parser.java:509) javassist.compiler.Parser.parseStatement(Parser.java:268) javassist.compiler.Parser.parseBlock(Parser.java:288) javassist.compiler.Parser.parseStatement(Parser.java:242) javassist.compiler.Javac.compileBody(Javac.java:203) javassist.CtBehavior.setBody(CtBehavior.java:341) javassist.CtBehavior.setBody(CtBehavior.java:316) org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:272) org.apache.tapestry.services.impl.HiveMindExpressionCompiler.createLocalReferences(HiveMindExpressionCompiler.java:314) org.apache.tapestry.services.impl.HiveMindExpressionCompiler.generateGetter(HiveMindExpressionCompiler.java:257) org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:141) ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:388) ognl.Ognl.compileExpression(Ognl.java:123) org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:129) org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:91) $ExpressionCache_111b27c9572.getCompiledExpression($ExpressionCache_111b27c9572.java) org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:120) org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:111) org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:84) org.apache.tapestry.enhance.EnhanceUtils.toBoolean(EnhanceUtils.java:176) $IfBean_3.getCondition($IfBean_3.java) org.apache.tapestry.components.IfBean.evaluateCondition(IfBean.java:116) org.apache.tapestry.components.IfBean.renderComponent(IfBean.java:70) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) org.apache.tapestry.components.IfBean.renderComponent(IfBean.java:96) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) org.apache.tapestry.components.RenderBody.renderComponent(RenderBody.java:41) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) org.apache.tapestry.html.Body.renderComponent(Body.java:38) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:525) org.apache.tapestry.html.Shell.renderComponent(Shell.java:64) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184) org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:712) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:182) org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:237) org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:397) org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse(DefaultResponseBuilder.java:158) org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:33) $ResponseRenderer_111b27c9435.renderResponse($ResponseRenderer_111b27c9435.java) $ResponseRenderer_111b27c9434.renderResponse($ResponseRenderer_111b27c9434.java) org.apache.tapestry.engine.PageService.service(PageService.java:68) com.wdw.services.ExtendedPageService.service(ExtendedPageService.java:44) $IEngineService_111b27c94ca.service($IEngineService_111b27c94ca.java) org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(EngineServiceInnerProxy.java:77) org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:72) org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:246) org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54) $WebRequestServicer_111b27c9481.service($WebRequestServicer_111b27c9481.java) $WebRequestServicer_111b27c9480.service($WebRequestServicer_111b27c9480.java) org.apache.tapestry.services.impl.DisableCachingFilter.service(DisableCachingFilter.java:54) $WebRequestServicerFilter_111b27c9483.service($WebRequestServicerFilter_111b27c9483.java) $WebRequestServicerFilter_111b27c9482.service($WebRequestServicerFilter_111b27c9482.java) $WebRequestServicer_111b27c9484.service($WebRequestServicer_111b27c9484.java) com.wdw.hst.HibernateRequestFilter4Tapestry.service(HibernateRequestFilter4Tapestry.java:122) $WebRequestServicerFilter_111b27c947f.service($WebRequestServicerFilter_111b27c947f.java) $WebRequestServicerFilter_111b27c947e.service($WebRequestServicerFilter_111b27c947e.java) $WebRequestServicer_111b27c9484.service($WebRequestServicer_111b27c9484.java) $WebRequestServicer_111b27c947b.service($WebRequestServicer_111b27c947b.java) $WebRequestServicer_111b27c947a.service($WebRequestServicer_111b27c947a.java) org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:61) $ServletRequestServicer_111b27c9461.service($ServletRequestServicer_111b27c9461.java) $ServletRequestServicer_111b27c9460.service($ServletRequestServicer_111b27c9460.java) org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55) $ServletRequestServicerFilter_111b27c945d.service($ServletRequestServicerFilter_111b27c945d.java) $ServletRequestServicerFilter_111b27c945c.service($ServletRequestServicerFilter_111b27c945c.java) $ServletRequestServicer_111b27c9462.service($ServletRequestServicer_111b27c9462.java) org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52) $ServletRequestServicerFilter_111b27c945b.service($ServletRequestServicerFilter_111b27c945b.java) $ServletRequestServicerFilter_111b27c945a.service($ServletRequestServicerFilter_111b27c945a.java) $ServletRequestServicer_111b27c9462.service($ServletRequestServicer_111b27c9462.java) org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53) $ServletRequestServicerFilter_111b27c945f.service($ServletRequestServicerFilter_111b27c945f.java) $ServletRequestServicerFilter_111b27c945e.service($ServletRequestServicerFilter_111b27c945e.java) $ServletRequestServicer_111b27c9462.service($ServletRequestServicer_111b27c9462.java) $ServletRequestServicer_111b27c9455.service($ServletRequestServicer_111b27c9455.java) $ServletRequestServicer_111b27c9454.service($ServletRequestServicer_111b27c9454.java) org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123) org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:104) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595)

        Activity

        Hide
        Jesse Kuhnert added a comment -

        I think/hope this should be resolved now.

        Show
        Jesse Kuhnert added a comment - I think/hope this should be resolved now.

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Marco Valverde
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development