Commit Graph
27737 Commits
Author SHA1 Message Date
Erwan de Ferrieres 1c15d2ab3e correcting an error with my search and replace at rev 1369357
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369360 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:23:21 +00:00
Erwan de Ferrieres 26c314fa2b Fixing the javadoc for ScrumServices.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369358 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:19:46 +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
Hans Bakker 9f63d1256f fix the grouporder tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1368889 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 11:14:03 +00:00
Hans Bakker bb74cd18fa improve the groupbuying function by properly return sales numbers when cancelling an order.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1368822 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 07:52:28 +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
Erwan de Ferrieres ebad9a93df missing ending } in javadoc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1367750 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 20:24:42 +00:00
Jacopo Cappellato e8a43a2101 Upgrade of embedded Tomcat from 7.0.28 to 7.0.29
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1367029 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 08:30:14 +00:00
Jacques Le Roux b189d4e539 This closes "Price rule add not correctly" https://issues.apache.org/jira/browse/OFBIZ-4978
steps:
1.login and goto price rule tab
2.add a rule
3.add a condition for the rule
The issue is, the added condition is not my selection. I add condition "Party is Fanse Fan", then add, after success, in the detail list, the last party of the select box be shown on the condition , not the one which I choosed.

jleroux:
* The problem reported by Fanse is now corrected
* Fixes an issue when updating a condition (check is now done on input types and not only on value as in creation where it's not a problem, the copy and adaptation from creation to update service implementation was the reason of this bug

I'm in the process of adding some more check for condition creation, but will do that later (ne feature not only fixes as here)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1366960 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 21:49:52 +00:00
Jacques Le Roux d0c3271d1d A patch from Olivier Heintz "Small french translation correction" https://issues.apache.org/jira/browse/OFBIZ-4974
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1366698 13f79535-47bb-0310-9956-ffa450edef68
2012-07-28 14:58:32 +00:00
Jacques Le Roux 3c90c4204b While working on OFBIZ-4978, I changed for getDependentDropdownValues.js to load values unselected instead of loading them all selected one by one, then only the last being selected. This was actually a bug and I already wondered why the list had the last option selected by default instead of the 1st. This fixes this last aspect.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1366660 13f79535-47bb-0310-9956-ffa450edef68
2012-07-28 12:46:22 +00:00
Jacopo Cappellato 12a1c7dbae Improved an old comment based on feedback from Jacques Le Roux
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1366294 13f79535-47bb-0310-9956-ffa450edef68
2012-07-27 06:31:36 +00:00
Jacopo Cappellato b0ec84fa8d Fixes to groovy script required after the recent refactoring of service code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1366028 13f79535-47bb-0310-9956-ffa450edef68
2012-07-26 14:53:40 +00:00
Jacopo Cappellato ea6cbf8ba9 Made locationMap thread safe using static initialization and immutability.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1365895 13f79535-47bb-0310-9956-ffa450edef68
2012-07-26 07:03:46 +00:00
Jacopo Cappellato 0abd7c2f6d Moved some (commented out) container definitions to the components they belong to.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1365889 13f79535-47bb-0310-9956-ffa450edef68
2012-07-26 05:51:54 +00:00
Jacopo Cappellato bf1241a4b7 Refactored artifact info classes to run some of the long running tasks in parallel threads by using the GLOBAL_EXECUTOR thread pool. Now it can be significantly faster (in a system with a quad-core processor it takes less than half time).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1365670 13f79535-47bb-0310-9956-ffa450edef68
2012-07-25 17:16:56 +00:00
Jacopo Cappellato ec8a3624a7 Small change to skip the annoying thread sleep when no JMS configuration is found.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1365038 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 13:27:30 +00:00
Jacopo Cappellato 7a45106e87 Some minor cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364998 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 12:10:09 +00:00
Jacopo Cappellato fdacdb49c4 Refactored all JMS service related code to not depend on the ServiceDispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364990 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 11:47:12 +00:00
Adrian Crum bdc878b98e Now that client code no longer references the GenericDispatcher class, we can hide it in the factory.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364982 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 11:30:12 +00:00
Jacopo Cappellato bf7606987c changed some comments/docs to refer to LocalDispatcher instead of ServiceDispatcher
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364980 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 11:25:08 +00:00
Adrian Crum c1c4af837a Code cleanups/fixups and JavaDocs for the new service component classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364972 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 10:46:08 +00:00
Jacopo Cappellato 955ae9eee1 A rather important refactoring of service related code:
* new factory interface for LocalDispatcher objects
* new factory implementation of GenericDispatcher
* new ServiceContainer container that initializes the factory (based on a configuration parameter)
* moved the getLocalDispatcher method out of GenericDispatcher and refactored (in a thread safe way) into ServiceContainer/GenericDispatcherFactory
* ServiceContainer also maintains the cache of LocalDispatchers that was managed by GenericDispatcher
* added code to ServiceContainer to deregister LocalDispatchers at shutdown: this finally fix the current code that was broken because the thread pool maintained by the JobPoller was never closed because of an issue with LocalDispatchers not being deregistered when not started by the ContextFilter
* change all code to call the ServiceContainer rather than GenericContainer to get a LocalDispatcher: now the implementation is no more directly referenced by calling code


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364952 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 09:16:26 +00:00
Hans Bakker a97af418b5 make the websiteId available in the tellafriend.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364942 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 09:00:06 +00:00
David E. Jones 3ec005ae79 Changed so that cus-obj element value is not in a CDATA block; it is already hex encoded so does not need to be in a CDATA block, and in entity exports of the RuntimeData entity it ends up being causing a nested CDATA block, which is not allowed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364822 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 22:10:29 +00:00
Jacopo Cappellato 2bff493b7a Removed a few useless/incorrect references to the ServiceDispatcher class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364615 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 12:51:12 +00:00
Jacopo Cappellato 7dcbf47605 Refactored DispatchContext class to be thread safe thru immutability; resorted its methods to improve the readability; added some comments to better describe it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364564 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 10:15:13 +00:00
Jacopo Cappellato 788647f571 Further cleanups to the DispatchContext class:
* service definitions are created automatically by the setDispatcher method in order to guarantee the validity of the object status
* removed get/setAttributes (and supporting field) that were an old and not used feature
* made the "name" field final (small step in the direction of improving the thread safety of the class, there is still some work to do here)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364512 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 06:35:03 +00:00
Jacopo Cappellato 85ee9e142b Small change to javadoc: it is not a good practice to refer to a specific implementation class in an interface method description
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364511 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 06:30:11 +00:00
Jacopo Cappellato bf8f4a1308 Removed invalid references to non existing resources.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364247 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 09:54:02 +00:00
Jacopo Cappellato e3ad85e49f First pass of a rather relevant cleanup of service related code:
* removed the support for serviceReaderUrls for local services specified in the WEB-INF folder; this feature was not used in years and OFBiz has better mechanisms to define services in components;
* as a consequence of the previous point, a lot of code has been cleaned in the DispatchContext class; in this refactoring, I have fixed some non thread safe code (but this is only a first step and this class needs to be enhanced under this aspect)
* greatly simplified the static instance creator and constructors of ServiceDispatcher and  GenericDispatcher to reflect the changes in DispatchContext but also removed old unused code, simplified code for readability, added some comments to better document it


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364222 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 07:33:48 +00:00
Jacopo Cappellato 7a0c6ef6ac Removed invalid links and controller entries (referencing non existing resources).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364220 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 07:16:10 +00:00
Jacopo Cappellato 20f08138b9 Fix for wrong path name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364219 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 07:06:15 +00:00
Jacopo Cappellato 66c2fac9d4 Removed duplicated service implementations (there were 2 copies in the same file).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364218 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 07:03:34 +00:00
Jacopo Cappellato c6ef77ac59 Removed the old and unused "serviceReaderUrls" context-param from all the web applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364217 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 06:33:26 +00:00
Jacopo Cappellato 5160656e26 Removed duplicated service implementations (there were 2 copies in the same file).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364216 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 06:26:31 +00:00
Jacques Le Roux bc9c2c33f4 A patch from Sumit Pandit for "Order view page - picking slip is throwing exception." https://issues.apache.org/jira/browse/OFBIZ-2810
At https://localhost:8443/ordermgr/control/orderview?orderId=DEMO10091 , In shipping panel at shipment row when click on "Packing Slip" it is throwing an exception in rendering the PDF.

Vikas: This is related to the demo order data for purchase order which is not set up correctly. For more information please refer to OFBIZ-1782
Sumit: Found an issue with demo data.
How to verify -
    Go to order detail page -
    https://localhost:8443/ordermgr/control/orderview?orderId=DEMO10091

    Then in shipment information section click on "Packing Slip" -
    https://localhost:8443/facility/control/PackingSlip.pdf?shipmentId=9999&externalLoginKey=EL564429820623

    Issue cause -
    Missing created date in Data.

    Resolution -
    Find patch in attachment.

jleroux: I crossed this recently and thought that the button should not show until packed. But it was rather coded to show "ERROR: No packages found for this shipment" in the PDF. I think it would be better to not show the button, but it's ok with me.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364052 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 09:06:03 +00:00
Jacques Le Roux e3d7c51870 A patch from Leon for "IndexOutOfBoundsException thrown by ServerHitBin.countHit" https://issues.apache.org/jira/browse/OFBIZ-4969
This exception thrown out when initiated a "json" request.

    229156224 [http-bio-0.0.0.0-443-exec-6138] ERROR org.ofbiz.webapp.control.ControlServlet -
    ---- runtime exception report --------------------------------------------------
    Error in request handler:
    Exception: java.lang.IndexOutOfBoundsException
    Message: index: 0
    ---- stack trace ---------------------------------------------------------------
    java.lang.IndexOutOfBoundsException: index: 0
    javolution.util.FastList.add(FastList.java:228)
    org.ofbiz.webapp.stats.ServerHitBin.countHit(ServerHitBin.java:210)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364046 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 08:43:19 +00:00
Jacopo Cappellato 519465c113 Made constructor private according to the design of this class (instances are created using the static getModelReader that also takes care of managing the cache).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364045 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 08:39:11 +00:00
Jacopo Cappellato 6d0ba853f5 removed unused field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364044 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 08:34:17 +00:00
Jacopo Cappellato e283d923ab Added a new special error string returned by the serveObjectData event when the output stream has been already used; this is associated to a no-response because we will not be able to return the error page; this used to cause an error in the logs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363786 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 14:03:34 +00:00
Jacopo Cappellato 0ab73e004f Fixed a comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363701 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 09:58:57 +00:00
Jacopo Cappellato bfbf80afdb Small enhancements to log messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363699 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 09:58:08 +00:00
Jacopo Cappellato 7d473126d3 removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363698 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 09:57:13 +00:00
Jacques Le Roux 368c3d43a2 Fixes generic warning
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363690 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 09:10:30 +00:00
Jacques Le Roux c46b891ca8 Removes dead code, organize imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363689 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 09:09:38 +00:00
Jacopo Cappellato 59aed51931 Removed some Geronimo/RMI specific code that was causing issues during system shutdown (several attempts to shutdown the RMIContainer); the code had also some tweaks that made the classes less readable; the static containerMap in ContainerLoader was breaking thread safety because the put operations were not atomic with the related add operations of the loadedContainers list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363656 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 05:41:27 +00:00
Jacopo Cappellato 0b2643c740 Small improvement: better log messages during system shutdown.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1363655 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 05:33:35 +00:00