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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035835
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2017-04-25 16:222017-05-29 17:43
ReporterJONHMView Statuspublic 
Assigned Toinigosanchez 
PriorityhighResolutionfixedFixed in Version3.0PR17Q3
StatusclosedFix in branchFixed in SCM revision33c6f5b78fd8
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0035835: The scheduler fails to load some scheduled processes when an incorrect configuration should be done

DescriptionThe process request window allows to save incorrect configurations. When a process with incorrect scheduled configuration is launched an error is thrown.
Steps To Reproduce- As F&B Admin
1) Open [Process Request] window
2) Edit 'Costing Background Process' (which is already scheduled) setting its frequency as "Monthly" let the 'Day in Month' field empty and save the record. (Incorrect configuration is allowed)
3) Unschedule Process and then Reschedule Process. An error is displayed: RESCHED_ERROR For input string: "". In the console you can see:

ERROR org.openbravo.base.OBSchedulerInitializerListener - Quartz Scheduler failed to initialize: java.lang.NumberFormatException: For input string: ""
java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:592)
...
Proposed SolutionAdded into ad_process_request_trg trigger the conditions to avoid invalid configurations for the process request.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0035840 closedalostale can't save record after failed save in tabs with a time reference 
related to defect 0035842 closedinigosanchez process scheduling data can be set in an inconsistent state 

-  Notes
(0096182)
alostale (manager)
2017-04-26 09:01

This is due to an incorrect configuration for the process request. There is already a trigger preventing some invalid configurations to be saved, this trigger should be extended to cover this case, and re-checked for more invalid cases if they exist.
(0096573)
hgbot (developer)
2017-05-13 07:55

Repository: erp/devel/pi
Changeset: 33c6f5b78fd885848401360a8852dbff5b4a8cc3
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Sat May 13 07:54:26 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/33c6f5b78fd885848401360a8852dbff5b4a8cc3 [^]

Fixed issue 35835: Avoid invalid configurations for the process request.

The problem was the scheduler fails to load some scheduled processes when an incorrect
configuration should be done.

There is already a trigger preventing some invalid configurations to be saved. This
trigger has be extended to cover this case and others.

---
M src-db/database/model/triggers/AD_PROCESS_REQUEST_TRG.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0096589)
alostale (manager)
2017-05-15 12:53

code reviewed + tested
(0096964)
hudsonbot (developer)
2017-05-29 17:43

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1ee70113bdc4 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2017-04-25 16:22 JONHM New Issue
2017-04-25 16:22 JONHM Assigned To => platform
2017-04-25 16:22 JONHM Modules => Core
2017-04-25 16:22 JONHM Regression date => 2017-05-16
2017-04-25 16:22 JONHM Triggers an Emergency Pack => No
2017-04-26 08:35 alostale Relationship added related to 0035840
2017-04-26 09:01 alostale Note Added: 0096182
2017-04-26 09:01 alostale Status new => acknowledged
2017-04-26 09:39 alostale Relationship added related to 0035842
2017-05-08 12:29 maite Resolution time => 1494885600
2017-05-08 12:29 maite Regression date 2017-05-16 =>
2017-05-10 13:11 inigosanchez Status acknowledged => scheduled
2017-05-10 13:11 inigosanchez Assigned To platform => inigosanchez
2017-05-10 14:03 inigosanchez Summary The scheduler fails to load some scheduled processes after tomcat restart => The scheduler fails to load some scheduled processes when an incorrect configuration should be done
2017-05-10 14:03 inigosanchez Description Updated View Revisions
2017-05-10 14:03 inigosanchez Steps to Reproduce Updated View Revisions
2017-05-10 14:03 inigosanchez Proposed Solution updated
2017-05-13 07:55 hgbot Checkin
2017-05-13 07:55 hgbot Note Added: 0096573
2017-05-13 07:55 hgbot Status scheduled => resolved
2017-05-13 07:55 hgbot Resolution open => fixed
2017-05-13 07:55 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/33c6f5b78fd885848401360a8852dbff5b4a8cc3 [^]
2017-05-13 07:55 inigosanchez Review Assigned To => alostale
2017-05-15 12:53 alostale Note Added: 0096589
2017-05-15 12:53 alostale Status resolved => closed
2017-05-15 12:53 alostale Fixed in Version => 3.0PR17Q3
2017-05-29 17:43 hudsonbot Checkin
2017-05-29 17:43 hudsonbot Note Added: 0096964


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker