Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015015Openbravo ERPA. Platformpublic2010-10-25 13:302010-10-30 11:24
shuehner 
gorkaion 
immediatemajorhave not tried
closedfixed 
5
 
 
Core
No
0015015: New ad_session_usage_audit fails sometimes on Logout
on using the Logout button at least once this error happened

a3196480 1078530 [http-8080-7] ERROR org.openbravo.base.VariablesBase - setSessionValue error: #CurrentAccessLevel:...7
a3196480 1078555 [http-8080-7] WARN org.openbravo.dal.core.OBInterceptor - The object ADSessionUsageAudit(FF8080812BE30F1D012BE31F8FEC0078) (module: 0, javaClassName: org.openbravo.erpCommon.security.Logout) is detected as not new (is its id != null?) but it does not have a current state in the database. This can happen when the id is set but not setNewObject(true); has been called.
a3196480 1078555 [http-8080-7] ERROR org.openbravo.erpCommon.security.Logout - Error captured:
org.hibernate.PropertyValueException: not-null property references a null or transient value: ADSessionUsageAudit.session
    at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
    at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:270)
    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.openbravo.dal.service.OBDal.flush(OBDal.java:131)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:410)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

So at least in some case ad_session_id might be missing at that flow.
skip insert if #AD_Session_ID is not set
No tags attached.
Issue History
2010-10-25 13:30shuehnerNew Issue
2010-10-25 13:30shuehnerAssigned To => gorkaion
2010-10-25 13:47hgbotCheckin
2010-10-25 13:47hgbotNote Added: 0032179
2010-10-25 13:47hgbotStatusnew => resolved
2010-10-25 13:47hgbotResolutionopen => fixed
2010-10-25 13:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/05b8e6fe855dda1f188c44f27b5b56acc902f209 [^]
2010-10-26 10:24hudsonbotCheckin
2010-10-26 10:24hudsonbotNote Added: 0032208
2010-10-28 12:06shuehnerNote Added: 0032292
2010-10-28 12:06shuehnerStatusresolved => closed
2010-10-30 11:24anonymoussf_bug_id0 => 3098755

Notes
(0032179)
hgbot   
2010-10-25 13:47   
Repository: erp/devel/pi
Changeset: 05b8e6fe855dda1f188c44f27b5b56acc902f209
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Oct 25 13:47:04 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/05b8e6fe855dda1f188c44f27b5b56acc902f209 [^]

Fixed issue 15015. Don't save usage audit when there is no session id.

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0032208)
hudsonbot   
2010-10-26 10:24   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/05b8e6fe855d [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/bedab969e4a7 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18742.obx [^]
(0032292)
shuehner   
2010-10-28 12:06   
code-Change Reviewed. Not testable as the issue itself was not reproducible and only happened once.