Adrian Crum
2e4cb54075
Refactored JobPoller.java - the JobPoller instance is now a singleton.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374596 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 15:21:14 +00:00
Adrian Crum
7dc28a9f5d
Small change to GenericServiceJob - restore job state in the deQueue method so client code can keep trying to submit the job.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374588 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 14:28:13 +00:00
Jacopo Cappellato
dfd54dd328
Fixed some inconsistent use of Lucene Version (now the current Version is set as a static final field of SearchWorker); misc minor code cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374328 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 15:43:30 +00:00
Jacopo Cappellato
dc97189688
Minor code cleanup: removed unnecessary variable declaration.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374283 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 14:24:47 +00:00
Jacopo Cappellato
739defff37
Minor code cleanup: removed empty lines and reused a variable rather than getting it from a GenericValue.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374273 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 14:08:23 +00:00
Hans Bakker
655c38dd6e
adapt ant create component target for new security organization
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374160 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 06:45:07 +00:00
Erwan de Ferrieres
da60e4d9f4
Updating to latest nekohtml release 1.9.16
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1373435 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 14:44:31 +00:00
Adrian Crum
25c04f28af
Partially reverting rev 1372738. As Scott pointed out on the dev mailing list, the conditions requiring a cast are rare - rendering those optimizations ineffective.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1373239 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 07:08:57 +00:00
Sascha Rodekamp
b57852f763
Fix a bug on the new customer site. Some div's where only renamed in the HTML but not the JS code, the result was an error when using getElementById
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372764 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 08:17:14 +00:00
Sascha Rodekamp
1e0411fb47
Cleanup javascript jquery folder and update jquery references for the elrte editor
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372757 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 07:52:59 +00:00
Sascha Rodekamp
5b8548563a
Update jQuery to Version 1.8 and jQuery UI to Version 1.8.22
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372751 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 07:21:15 +00:00
Adrian Crum
afd4e8b3c0
Small GenericEntity optimization - remove instanceof checks in getXxx methods.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372738 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 06:02:58 +00:00
Adrian Crum
dd8760efd9
Updated JavaDocs project title.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372511 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:59:24 +00:00
Adrian Crum
85d2a421a0
Updated ofbiz-properties.xsd.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372510 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:58:31 +00:00
Adrian Crum
60352be253
Fix the .classpath file after recent Tomcat upgrade. Patch submitted by Leon - https://issues.apache.org/jira/browse/OFBIZ-5008 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372509 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:56:18 +00:00
Adrian Crum
f90c42db0f
Add the deQueue method to AbstractJob to solve a workflow build problem. Patch from Leon - https://issues.apache.org/jira/browse/OFBIZ-5007 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372501 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:41:32 +00:00
Adrian Crum
6fd584e207
Added Job Manager/Job Poller documentation to the service-config.xsd file. Hopefully this will help everyone understand the Job Scheduler behavior and what the settings do.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372088 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 13:17:17 +00:00
Adrian Crum
b3ea46d9a5
Changed JobPoller shutdown behavior - stop threads immediately and dequeue queued jobs.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371863 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:39:03 +00:00
Adrian Crum
a0e18a8d73
Removed unnecessary entity condition that I added earlier.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371862 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:36:58 +00:00
Adrian Crum
5e05a4df42
JobManager and PersistedServiceJob improvements - based on feedback from Scott.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371593 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 07:50:37 +00:00
Adrian Crum
d8f2291c51
Oops, I forgot to wrap the purge find operation in a transaction.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371163 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:11:00 +00:00
Adrian Crum
7d7a4017d6
JobManager improvement: Have the JobManager handle purging old jobs - instead of the purgeOldJobs service. Old jobs will be purged when the job queue is idle.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371140 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 10:15:59 +00:00
Adrian Crum
8d6aaecc85
JobManager bug fix - ensure consistent return value in poll method. Also some log message cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371119 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 09:26:40 +00:00
Hans Bakker
d2027b4c3b
spelling error in r1369948
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371044 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 06:08:13 +00:00
Adrian Crum
0375909e6b
Fixed the Job Scheduler so jobs are not lost during heavy server load.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370566 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 22:10:27 +00:00
Adrian Crum
3627d8bbc8
More work on the Job Scheduler:
...
1. Gave the job queue a fixed size so the job poller can't create an out-of-memory condition.
2. Changed min/max thread settings to more conservative values.
3. Changed JobSandbox polling code to accept a limit argument to control the number of records retrieved. Also used ELI to limit memory use.
4. Improved JobManager reloadCrashedJobs method to recover queued jobs that were being missed previously.
At this stage the Job Scheduler has been fixed to not crash/saturate the server, but it can still lose jobs. That will be fixed in the next commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370437 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 19:11:06 +00:00
Adrian Crum
aea294945e
Added a warning comment to ResourceLoader.java. DOM object trees should not be kept in memory because they are big. Keep in mind the entire XML document is in the DOM tree - including comments, license headers, etc.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370162 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:47:41 +00:00
Adrian Crum
2b3cf6c431
Eliminated/moved some classes in the Job Scheduler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370157 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:02:03 +00:00
Sascha Rodekamp
6ffa178bca
js issue causes error when invalid dates are entered ( https://issues.apache.org/jira/browse/OFBIZ-4982 ). A patch from Christoph Neuroth: Reproduce: Enter "123" in a DateField. This will trigger a JS exception and the invalid value will be sent to the server on form submission, probably causing server-side exceptions in badly written backend code, resulting in really bad error messages for the user.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370123 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 05:51:10 +00:00
Erwan de Ferrieres
41c1dfbab2
Suppressing - in method names which are causing XSD validation to fail
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369948 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 19:41:14 +00:00
Jacques Le Roux
9b00fd0dce
renderLookupField macro comments improvement
...
Simple formatting (tabs to 2 spaces)
Fixes a bug which prevented to show an i18n "clear" text when layered lookups were used in read only mode from FTL templates
Fixes a bug which prevented to clear the description (at right of button) when layered lookups were used in read only mode
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369561 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:48:44 +00:00
Jacques Le Roux
e23033e569
Tiny ajaxAutoCompleter comment improvement
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369560 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:44:17 +00:00
Jacques Le Roux
5d358537a3
No functional change: simple formatting (tabs to 2 spaces)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369559 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:43:34 +00:00
Jacques Le Roux
13016fb3b8
Adds 2 new lookup fields in the FormWidgetExampleForms.xml file.
...
1) layered lookup std
2) read only layered lookup std
Changes the way the explanation are displayed, now using tooltips for an easier reading
Changes all explanation tooltips style to button-text for a better legibility
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369558 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:42:32 +00:00
Jacques Le Roux
9fd4ddb462
Closes "correct "javascript:void();" to "javascript:void(0);" to make it syntax valid" reported by Leon https://issues.apache.org/jira/browse/OFBIZ-4970
...
Firefox will throw syntax error if you call javascript void function without parameter.
jleroux: I did not reproduce with FF14 on XP (modern browsers correct by themselves) but I agree it's a better syntax. So I changed all where it was needed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369555 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:27:20 +00:00
Adrian Crum
b3fc79770b
Moved method used exclusively by PersistedServiceJob from JobManager to PersistedServiceJob. Also added some JavaDocs.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369543 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 09:43:59 +00:00
Adrian Crum
4de5aaf712
Refactored PersistedServiceJob.java so that it contains the GenericValue it represents. This improves throughput because the original code retrieved the JobSandbox entity value about 10 times for each job, and with this change the JobSandbox entity value is retrieved twice per job.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369536 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 08:01:29 +00:00
Adrian Crum
f4698eeca6
Updated Workflow component to compile with Job Scheduler changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369503 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:40:58 +00:00
Adrian Crum
a324ef7bb3
Some JavaDocs to help explain the Job behavior.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369491 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:17:02 +00:00
Adrian Crum
5779419ca3
Fixed a costly call to UtilValidate:
...
UtilValidate.isEmpty(Object) calls ObjectType.isEmpty(Object) - which performs a series of instanceof checks. Calling UtilValidate.isEmpty(String) avoids the expensive instanceof checks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369486 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:07:18 +00:00
Adrian Crum
55f2c7de7e
Fixed a bug in GenericServiceJob where the failed method would get called twice.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369485 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:06:24 +00:00
Adrian Crum
541679a972
Removed unnecessary Date object creation from GenericAsyncEngine.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369469 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 21:25:21 +00:00
Adrian Crum
6fdee332f5
Refactored Job implementations so they implement a state machine. This approach makes the code much simpler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369467 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 21:24:27 +00:00
Erwan de Ferrieres
6416aa064e
Removing non-existing nodes in simple-method
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369434 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 20:57:14 +00:00
Erwan de Ferrieres
c40c76c80c
using for each in testtools
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369430 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 20:34:25 +00:00
Erwan de Ferrieres
51c8310aae
Fix javadoc for PersistedServiceJob.java
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369409 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:54:05 +00:00
Erwan de Ferrieres
342c56d85c
correcting javadoc for DynamicViewEntity.java
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369406 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:47:26 +00:00
Erwan de Ferrieres
aa4a3b0730
Missed this one at rev 1369357
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369404 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:45:44 +00:00
Erwan de Ferrieres
7901b55e95
Fixing the javadoc for ServiceDispatcher.java
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369401 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:41:50 +00:00
Erwan de Ferrieres
ab4c36f651
Fixing the javadoc for CategoryWorker.java
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369399 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:40:22 +00:00