Re: Queries on non-committed objects

From: Todd O'Bryan (toddobrya..ac.com)
Date: Sun Feb 05 2006 - 15:40:29 EST

  • Next message: Andrus Adamchik: "Re: Queries on non-committed objects"

    Thanks for being patient. Here's the whole thing, with the "Caused
    by" part near the bottom:

    org.objectstyle.cayenne.access.QueryResult.nextQueryException
    (QueryResult.java:257)
    org.objectstyle.cayenne.access.DataDomainQueryAction.nextQueryException(
    DataDomainQueryAction.java:176)
    org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:
    328)
    org.objectstyle.cayenne.access.DataDomainQueryAction.performQuery
    (DataDomainQueryAction.java:107)
    org.objectstyle.cayenne.access.DataDomain.performQueries
    (DataDomain.java:643)
    org.objectstyle.cayenne.access.DataContext.performQueries
    (DataContext.java:1100)
    org.objectstyle.cayenne.access.Transaction.performQueries
    (Transaction.java:207)
    org.objectstyle.cayenne.access.DataContext.performQueries
    (DataContext.java:1068)
    org.objectstyle.cayenne.access.DataContextSelectAction.performQuery
    (DataContextSelectAction.java:173)
    org.objectstyle.cayenne.access.DataContextSelectAction.performQuery
    (DataContextSelectAction.java:93)
    org.objectstyle.cayenne.access.DataContext.performQuery
    (DataContext.java:1200)
    org.dupontmanual.cayenne.neogrades.ObQuestion.getValues
    (ObQuestion.java:35)
    org.dupontmanual.cayenne.neogrades.ObQuestion.getValue
    (ObQuestion.java:22)
    org.dupontmanual.cayenne.neogrades.MultChoiceQuestion.getText
    (MultChoiceQuestion.java:31)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
    ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:904)
    ognl.ObjectPropertyAccessor.getPossibleProperty
    (ObjectPropertyAccessor.java:54)
    ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
    ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
    ognl.ASTProperty.getValueBody(ASTProperty.java:96)
    ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
    ognl.SimpleNode.getValue(SimpleNode.java:210)
    ognl.ASTChain.getValueBody(ASTChain.java:109)
    ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
    ognl.SimpleNode.getValue(SimpleNode.java:210)
    ognl.Ognl.getValue(Ognl.java:333)
    ognl.Ognl.getValue(Ognl.java:310)
    org.apache.tapestry.binding.ExpressionBinding.resolveProperty
    (ExpressionBinding.java:201)
    org.apache.tapestry.binding.ExpressionBinding.getObject
    (ExpressionBinding.java:194)
    org.apache.tapestry.binding.AbstractBinding.getString
    (AbstractBinding.java:137)
    org.apache.tapestry.param.StringParameterConnector.setParameter
    (StringParameterConnector.java:50)
    org.apache.tapestry.param.ParameterManager.setParameters
    (ParameterManager.java:105)
    org.apache.tapestry.AbstractComponent.prepareForRender
    (AbstractComponent.java:898)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:853)
    org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:
    118)
    org.dupontmanual.tapestry.obquestions.EditMultChoiceQuestion.renderCompo
    nent(EditMultChoiceQuestion.java:23)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractComponent.renderBody
    (AbstractComponent.java:624)
    org.mb.tapestry.base.IfBean.renderComponent(IfBean.java:83)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:
    118)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractComponent.renderBody
    (AbstractComponent.java:624)
    org.apache.tapestry.form.Form.renderComponent(Form.java:362)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractComponent.renderBody
    (AbstractComponent.java:624)
    org.mb.tapestry.base.IfBean.renderComponent(IfBean.java:83)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractComponent.renderBody
    (AbstractComponent.java:624)
    org.apache.tapestry.components.RenderBody.renderComponent
    (RenderBody.java:45)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractComponent.renderBody
    (AbstractComponent.java:624)
    org.apache.tapestry.html.Body.renderComponent(Body.java:269)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractComponent.renderBody
    (AbstractComponent.java:624)
    org.apache.tapestry.components.RenderBody.renderComponent
    (RenderBody.java:45)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:
    118)
    org.dupontmanual.tapestry.DMShell.renderComponent(DMShell.java:60)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractComponent.renderBody
    (AbstractComponent.java:624)
    org.mb.tapestry.base.IfBean.renderComponent(IfBean.java:83)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:
    118)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:
    118)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:300)
    org.dupontmanual.tapestry.DMBasePage.renderPage(DMBasePage.java:168)
    org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:
    368)
    org.apache.tapestry.engine.AbstractEngine.renderResponse
    (AbstractEngine.java:749)
    org.apache.tapestry.engine.DirectService.service(DirectService.java:174)
    org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
    889)
    org.apache.tapestry.ApplicationServlet.doService
    (ApplicationServlet.java:198)
    org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:
    327)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    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:
    856)
    org.apache.coyote.http11.Http11Protocol
    $Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    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:613)

    Caused by: org.objectstyle.cayenne.exp.ExpressionException: [v.1.2M10
    January 5 2006] Can't resolve path component:
    [ObQuestionDatum.question].
    org.objectstyle.cayenne.map.Entity$PathIterator.next(Entity.java:386)
    org.objectstyle.cayenne.access.trans.QueryAssemblerHelper.appendObjPath(
    QueryAssemblerHelper.java:125)
    org.objectstyle.cayenne.access.trans.QualifierTranslator.objectNode
    (QualifierTranslator.java:370)
    org.objectstyle.cayenne.exp.Expression.traverse(Expression.java:547)
    org.objectstyle.cayenne.exp.Expression.traverse(Expression.java:544)
    org.objectstyle.cayenne.exp.Expression.traverse(Expression.java:544)
    org.objectstyle.cayenne.exp.Expression.traverse(Expression.java:524)
    org.objectstyle.cayenne.access.trans.QualifierTranslator.doTranslation
    (QualifierTranslator.java:110)
    org.objectstyle.cayenne.access.trans.SelectTranslator.createSqlString
    (SelectTranslator.java:163)
    org.objectstyle.cayenne.dba.mysql.MySQLSelectTranslator.createSqlString(
    MySQLSelectTranslator.java:68)
    org.objectstyle.cayenne.access.trans.QueryAssembler.createStatement
    (QueryAssembler.java:131)
    org.objectstyle.cayenne.access.jdbc.SelectAction.performAction
    (SelectAction.java:104)
    org.objectstyle.cayenne.access.DataNodeQueryAction.runQuery
    (DataNodeQueryAction.java:95)
    org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:
    321)



    This archive was generated by hypermail 2.0.0 : Sun Feb 05 2006 - 15:40:45 EST