Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013538Openbravo ERPA. Platformpublic2010-06-04 19:142010-06-08 00:00
shuehner 
alostale 
normalmajorhave not tried
closedfixed 
5
pi 
 
Core
No
0013538: [NewCR] Associating a module to a project fails
Associating a newly registered module to a newly created forge project fails and shows a Nullpointer exception + stacktrace in the browser

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.openbravo.base.exception.OBException: java.lang.NullPointerException
    org.openbravo.dal.core.OBInterceptor.doEvent(OBInterceptor.java:266)
    org.openbravo.dal.core.OBInterceptor.onFlushDirty(OBInterceptor.java:150)
    org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:331)
    org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:308)
    org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:248)
    org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:128)
    org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
    org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
    org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
    org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
    org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
    org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
    org.openbravo.dal.core.SessionHandler.commitAndClose(SessionHandler.java:211)
    org.openbravo.dal.core.DalThreadHandler.doFinal(DalThreadHandler.java:51)
    org.openbravo.dal.core.DalRequestFilter$1.doFinal(DalRequestFilter.java:97)
    org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:65)
    org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:101)

root cause
Create new forge project, check the 'module' option when doing so
Register a new module
from the 'my profile' view in the forge
click on the newly registered module
associate it to the newly created project
see NPE
NewCR
Issue History
2010-06-04 19:14shuehnerNew Issue
2010-06-04 19:14shuehnerAssigned To => alostale
2010-06-04 19:15shuehnerNote Added: 0028009
2010-06-04 19:15shuehnerTag Attached: NewCR
2010-06-04 23:02hgbotCheckin
2010-06-04 23:02hgbotNote Added: 0028015
2010-06-04 23:02hgbotStatusnew => resolved
2010-06-04 23:02hgbotResolutionopen => fixed
2010-06-04 23:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.utility.centralrepository/rev/f84005a3e198b029ec445ec100d28c42af9f4747 [^]
2010-06-07 15:06shuehnerNote Added: 0028059
2010-06-07 15:06shuehnerStatusresolved => closed
2010-06-08 00:00anonymoussf_bug_id0 => 3012882

Notes
(0028009)
shuehner   
2010-06-04 19:15   
From butler.log:

83.230.226.193 - - [04/Jun/2010:19:10:20 +0200] 8134 "POST /heartbeat-server/org.openbravo.utility.centralrepository.ui.sso/AssociateProject HTTP/1.1" 500 915 "http://centralrepository.openbravo.com/heartbeat-server/org.openbravo.utility.centralrepository.ui.sso/CentralRepository?navigate=AssociateProject&moduleId=7A2EF414EFC74E43A015F2F41ED9BDBB&projectId=0" [^] "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"

==> /var/log/tomcat/butler.log <==
251ef582 19:10:20 [ajp-8009-5] ERROR org.openbravo.base.exception.OBException -
java.lang.NullPointerException
        at org.openbravo.dal.core.OBInterceptor.onUpdate(OBInterceptor.java:332)
        at org.openbravo.dal.core.OBInterceptor.doEvent(OBInterceptor.java:260)
        at org.openbravo.dal.core.OBInterceptor.onFlushDirty(OBInterceptor.java:150)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:331)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:308)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:248)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:128)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
        at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
        at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
        at org.openbravo.dal.core.SessionHandler.commitAndClose(SessionHandler.java:211)
        at org.openbravo.dal.core.DalThreadHandler.doFinal(DalThreadHandler.java:51)
        at org.openbravo.dal.core.DalRequestFilter$1.doFinal(DalRequestFilter.java:97)
        at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:65)
        at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:101)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:427)
        at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
        at java.lang.Thread.run(Thread.java:619)
(0028015)
hgbot   
2010-06-04 23:02   
Repository: erp/pmods/org.openbravo.utility.centralrepository
Changeset: f84005a3e198b029ec445ec100d28c42af9f4747
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jun 04 23:02:23 2010 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.utility.centralrepository/rev/f84005a3e198b029ec445ec100d28c42af9f4747 [^]

fixed bug 13538: Commit and close dal before redirect

---
M src/org/openbravo/utility/centralrepository/ui/sso/AssociateProject.java
---
(0028059)
shuehner   
2010-06-07 15:06   
Tested. Associating a module to a project is possible now.