(OFBIZ-9531)
Added missing import for GenericEntityException and defined customer and items list at right place to make it available.
Thanks Pallavi Goyal for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1802965 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9494)
Updated the URL path and instead of changing it at all the places introduced a variable. So in future same variable value can be changed instead of changing its redundant occurrences.
Thanks Aditya Sharma for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1802464 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9375)
This fixes and completes r1800457
I put a wrong path in solrconfig.properties for solr.log.dir
(/runtime/indexes/solr instead of runtime/logs/solr).
This also adds the log level.
Not sure this has a real impact on Solr logging (from the
Solr admin UI does not seem to work.) But at least we no longer have this
annoying message. People interested in Solr logging will dig in...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1800484 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9375)
The tip suggested by Jinghai I committed at r1795781 did not work.
This reverts r1795781 and offers a better solid solution.
Byproduct: fixes imports and tabs in OFBizSolrContextFilter.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1800457 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7265)
At r1794771 Jinghai committed for OFBIZ-8316 with this comment
Updated Solr from 6.2.1 to 6.5.1...[snip]...
But unfortunately he reintroduced the path for indexes to
/runtime/indexes/products which breaks OFBIZ-7265 on this aspect where I then
set it to runtime/indexes/solr to not confuse with Lucene index
I have decide to make things even more clear by using now
runtime/indexes/solr/products
I hope nobody will break it again, even if it has no functional impact.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1800453 13f79535-47bb-0310-9956-ffa450edef68
plugins
================================================================================
While checking there were no other cases like in OFBIZ-9432
(missing path to class), to be consistent I removed the trailing semicolons in
groovy scripts and made few formatting
================================================================================
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1800450 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9439)
The data is missing some content associations and the test code is not
reflecting the new data, will fix this. This completes r1800322.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1800376 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9439)
The Lucene test data references to the ownerContentId "CNTGIZMOS" which is not
defined in the lucene demo data. It was instead defined in the ecommerce demo
data in the file DemoWebsitePublishPointData.xml. The data is rewritten so that
it is usable for Lucene and does not interfere with other data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1800322 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9432)
Steps to reproduce the error:
Add producs to cart (i.e. 2 x RoundGizmo)
-> [Quick Checkout]
-> Checkout Without Login: Quick Checkout
-> Basic Information: fill in required fields
-> Continue
Error: unable to resolve class CartItemModifyException
jleroux: Groovy needs the complete path to CartItemModifyException
Found the same in CustomerEvents.xml
Thanks: Daniel Coric for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1799860 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9432)
Steps to reproduce the error:
Add producs to cart (i.e. 2 x RoundGizmo)
-> [Quick Checkout]
-> Checkout Without Login: Quick Checkout
-> Basic Information: fill in required fields
-> Continue
Error: unable to resolve class CartItemModifyException
jleroux: Groovy needs the complete path to CartItemModifyException
There are 2 cases, I have also removed the trailing semicolons
Thanks: Daniel Coric for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1799859 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9383)
The BIRT demo data for flexible reports depends on the Example entity from the
Example plugin.
We should either provide BIRT's own example data with example reports OR
setup a gradle dependency on the example plugin so that everything is in place.
jleroux: I did not like to duplicate the example data in birt or an alike
solution.
So I put a gradle dependency on the example plugin.
If the example plugin misses the birt component can't build.
I put some comments to explain the possible issue and its solution out of
demonstration.
Thanks: Michael Brohl for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1799699 13f79535-47bb-0310-9956-ffa450edef68
Scrum Groovy files
(OFBIZ-9389)
This is an improvement only because no cases were reported. But obviously in
case of unlucky exception after the call to the performFind service, and before
it's closed, the EntityListIterator remains in memory.
The solution is to use a try-catch-finally block because Groovy has not
try-with-ressources.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1797788 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9385)
This is an improvement only because no cases were reported. But obviously in
case of unlucky exception after the EntityListIterator creation and before it's
closed the EntityListIterator remains in memory.
It should be closed in EntityListIterator.finalize() but the less happens there
the better.
The solution is to use try-with-ressources
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1797073 13f79535-47bb-0310-9956-ffa450edef68
with "id", "id-long" and "id-vlong" respectively which are primary keys for plugin components.
(OFBIZ-9351)
Thanks Aditya Sharma for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1796380 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9375)
I noticed this error in trunk demo error.log but could not reproduce locally
(Windows)
Jinghai suggested the fix committed, Taher mentioned it should be in plugins
Thanks: Jinghai and Taher
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1795781 13f79535-47bb-0310-9956-ffa450edef68
I found an inconsistency in the code for string comparison statusId.equals("PRUN_COMPLETED") whereas it should be written as "PRUN_COMPLETED".equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.
Thanks Devanshu Vyas for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1795344 13f79535-47bb-0310-9956-ffa450edef68
OFBIZ-8316
Updated Solr from 6.2.1 to 6.5.1 and the point fields generated by Lucene are ok now for Solr component.
The 'original UI' link is commented in admin.html and the relative files under solr/webapp/solr/tpl are all removed.
Thanks: Cao Pengan for the patch and Jacques, Michael for the comments and reviews.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794771 13f79535-47bb-0310-9956-ffa450edef68
OFBIZ-8316
Updated Lucene from 6.2.1 to 6.5.1 and the point fields generated by Lucene are ok now for Solr component.
Thanks: Cao Pengan for the patch and Jacques, Michael for the comments and reviews.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794770 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7265)
In my last commit (r1792257) I did not use the right location.
It's now in runtime\indexes\solr which is the obviously right place in OFBiz!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794132 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9322)
This is related to a commit in ofbiz-framework r1792866 in which data
that is removed in here is added to the framework. There is one modification
to the DemoPurchasing.xml file in which we added a UserLoginSecurityGroup which
is moved from DemoOrderPeopleData.xml because it has dependencies on security
data in ecommerce. Other than that, all data is simply deleted.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1792867 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7265)
Problem:
I found this message in error.log
xer_default_products
DocumentIndexer
E
Could not obtain Lock on lucene index Lock held by this virtual machine:
C:\projectASF-Mars\ofbiz\runtime\indexes\products\write.lock
Investigation:
I am able to reproduce this on my dev machine.
Here is the steps to regenerate it:
1. Go to https://localhost:8443/content/control/AdminIndex
2. Click on Index Products button.
Solution:
As per my analysis, the reason of error is write lock on lucene indexes
(created by lucene indexing process in lucene component) by Solr.
Have a look on specialpurpose/solr/home/solrdefault/conf/solrconfig.xml line:
<dataDir>${solr.data.dir:runtime/indexes}</dataDir>
Should point to:
<dataDir>${solr.data.dir:specialpurpose/solr/home/solrdefault/runtime/indexes/}
</dataDir>
Solr currently pointing to lucene indexes and creating a lock on it.
We can't index products anymore using lucene indexing as it has lock from Solr.
So currently all the search results we can see on Solr Search
https://localhost:8443/solr/#/solrdefault/query
is lucene indexed results.
We have not created any indexes using Solr itself. Thanks
Thanks: Amardeep Singh Jhajj who did all the work
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1791625 13f79535-47bb-0310-9956-ffa450edef68