No DataMap found for query exception???

From: Robert Zeigler (rdzeigl...arizona.edu)
Date: Sat Aug 07 2004 - 18:43:38 EDT

  • Next message: Mike Kienenberger: "Re: No DataMap found for query exception???"

    Running cayenne version 1.1B1.
    I'm trying to execute a query, and getting a
    "No DataMap found for query with root: class
    org.eledge.domain.model.User" exception thrown.
    It's just a basic query...
    SelectQuery query = new SelectQuery(User.class);
    query.setExpression(ExpressionFactory.matchExp("login",login));
    query.andExpression(ExpressionFactory.matchExp("password",pass));
    dataContext.performQuery(query);//exception occurs here.

    I have switched package names, but everything has been refactored to use
    the new name. All of my objects extend a base object, which in turn
    extends CayenneDataObject. The base object is not part of the cayenne
    schema (? could that be the problem?). Any thoughts on this one are
    appreciated greatly.

    Robert

    Stack Trace:

    org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1B1 July 13 2004]
    No DataMap found for query with root: class org.eledge.domain.model.User
    org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.java:633)
    org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1336)
    org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:176)
    org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1294)
    org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1550)
    org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1413)
    org.eledge.domain.auth.DBSessionAuthentication.login(DBSessionAuthentication.java:53)
    org.eledge.components.LoginComponent.login(LoginComponent.java:46)
    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:324)
    org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:257)
    org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
    org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMap.java:97)
    org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(ListenerMap.java:102)
    org.apache.tapestry.form.Form.renderComponent(Form.java:423)
    org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
    org.apache.tapestry.form.Form.rewind(Form.java:568)
    org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:435)
    org.apache.tapestry.form.Form.trigger(Form.java:582)
    org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
    org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)
    org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197)
    org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:326)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
    org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
    org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
    org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
    org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
    org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
    org.mortbay.http.HttpServer.service(HttpServer.java:879)
    org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
    org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
    org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
    org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
    org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
    org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)



    This archive was generated by hypermail 2.0.0 : Sat Aug 07 2004 - 18:43:11 EDT