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

View Revisions: Issue #19942 Back to Issue ]
Summary 0019942: JavaScript errors on Add Details button for Payment Out window
Revision 2012-03-05 13:36 by gorkaion
Steps To Reproduce 1. Login as QAAdmin user
2. Go to Purchase Order window
3. Create a new Purchase Order with the following data:
   Business Partner: Vendor A
   Payment Method: 1 (Spain)
   Payment Terms: 90 days
4. Add a line with the following data:
   Product: Raw Material A
   Ordered Quantity: 11.2
5. Save and Book the Order
6. Close the Purchase Order window and open Payment Out window
7. Create a new Payment with no business partner defined in the header.
8. Click the Add Details button
9. On the pop up window, check that the Business Partner does not have the selector to filter.
9. Choose Transaction Type: GL Items
10. Check that GL Item drop down is missing as well as the dimensions selectors.
Revision 2012-03-05 13:36 by gorkaion
Description When creating a new Payment Out for a Purchase Order the Selectors are not populated.

If the JavaScript console is open there are several "isc is not defined" and "OB is not defined" errors. And no dropdown is available in the popup.

Notice that to reproduce this error the cpu must be on high load. It's easier to reproduce it on Firefox.
Revision 2012-03-05 13:30 by gorkaion
Steps To Reproduce 1. Login as QAAdmin user
2. Go to Purchase Order window
3. Create a new Purchase Order with the following data:
   Business Partner: Vendor A
   Payment Method: 1 (Spain)
   Payment Terms: 90 days
4. Add a line with the following data:
   Product: Raw Material A
   Ordered Quantity: 11.2
5. Save and Book the Order
6. Close the Purchase Order window and open Payment Out window
7. Create a new Payment for Business Partner: Vendor A and Save
8. Click the Add Details button
9. On the pop up window, choose Transaction Type: Orders
10. Mark the order created in step 5 and click Process
11. In the Process Payment pop up click Ok
12. An error is displayed (see attached screenshot)
13. Repeat steps 8 to 11. Now the error does not happen and the expected success message is shown.
Revision 2012-03-05 13:30 by gorkaion
Description When creating a new Payment Out for a Purchase Order, an error is popped out. This error does not happen always manually but the smoke tests found it in every run. See steps.


The openbravo log shows the following exception:

2012-02-28 13:48:14,815 [ajp-8009-2] ERROR org.openbravo.advpaymentmngt.ad_actionbutton.AddOrderOrInvoice - Error parsing received GLItems JSON A
org.codehaus.jettison.json.JSONException: A JSONArray text must start with '[' at character 0 of
        at org.codehaus.jettison.json.JSONTokener.syntaxError(JSONTokener.java:439)
        at org.codehaus.jettison.json.JSONArray.<init>(JSONArray.java:98)
        at org.codehaus.jettison.json.JSONArray.<init>(JSONArray.java:137)
        at org.openbravo.advpaymentmngt.ad_actionbutton.AddOrderOrInvoice.doPost(AddOrderOrInvoice.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
        at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:422)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java
        at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
        at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:7
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
        at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.j
        at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
        at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.jav
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
        at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:42
        at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(Ajp
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:15
        at java.lang.Thread.run(Thread.java:619)


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker