Problem with 3.0M3 (Null pointer)

From: Alexander Lamb (dev) ("Alexander)
Date: Tue Feb 05 2008 - 04:02:07 EST

  • Next message: Andrus Adamchik: "Re: Problem with 3.0M3 (Null pointer)"

    Hello List,

    I have a crash with M3 that I didn't have with M2. I updated the
    models (I have two models), cleaned everything, rebuilt.

    Upon first commit I get the following crash.

    I am not doing anything special. Just inserting a record then saving.
    Several queries worked perfectly well before that point in the
    application.

    org.apache.cayenne.CayenneRuntimeException: [v.3.0M3 Feb 03 2008
    21:10:17] Commit Exception
            at
    org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:
    1207)
            at
    org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:
    1088)
            at ch.rodano.studies.components.LoginPanel.doLogin(LoginPanel.java:136)
            at
    ch
    .rodano
    .studies.components.LoginPanel.dispatchComponentEvent(LoginPanel.java)
            at
    org
    .apache
    .tapestry
    .internal
    .structure
    .ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:
    843)
            at
    org
    .apache
    .tapestry
    .internal
    .structure
    .ComponentPageElementImpl
    .triggerContextEvent(ComponentPageElementImpl.java:998)
            at
    org
    .apache
    .tapestry
    .internal
    .structure
    .ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:
    934)
            at
    org
    .apache
    .tapestry
    .internal
    .structure
    .InternalComponentResourcesImpl
    .triggerEvent(InternalComponentResourcesImpl.java:154)
            at org.apache.tapestry.corelib.components.Form.onAction(Form.java:392)
            at
    org
    .apache
    .tapestry.corelib.components.Form.dispatchComponentEvent(Form.java)
            at
    org
    .apache
    .tapestry
    .internal
    .structure
    .ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:
    851)
            at
    org
    .apache
    .tapestry
    .internal
    .structure
    .ComponentPageElementImpl
    .triggerContextEvent(ComponentPageElementImpl.java:998)
            at
    org
    .apache
    .tapestry
    .internal
    .services
    .ComponentEventRequestHandlerImpl
    .handle(ComponentEventRequestHandlerImpl.java:62)
            at
    org
    .apache
    .tapestry
    .internal
    .services
    .ImmediateActionRenderResponseFilter
    .handle(ImmediateActionRenderResponseFilter.java:42)
            at
    $
    ComponentEventRequestHandler_117e8bfb846
    .handle($ComponentEventRequestHandler_117e8bfb846.java)
            at
    org
    .apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
            at
    $
    ComponentEventRequestHandler_117e8bfb846
    .handle($ComponentEventRequestHandler_117e8bfb846.java)
            at org.apache.tapestry.services.TapestryModule
    $39.handle(TapestryModule.java:2094)
            at
    $
    ComponentEventRequestHandler_117e8bfb846
    .handle($ComponentEventRequestHandler_117e8bfb846.java)
            at
    $
    ComponentEventRequestHandler_117e8bfb7d4
    .handle($ComponentEventRequestHandler_117e8bfb7d4.java)
            at
    org
    .apache
    .tapestry
    .internal
    .services
    .ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:131)
            at $Dispatcher_117e8bfb7d6.dispatch($Dispatcher_117e8bfb7d6.java)
            at $Dispatcher_117e8bfb7c9.dispatch($Dispatcher_117e8bfb7c9.java)
            at org.apache.tapestry.services.TapestryModule
    $13.service(TapestryModule.java:932)
            at ch.rodano.studies.services.AppModule$1.service(AppModule.java:62)
            at $RequestFilter_117e8bfb7c8.service($RequestFilter_117e8bfb7c8.java)
            at
    $RequestHandler_117e8bfb7ca.service($RequestHandler_117e8bfb7ca.java)
            at
    org
    .apache
    .tapestry
    .internal.services.LocalizationFilter.service(LocalizationFilter.java:
    43)
            at
    $RequestHandler_117e8bfb7ca.service($RequestHandler_117e8bfb7ca.java)
            at org.apache.tapestry.services.TapestryModule
    $3.service(TapestryModule.java:531)
            at
    $RequestHandler_117e8bfb7ca.service($RequestHandler_117e8bfb7ca.java)
            at org.apache.tapestry.services.TapestryModule
    $2.service(TapestryModule.java:506)
            at
    $RequestHandler_117e8bfb7ca.service($RequestHandler_117e8bfb7ca.java)
            at
    org
    .apache
    .tapestry
    .internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
            at
    $RequestHandler_117e8bfb7ca.service($RequestHandler_117e8bfb7ca.java)
            at org.apache.tapestry.internal.services.CheckForUpdatesFilter
    $2.invoke(CheckForUpdatesFilter.java:93)
            at org.apache.tapestry.internal.services.CheckForUpdatesFilter
    $2.invoke(CheckForUpdatesFilter.java:84)
            at
    org
    .apache
    .tapestry
    .ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
            at
    org
    .apache
    .tapestry
    .internal
    .services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
            at
    $RequestHandler_117e8bfb7ca.service($RequestHandler_117e8bfb7ca.java)
            at
    $RequestHandler_117e8bfb7c1.service($RequestHandler_117e8bfb7c1.java)
            at org.apache.tapestry.services.TapestryModule
    $12.service(TapestryModule.java:912)
            at
    org
    .apache
    .tapestry
    .internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:
    62)
            at
    $
    HttpServletRequestFilter_117e8bfb7c0
    .service($HttpServletRequestFilter_117e8bfb7c0.java)
            at
    $
    HttpServletRequestHandler_117e8bfb7c2
    .service($HttpServletRequestHandler_117e8bfb7c2.java)
            at
    $
    HttpServletRequestHandler_117e8bfb7bf
    .service($HttpServletRequestHandler_117e8bfb7bf.java)
            at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164)
            at org.mortbay.jetty.servlet.WebApplicationHandler
    $CachedChain.doFilter(WebApplicationHandler.java:821)
            at
    org
    .mortbay
    .jetty
    .servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
            at
    org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
            at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
            at
    org
    .mortbay
    .jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:
    633)
            at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
            at org.mortbay.http.HttpServer.service(HttpServer.java:909)
            at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
            at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
            at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
            at
    org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
    245)
            at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
            at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
    Caused by: java.lang.NullPointerException
            at
    org
    .apache
    .cayenne
    .map.AshwoodEntitySorter.fillInMetadata(AshwoodEntitySorter.java:265)
            at
    org
    .apache
    .cayenne.map.AshwoodEntitySorter._indexSorter(AshwoodEntitySorter.java:
    98)
            at
    org
    .apache
    .cayenne
    .map.AshwoodEntitySorter.sortDbEntities(AshwoodEntitySorter.java:137)
            at
    org
    .apache
    .cayenne
    .access
    .DataDomainInsertBucket
    .appendQueriesInternal(DataDomainInsertBucket.java:57)
            at
    org
    .apache
    .cayenne
    .access.DataDomainSyncBucket.appendQueries(DataDomainSyncBucket.java:80)
            at
    org
    .apache
    .cayenne
    .access.DataDomainFlushAction.preprocess(DataDomainFlushAction.java:183)
            at
    org
    .apache
    .cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:
    135)
            at org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:
    821)
            at org.apache.cayenne.access.DataDomain$2.transform(DataDomain.java:
    788)
            at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:
    847)
            at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:785)
            at
    org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:
    1175)
            ... 59 more



    This archive was generated by hypermail 2.0.0 : Tue Feb 05 2008 - 04:03:22 EST