Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030314 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 08. Project and service management | major | always | 2015-07-03 14:12 | 2015-10-05 19:11 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | Triage Omni OMS | |||||||
Priority | immediate | Resolution | duplicate | Fixed in Version | 3.0PR15Q3.2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ngarcia | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030314: NullPointerException when launching the Create AP Expense Invoices process | |||||||
Description | NullPointerException when launching the Create AP Expense Invoices process. As new connection is opened, when trying to access the invoice through DAL in the getDeferredPlanForInvoiceProduct() of the AccDefUtility class is it not available: Invoice invoice = OBDal.getInstance().get(Invoice.class, invoiceId); isSOTRX = invoice.isSalesTransaction(); | |||||||
Steps To Reproduce | As group admin role: Create a new Product: Product Type = Expense Type Add a price to it Set Javier Martin as Vendor and set the default values for Purchase Price List, Payment method... Create a Expense Sheet for Javier Martin and add a line to it with the previously created product Time Sheet = 'N' Process it Launch the Create AP Expense Invoices process and NullPointerException error is shown java.lang.NullPointerException at org.openbravo.erpCommon.utility.AccDefUtility.getDeferredPlanForInvoiceProduct(AccDefUtility.java:139) at org.openbravo.erpCommon.ad_process.ExpenseAPInvoice.processExpense(ExpenseAPInvoice.java:323) at org.openbravo.erpCommon.ad_process.ExpenseAPInvoice.doPost(ExpenseAPInvoice.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||||
|
![]() |
|
(0078647) alostale (viewer) 2015-07-06 08:45 |
Changeset for issue 0028934 makes a correct use of transactional connection to create all invoices in a single transaction using sqlc, the problem is AccDefUtility is querying for those new created invoices in another transaction which has no visibility of the one creating the invoices. |
![]() |
|||
Date Modified | Username | Field | Change |
2015-07-03 14:12 | ngarcia | New Issue | |
2015-07-03 14:12 | ngarcia | Assigned To | => Triage Finance |
2015-07-03 14:12 | ngarcia | OBNetwork customer | => No |
2015-07-03 14:12 | ngarcia | Modules | => Core |
2015-07-03 14:12 | ngarcia | Triggers an Emergency Pack | => No |
2015-07-03 14:12 | ngarcia | Issue Monitored: networkb | |
2015-07-03 14:13 | ngarcia | Relationship added | caused by 0028934 |
2015-07-03 14:20 | ngarcia | Assigned To | Triage Finance => inigosanchez |
2015-07-06 08:45 | alostale | Note Added: 0078647 | |
2015-07-06 08:46 | alostale | Assigned To | inigosanchez => Triage Finance |
2015-10-05 19:11 | ngarcia | Review Assigned To | => ngarcia |
2015-10-05 19:11 | ngarcia | Relationship added | duplicate of 0030811 |
2015-10-05 19:11 | ngarcia | Status | new => closed |
2015-10-05 19:11 | ngarcia | Resolution | open => duplicate |
2015-10-05 19:11 | ngarcia | Fixed in Version | => 3.0PR15Q3.2 |
Copyright © 2000 - 2009 MantisBT Group |