Commit Graph
560 Commits
Author SHA1 Message Date
Adam Heath 805dce79b8 FIX: I have no idea why an explicit <mkdir> is neeeded for build/rmi; in
all cases I could find, it was already auto-created.  It's only the
buildbot that is broken.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482125 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 22:30:25 +00:00
Adam Heath 69671f1fe7 FEATURE: Instead of placing the rmi jar into build/lib, but with a .raj
extension, place it into build/rmi, and let it keep the correct .jar
extension. This means you don't need to rename the jar when you copy it
to the remote java virtual machine, but just have to move it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482060 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:11 +00:00
Jacques Le Roux 6ed551a5de A patch from Shi Jinghai for "Remove warning message "No converter found, converting from org.ofbiz.service.mail.MimeMessageWrapper to java.lang.String" https://issues.apache.org/jira/browse/OFBIZ-5180
When sending emails, there are warning messages in log:
2012-10-09 16:07:20,100 (default-invoker-Thread-9) [ Converters.java:102:WARN ] *** No converter found, converting from org.ofbiz.service.mail.MimeMessageWrapper to java.lang.String. Please report this message to the developer community so a suitable converter can be created. ***
2012-10-09 16:07:20,101 (default-invoker-Thread-9) [ ObjectType.java:540:WARN ] No special conversion available for org.ofbiz.service.mail.MimeMessageWrapper to String, returning object.toString().

I added a MimeMessageToString converter in MimeMessageWrapper.java to resolve this problem.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1468780 13f79535-47bb-0310-9956-ffa450edef68
2013-04-17 07:23:03 +00:00
Jacopo Cappellato 012c598c2f Moved Axis1 jars to specialpurpose/birt because it is now the only component that still uses these old jars while the framework runs on Axis2.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465252 13f79535-47bb-0310-9956-ffa450edef68
2013-04-06 14:35:05 +00:00
Jacques Le Roux 1b6a4204e6 Adds again the possibility to use the previous way about detecting slow services in logs.
Now it uses properties for the 2 Thresholds
0 to get the same behaviour as Adrian's last commit
1000 to get almost the same behaviour than before Adrian's last commit. But with no distinctions with slow and very slow services and a higher level for slow services. This value makes sense for instance for web services (SOAP, RMI, REST) served by external systems.
The properties can be used to set as desired. I believe it's no confusing OOTB and still flexible enough.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1465223 13f79535-47bb-0310-9956-ffa450edef68
2013-04-06 10:58:20 +00:00
Adrian Crum 2d651e0f6d Changed some information-only logging from WARN to INFO.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1464001 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 13:29:44 +00:00
Adrian Crum fa4e931206 Log message cleanup in ServiceDispatcher.java. Removed confusing text about services taking too long.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1463863 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 07:57:24 +00:00
Ashish Vijaywargiya e5c7297a41 Adding Method to retrieve form-label from model parameter object in freemarker. Thanks Ankush for providing method for this missing functionality.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1462265 13f79535-47bb-0310-9956-ffa450edef68
2013-03-28 19:15:50 +00:00
Ashish Vijaywargiya 8c62ee7787 Bug Fix: Added check to avoid NPE if result-to-result is true.
If we set result-to-result true then for some cases actionResult may be empty so it throws an NPE action while executing eca action. Thanks Deepak.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1455407 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 04:51:28 +00:00
Jacques Le Roux 830f9f7b91 A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137
Translated missing zh labels for projectmgr, scrum, service, webpos and webtools components. These are the last 5 components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1448350 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 18:50:33 +00:00
Sascha Rodekamp 7b0fd3e806 In an exception case the ServiceUtils.setServiceFields method should throw an exception and don't hide it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447603 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 07:18:10 +00:00
Sascha Rodekamp e8ff62f756 Add a small method to the ServiceUtil Class which checks all incoming service attributes and look for fields with the same name in the incoming map and copy those onto the outgoing map. Also includes a userLogin if service requires one.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447246 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 13:26:00 +00:00
Jacques Le Roux b14d7c1ab9 Those are not needed and even counter productive now, see discussion on dev ML http://markmail.org/message/mqe6c6qm2rofa4gg
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1426605 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 18:32:23 +00:00
Scott Gray 5df3e3f70b Remove a bunch of unused imports, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418646 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:03:52 +00:00
Jacques Le Roux ecd2de6362 A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
Completed Japanese translation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1412997 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 17:35:16 +00:00
Jacques Le Roux f7b662bc46 A patch from Nicolas Malin for "Entity-Auto Engine : manage [create|lastModified]Date field" https://issues.apache.org/jira/browse/OFBIZ-5010
When a entity have fields createDate, lastModifiedDate, createByUserLogin and updateByUserLogin, the entity-auto engine set them.

Also makes all entities that have one of fields [create|lastModified][Date|ByUserLogin] to be consistent and have four fields

Impacted entityies:

    [Quote|Order|Return]Adjustment
    OrderPaymentPreference
    AcctgTrans
    GlReconciliation
    ValueLinkKey


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407578 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 18:26:19 +00:00
Jacques Le Roux b46c7a2c06 A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
Got an issue merging GeoData_JP.xml with Subclipse, using Toirtoise solved it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1403746 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 15:48:42 +00:00
Jacques Le Roux 934cede069 Fix an issue with WSDL and nillable attribute (can be only in 1st level element)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1384251 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 09:37:58 +00:00
Jacques Le Roux 9dcd3564e3 Moves the workflow component to attic
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381884 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 05:39:26 +00:00
Adrian Crum e31fc1c801 Some Job Scheduler related notes/warnings - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374736 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 11:33:07 +00:00
Adrian Crum c8ab3eb95d Fixed a bug in JobPoller.java where the poller thread would start before all of the components were loaded - causing exceptions to be thrown and unpredictable behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374725 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 10:36:46 +00:00
Adrian Crum aaf10dce39 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374619 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:48:55 +00:00
Adrian Crum e130531db9 Moved JobInvoker.java code to AbstractJob.java, removed JobInvoker.java. Also worked on the Job API - the meaning of "runtime" was a little muddled, so I made "runtime" mean job execution elapsed time, and added a getStartTime method to the Job interface. This should make the distinction clearer.
This commit completes the Job Scheduler overhaul.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374618 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:43:03 +00:00
Adrian Crum 6d132e8bd7 A small bug fix in JobManager.java - re-initialize a reused variable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374603 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 16:05:01 +00:00
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
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
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 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
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 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 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 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 a41366e95f as suggested by Adrian, replacing @see by @Override in commit 1367751
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369357 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:15:36 +00:00
Adrian Crum 58aaab37cc A bunch of fixes for JobManager and JobPoller:
1. Fixed some concurrency issues during object construction.
2. Cleaned up some feature-envy code.
3. Added code for orderly startup and shutdown.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369298 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 12:00:07 +00:00
Adrian Crum f89887fe40 JobManager.java and JobPoller.java code formatting - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369291 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 08:57:19 +00:00
Erwan de Ferrieres 6f363f4480 updating javadoc for Container#init
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1367751 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 20:25:26 +00:00