RE: Strange load error

From: Fredrik Liden (flide..ranslate.com)
Date: Wed May 11 2005 - 16:08:06 EDT

  • Next message: Cris Daniluk: "Re: Strange load error"

    Hmm..is there any other way to put cayenne.xml in the classpath then
    adding it to the WEB-INF folder?
    come to think of it, sometimes have to restart Tomcat one or two times
    to avoid getting some warning about not finding Cayenne.xml.
    I'd get the warning, shut it down and start it up again. Perhaps this is
    related.

    -----Original Message-----
    From: Cris Daniluk [mailto:cris.danilu..mail.com]
    Sent: Wednesday, May 11, 2005 12:55 PM
    To: cayenne-use..bjectstyle.org
    Subject: Re: Strange load error

    Most likely, you don't have cayenne.xml in your classpath, causing
    getConfiguration().getDomain() to be null.

    Make sure you didn't lose them (maybe during an ant clean?)

    Cris

    On 5/11/05, Fredrik Liden <flide..ranslate.com> wrote:
    > Does anyone know why I'm getting this error?
    > It worked fine yesterday. I can't remember doing any configuration
    > changes. Although it does seem to work sometimes. Perhaps it has
    > something to do with IntelliJ.
    >
    > ERROR [/]: Session event listener threw exception
    > java.lang.NullPointerException
    > at
    > org.objectstyle.cayenne.conf.WebApplicationListener.sessionCreated(Web
    > Ap
    > plicationListener.java:125)
    > at
    >
    org.apache.catalina.session.StandardSession.tellNew(StandardSession.java
    > :371)
    > at
    >
    org.apache.catalina.session.StandardSession.setId(StandardSession.java:3
    > 43)
    > at
    >
    org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:7
    > 48)
    > at
    >
    org.apache.catalina.session.StandardManager.createSession(StandardManage
    > r.java:290)
    > at
    > org.apache.catalina.connector.Request.doGetSession(Request.java:2199)
    > at
    > org.apache.catalina.connector.Request.getSession(Request.java:2017)
    > at
    >
    org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.jav
    > a:822)
    > at
    >
    org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.jav
    > a:833)
    > at
    >
    org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.ja
    > va:148)
    > at
    >
    org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.jav
    > a:123)
    > at
    >
    org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFacto
    > ryImpl.java:104)
    > at
    >
    org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.j
    > ava:61)
    > at
    > org.apache.jsp.Login_jsp._jspService(org.apache.jsp.Login_jsp:35)
    > at
    > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    > at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    > at
    >
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
    > va:325)
    > at
    >
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    > at
    > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    > at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    > at
    >
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
    > tionFilterChain.java:252)
    > at
    >
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
    > erChain.java:173)
    > at irf.filters.FrontFilter.doFilter(FrontFilter.java:51)
    > at
    >
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
    > tionFilterChain.java:202)
    > at
    >
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
    > erChain.java:173)
    > at
    >
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
    > e.java:214)
    > at
    >
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
    > e.java:178)
    > at
    >
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
    > :126)
    > at
    >
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
    > :105)
    > at
    >
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
    > java:107)
    > at
    >
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
    > 48)
    > at
    >
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
    > 5)
    > at
    >
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
    > onnection(Http11Protocol.java:738)
    > at
    >
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
    > .java:526)
    > at
    >
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
    > erWorkerThread.java:80)
    > at
    >
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
    > .java:684)
    > at java.lang.Thread.run(Thread.java:595)
    >



    This archive was generated by hypermail 2.0.0 : Wed May 11 2005 - 16:06:13 EDT