[appfuse-user] Profiling appfuse apps

2009-09-23 Thread Magnús Skúlason
Hi, I would like to know if anyone has used a profiler with an appfuse app, that is to investigate possible memory and resource leaks. If so it would be great to get some pointers on how that is best/simplest done. Would I be best of by simply deploying the .war on a tomcat along with some profil

Re: [appfuse-user] Profiling appfuse apps

2009-09-23 Thread Matt Raible
In the past, I've used WAPT (http://www.loadtestingtool.com/) and JProfiler to detect memory leaks. WAPT works well in that in can simulate a lot of concurrent users. JMeter, YourKit and BrowserMob are other good tools to facilitate this. Matt 2009/9/23 Magnús Skúlason > Hi, > > I would like to

Re: [appfuse-user] Problem With Json using Struts 2.1.6

2009-09-23 Thread Matt Raible
Do you see any type of error in your logs (server-side or client-side)? On Tue, Sep 22, 2009 at 5:41 PM, oskarher wrote: > > I'm trying to do work the autocompleter tag (sx) in Struts 2.1.6 > It works fine, but i can't populate the autocompleter with a jsonList. > I don't what is the problem. >

Re: [appfuse-user] Profiling appfuse apps

2009-09-23 Thread ramzi khlil
Hi, I'm investigating the memory leak that's causing OutOfMemoryException PermGen. I'm using jhat. Ramzi On Wed, Sep 23, 2009 at 10:34 AM, Matt Raible wrote: > In the past, I've used WAPT (http://www.loadtestingtool.com/) and > JProfiler to detect memory leaks. WAPT works well in that in can si

Re: [appfuse-user] Profiling appfuse apps

2009-09-23 Thread Matt Raible
It's not so much a memory leak as it is a problem that happens when you restart your application several times. If you google around for this issue, I believe it's caused by Hibernate internally, but I'm not certain. Matt On Wed, Sep 23, 2009 at 10:50 AM, ramzi khlil wrote: > Hi, > > I'm investi

Re: [appfuse-user] Profiling appfuse apps

2009-09-23 Thread ramzi khlil
Matt, Can you give us more insights ? Which class in hibernate that causes this problem ? Ramzi On Wed, Sep 23, 2009 at 1:22 PM, Matt Raible wrote: > It's not so much a memory leak as it is a problem that happens when you > restart your application several times. If you google around for this

Re: [appfuse-user] Profiling appfuse apps

2009-09-23 Thread Matt Raible
I'm not sure which class. In my experience, this is a development-only issue that happens about once an hour for me. If you're experience it more, you're probably restarting too much and should write more tests or use JRebel. ;-) I have experienced it in production and wrote about my story on my b

Re: [appfuse-user] Problem With Json using Struts 2.1.6

2009-09-23 Thread Oscar Rodriguez
No, i don't see eny error. Just drop down shows 3 elements (Message, Type, Number). Which are the logs? Console only or Are there log files too? Thanks Matt! - Original Message - From: Matt Raible To: users@appfuse.dev.java.net Sent: Wednesday, September 23, 2009 12:37 PM Sub

Re: [appfuse-user] Problem With Json using Struts 2.1.6

2009-09-23 Thread Matt Raible
Console is on the server-side, Tools -> Error Console in Firefox to see if there's any JavaScript errors. Without errors, it's very difficult to help. ;-) On Wed, Sep 23, 2009 at 12:00 PM, Oscar Rodriguez wrote: > No, i don't see eny error. Just drop down shows 3 elements (Message, > Type, Numb

Re: [appfuse-user] Problem With Json using Struts 2.1.6

2009-09-23 Thread Oscar Rodriguez
Ah ok, no, there aren't any error in the Console, and javascript neither. In the control the value of the elemente Message is 404 error. Just that. - Original Message - From: Matt Raible To: users@appfuse.dev.java.net Sent: Wednesday, September 23, 2009 3:02 PM Subject: Re: [ap

Re: [appfuse-user] Problem With Json using Struts 2.1.6

2009-09-23 Thread Matt Raible
Sounds like you're pointing to a URL for your action that doesn't exist. I'd install Firebug in Firefox and use it's "Net" console to see what URL is failing. On Wed, Sep 23, 2009 at 12:19 PM, Oscar Rodriguez wrote: > Ah ok, no, there aren't any error in the Console, and javascript neither. > I

Re: [appfuse-user] validation validwhen doesnot work

2009-09-23 Thread John Vance
Well, it turns out there is validWhen support in springmodules. It's right there in FieldChecks. You add the following to your validator-rules.xml and hopefully all goes swimmingly: mraible wrote: > > I don't believe validwhen works if you're using it with Spring MVC. > You might chec

Re: [appfuse-user] validation validwhen doesnot work

2009-09-23 Thread John Vance
DDD... It works! With some gotchas. There is an architectural mismatch between the Commons Validator and Spring. Struts (which it was designed for) passes an ActionForm to the validator, which is populated with the string values that were submitted from the browser form - it's a DTO.

Re: [appfuse-user] validation validwhen doesnot work

2009-09-23 Thread Matt Raible
On Wed, Sep 23, 2009 at 8:42 PM, John Vance wrote: > > DDD... It works! > > With some gotchas. > > There is an architectural mismatch between the Commons Validator and > Spring. > Struts (which it was designed for) passes an ActionForm to the validator, > which is populated with the strin