Openbravo Issue Tracking System - Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0041215 | Modules | Advanced Payments | public | 2019-07-01 19:18 | 2019-08-22 14:45 |
Reporter | martinsdan | ||||
Assigned To | dmiguelez | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 30 | OS Version | 18.01 | |
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Regression date | |||||
Regression introduced by commit | |||||
Regression level | |||||
Review Assigned To | dmiguelez | ||||
Support ticket | 10709 | ||||
OBNetwork customer | Gold | ||||
Regression introduced in release | |||||
Summary | 0041215: Error using FIN_Utility.getDocumentNo in an event handler | ||||
Description | An error occurs when FIN_Utility.getDocumentNo is called for a sequence that is referenced in the entity being saved. When this is done, an NPE will happen in hibernate. 2019-07-01 17:50:38,961 [http-nio-8080-exec-3] ERROR org.openbravo.service.json.DefaultJsonDataService - Error updating object java.lang.NullPointerException: null at org.hibernate.type.descriptor.java.AbstractTypeDescriptor.extractHashCode(AbstractTypeDescriptor.java:78) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.type.AbstractStandardBasicType.getHashCode(AbstractStandardBasicType.java:204) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.type.AbstractStandardBasicType.getHashCode(AbstractStandardBasicType.java:209) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.engine.spi.CollectionKey.generateHashCode(CollectionKey.java:64) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.engine.spi.CollectionKey.<init>(CollectionKey.java:58) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.engine.spi.CollectionKey.<init>(CollectionKey.java:33) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.event.internal.AbstractFlushingEventListener.postFlush(AbstractFlushingEventListener.java:400) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:40) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1454) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1440) ~[hibernate-core-5.3.2.Final.jar:5.3.2.Final] at org.openbravo.dal.service.OBDal.flush(OBDal.java:266) ~[classes/:?] at org.openbravo.service.json.DefaultJsonDataService.update(DefaultJsonDataService.java:1034) [classes/:?] at org.openbravo.service.datasource.DefaultDataSourceService.update(DefaultDataSourceService.java:239) [classes/:?] at org.openbravo.service.datasource.DataSourceServlet.doPut(DataSourceServlet.java:949) [classes/:?] | ||||
Steps To Reproduce | - Add a sequence field in Product. - Create an event handler for Product - On save, call FIN_Utility.getDocumentNo and set the current state of the search key The error will be shown | ||||
Proposed Solution | The problem is related to the call of lockSequence(seq) in getDocumentNo. I think the specific problem is OBDal.getInstance().getSession().evict(seq). | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=13077&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-07-01 19:18 | martinsdan | New Issue | |||
2019-07-01 19:18 | martinsdan | Assigned To | => Triage Finance | ||
2019-07-01 19:18 | martinsdan | OBNetwork customer | => Gold | ||
2019-07-02 12:49 | santi_lozano | Resolution time | => 1563832800 | ||
2019-07-02 12:49 | santi_lozano | Support ticket | => 10709 | ||
2019-07-02 12:51 | santi_lozano | File Added: ProductKeyfromSequenceEventHandler.java | |||
2019-07-02 13:02 | egoitz | Assigned To | Triage Finance => platform | ||
2019-07-02 13:03 | egoitz | Severity | minor => major | ||
2019-07-17 11:00 | martinsdan | Issue Monitored: martinsdan | |||
2019-07-25 17:08 | AugustoMauch | Note Added: 0113650 | |||
2019-07-25 17:08 | AugustoMauch | Status | new => feedback | ||
2019-07-25 17:08 | AugustoMauch | Assigned To | platform => martinsdan | ||
2019-07-25 17:45 | AugustoMauch | Assigned To | martinsdan => Triage Finance | ||
2019-07-31 12:49 | dmiguelez | Note Added: 0113733 | |||
2019-08-06 11:54 | Sandrahuguet | Assigned To | Triage Finance => dmiguelez | ||
2019-08-08 08:26 | hgbot | Checkin | |||
2019-08-08 08:26 | hgbot | Note Added: 0113892 | |||
2019-08-08 08:26 | hgbot | Status | feedback => resolved | ||
2019-08-08 08:26 | hgbot | Resolution | open => fixed | ||
2019-08-08 08:26 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/89ffba6ba6bf5d3b7d82b54c889de99a12e54f39 [^] | ||
2019-08-08 08:26 | dmiguelez | Review Assigned To | => dmiguelez | ||
2019-08-08 08:26 | dmiguelez | Note Added: 0113893 | |||
2019-08-08 08:26 | dmiguelez | Status | resolved => closed | ||
2019-08-22 14:45 | hudsonbot | Checkin | |||
2019-08-22 14:45 | hudsonbot | Note Added: 0114217 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|