Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013538
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2010-06-04 19:142010-06-08 00:00
ReportershuehnerView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionf84005a3e198
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0013538: [NewCR] Associating a module to a project fails

DescriptionAssociating 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
Steps To ReproduceCreate 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
TagsNewCR
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0028009)
shuehner (administrator)
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 (developer)
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 (administrator)
2010-06-07 15:06

Tested. Associating a module to a project is possible now.

- Issue History
Date Modified Username Field Change
2010-06-04 19:14 shuehner New Issue
2010-06-04 19:14 shuehner Assigned To => alostale
2010-06-04 19:15 shuehner Note Added: 0028009
2010-06-04 19:15 shuehner Tag Attached: NewCR
2010-06-04 23:02 hgbot Checkin
2010-06-04 23:02 hgbot Note Added: 0028015
2010-06-04 23:02 hgbot Status new => resolved
2010-06-04 23:02 hgbot Resolution open => fixed
2010-06-04 23:02 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.utility.centralrepository/rev/f84005a3e198b029ec445ec100d28c42af9f4747 [^]
2010-06-07 15:06 shuehner Note Added: 0028059
2010-06-07 15:06 shuehner Status resolved => closed
2010-06-08 00:00 anonymous sf_bug_id 0 => 3012882


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker