Re: Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread Deyan Tsvetanov
Hi rhh, this looks like a different issue. It is a memory leak and imho has nothing to do with the synchronized TransactionUtil.begin() and commit() methods. First you have to check out the max heap memory set for JBoss. Look for an option -Xmx256m. Increase it to 1024m. If the test still

Re: Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread rrhati2010
Thanks for the findings and suggestionseven I am facing the same problem deploying in Jboss4.2 and tested with Jmeter for it's performance. Everytime I start putting load on server it gets me Error: OutofMemory or OutofSwapSpace or Not able to create a new native thread even though there is e

Re: Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread Deyan Tsvetanov
I take my words back about the workaround. It's much more complicated. On Tue, 2010-06-01 at 09:23 +0300, Deyan Tsvetanov wrote: > Hi guys, > > removing synchronized from begin( int timeout) will cause issues. > The problematic code is the following: > (starting from line 180 in TransactionU

Re: Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread Deyan Tsvetanov
Hi guys, removing synchronized from begin( int timeout) will cause issues. The problematic code is the following: (starting from line 180 in TransactionUtil.java - trunk ) // reset the transaction stamps, just in case... clearTransactionStamps(); // initialize the start stamp g

Re: session clearing on each click of ofbiz application

2010-05-31 Thread prasanthi_ofbiz
Hi BJ, Attaching the same logger file in different format because i don't think it will open Regards Prasanthi http://ofbiz.135035.n4.nabble.com/file/n2238065/ofbiz_log.doc ofbiz_log.doc -- View this message in context: http://ofbiz.135035.n4.nabble.com/session-clearing-on-each-click-of-ofbiz

Re: session clearing on each click of ofbiz application

2010-05-31 Thread prasanthi_ofbiz
Dear BJ, Cash setup is nothing but LDAP authentication. Once the user is logged in we are authenticating the user through LDAP. In my environment apache server is in another location and application is in another System. I am also running the same application with out routing apache server then

Re: Form widget validation

2010-05-31 Thread Jacques Le Roux
Finally I put back your code Atul: safer indeed! Jacques From: "Atul Vani" Hello Varun, no wonder this code is simple and correct, just wanted to tell you that we do take some safety measures before writing such code, for example, before using $('foo') we should make sure if it even exists

Re: Form widget validation

2010-05-31 Thread Atul Vani
Hello Varun, no wonder this code is simple and correct, just wanted to tell you that we do take some safety measures before writing such code, for example, before using $('foo') we should make sure if it even exists or else the whole script won't load, we do that by if($('foo')){...} also, we

Re: Access Control

2010-05-31 Thread BJ Freeman
as a general statement you can set the security and action in the widget and ftls, mostly to control access to information you can also set it in the service, to limit processing. = BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation

Access Control

2010-05-31 Thread Rick_O
I am a newbie to the list so I will apologize in advance I have not quite figured out all of the documentation, so I am hoping someone can point me to where I can find information on setting up access control / role based security. I am trying to figure out the capabilities on limiting access bas

Re: Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread David E Jones
The theory that Martin mentioned is interesting, and quite possible. Have you tried removing the synchronized keyword from the begin method to see if it helps? That would just be to test the theory, and if that does turn out to be the bottleneck then the sensitive parts of the method should be

Re: Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread Karl Pitrich
Hi, I'm working with Martin on this project. We have commented the various cache options as described in the Wiki (and mailing list), EXPIRE TIME is 0 in all except for product.* when viewing /webtools/control/FindUtilCache Logging is disabled, as are several components. Also, we have disable

Re: Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread Jacques Le Roux
1st level of answer, did you set caches? https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide#ApacheOFBizTechnicalProductionSetupGuide-CacheSettings https://cwiki.apache.org/confluence/display/OFBADMIN/Scaling+and+Performance+Plan Jacques From: "Marti

Re: Form widget validation

2010-05-31 Thread Jacques Le Roux
Thanks Varun, I did not check but I replaced the 1st point by your tip Jacques From: "Varun Bhansaly" Hi, Step 1 could be simplified as new Validation('form-id'); Step 2 remains the same, Some tweaks are required while showing validation msgs for lookup widgets. Thanks, -- View thi

Performance issue: org.ofbiz.entity.transaction.TransactionUtil seems to be bottleneck

2010-05-31 Thread Martin Kreidenweis
Hi, we are currently evaluating Apache OFBiz for use in one of our projects. We expect a high load on our application. So we did a test with jMeter on the sample ecommerce application with 100 parallel sessions and in average 400 msec (randomized) wait time between requests. During profiling we

Re: Form widget validation

2010-05-31 Thread Varun Bhansaly
Hi, Step 1 could be simplified as new Validation('form-id'); Step 2 remains the same, Some tweaks are required while showing validation msgs for lookup widgets. Thanks, -- View this message in context: http://ofbiz.135035.n4.nabble.com/Form-widget-validation-tp2234816p2237617.html Sent

Re: Ofbiz as a EAR in JBoss422 app server

2010-05-31 Thread rrhati2010
Hi, Thanks for the link I deployed the way it said in the document, but still it refers to the Ofbiz home directory where Ofbiz is installed even though it's deployed as an EAR. --RRH -- View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-as-a-EAR-in-JBoss422-app-se

Re: Ofbiz as a EAR in JBoss422 app server

2010-05-31 Thread rrhati2010
Hi, Thanks for the link I deployed the way in said in the document, but still it referes to the Ofbiz home directory where Ofbiz is installed. --RRH -- View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-as-a-EAR-in-JBoss422-app-server-tp2234101p2236947.html Sent from th

Re: OFBiz on JBoss 5.1

2010-05-31 Thread rrhati2010
Hi, As per the document u have reffered u must have missed the step of refering to the Ofbiz home in the JVM parameters specified in the "run.bat" or "run.sh". Please provide: -Dofbiz.home="path of ofbiz installed directory" Ex: set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360

Re: session clearing on each click of ofbiz application

2010-05-31 Thread BJ Freeman
can you clarify what you mean by cash system. are you speaking of the pos system. I have many ofbiz running on the same server. and I use Apache front end and AJP connectors. I have no problems. so could you give more detail. = BJ Freeman http://bjfreeman.elance.com Stra

Re: StateList

2010-05-31 Thread Atul Vani
Hi R.S., When you will add the data mentioned and re-install the data (or you can also use webtools' import facility), the view entity will get populated automatically :) -- Thanks & Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Glo

Re: StateList

2010-05-31 Thread R. S.
Thank You Atul, I saw that the method "getAssociatedStateList()" doesn`t support German states and that is the reason I asked. The entries are already in the "dataGeoData_DE.xml" file. It seems that "getAssociatedStateList()" use the "GeoAssocAndGeoTo" View Entity and I don't know why the German

session clearing on each click of ofbiz application

2010-05-31 Thread prasanthi_ofbiz
Hi I have implemented cash system in ofbiz application where he OFBIZ server is accessed through apache server Thus certain port are changed as per the requirement to make it run on web server is done there. But problem is for each and every click inside the application the session was getting cle

Re: StateList

2010-05-31 Thread Atul Vani
Hi R.S., using this method "getAssociatedStateList()" should be appropriate from the "CommonWorkers.java" but seem like there's no supporting data of German States is present either. So, you will need to Edit ofbiz_trunk/framework/common/dataGeoData_DE.xml and add entries like below for each St

Re: Form widget validation

2010-05-31 Thread Atul Vani
Thanks Jacques :) -- Thanks & Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Jacques Le Roux wrote: Thanks Atul, Varun, Atul, I put you tip in FAQ with a link t

Re: Form widget validation

2010-05-31 Thread Jacques Le Roux
Thanks Atul, Varun, Atul, I put you tip in FAQ with a link to Varun's Jacques From: "Atul Vani" hi Varun, glad to know your problem's solved. and it sure is a nice document, thanks for sharing :) -- Thanks & Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.

StateList

2010-05-31 Thread R. S.
Hi, I changed the method "getStateList" in the file "CommonWorkers.java" from: EntityCondition condition = EntityCondition.makeCondition(EntityOperator.OR, EntityCondition.makeCondition("geoTypeId", "STATE"), EntityCondition.makeCondition("geoTypeId", "PROVINCE"),

Re: Preventing measure for XSS in OFBiz

2010-05-31 Thread Jacques Le Roux
https://issues.apache.org/jira/browse/OFBIZ-1525 Jacques From: "Pardeep Ruhil" Hi, I want to know what preventing measure are taken in OFBiz to prevent XSS (Cross Site Scripting) attack. What I have found currently, in regard to this is in OFBiz Checking and validating all input before process

Re: Problem occures in datepicker (date time calender) , which results in expansion in form.

2010-05-31 Thread Jacques Le Roux
Atul fixed it, I just reviewed, tested/checked and committed ;o) Jacques From: "soumya jyoti guru" Thank you Jacques for looking into the matter seriously and fixing the problem. Soumya On Fri, May 28, 2010 at 7:04 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: Atul fixed it,