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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030314
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 08. Project and service managementmajoralways2015-07-03 14:122015-10-05 19:11
ReporterngarciaView Statuspublic 
Assigned ToTriage Omni OMS 
PriorityimmediateResolutionduplicateFixed in Version3.0PR15Q3.2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tongarcia
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030314: NullPointerException when launching the Create AP Expense Invoices process

DescriptionNullPointerException 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 ReproduceAs 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)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0030811 closeddmiguelez Openbravo ERP process: "Create expense AP Invoice" does not work 
caused by defect 0028934 closedinigosanchez Modules Error when launching "Create AP Expense Invoices" related to Openbravo External Connection Pools module. 

-  Notes
(0078647)
alostale (manager)
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.

- Issue History
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 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
Powered by Mantis Bugtracker