Re: Severe production issue: struts2-core-2.0.9.jar has hundres of file handles

2008-02-29 Thread Jeromy Evans
Hi Brian, Yes, you're right that by default the templates are retrieved from the jar. It's a normal performance improvement to extract them from the java to improve performance and this may be why others haven't noticed the problem. Do you have time to copy them out and observe the differen

Re: Severe production issue: struts2-core-2.0.9.jar has hundres of file handles

2008-02-29 Thread Bryan Taylor
I'm thinking more about this. It's very interesting that the open file is the struts2-core jar. This is obviously opened by a class loader to get class definitions and resource files. Several questions come to mind: - What files are being retrieving? - What classloader is doing this? Is it the

Re: Severe production issue: struts2-core-2.0.9.jar has hundres of file handles

2008-02-29 Thread Bryan Taylor
We found this in Jira: https://issues.apache.org/struts/browse/WW-2474 The submitter reports a similar issue with struts2-core-2.0.11.jar, but associates it with the use of the struts2 form tag. I'm seeing it with a freemarker template that uses this tag. It happens to be our login page. Our lo

Re: [OT] Re: StrutsStatics...

2008-02-29 Thread CleverSwine
newton.dave wrote: > >>> One of the reasons people used the technique was to avoid a minimal >>> amount of extra keystrokes. Java 5's static imports removed the need >>> for the extra keystrokes. >> I disagree. > > Go ahead. That's why people did it. There's no other reason to do it. Did you

[OT] C++ interfaces (WAS: Re: StrutsStatics...)

2008-02-29 Thread Antonio Petrelli
2008/2/29, CleverSwine <[EMAIL PROTECTED]>: > > > Antonio Petrelli wrote: > > Err... Does C++ have interfaces at all? All I recall is that C++ has > > classes. > > > Of course it does. A simple google search > (http://www.google.com/search?hl=en&q=C%2B%2B+interfaces&btnG=Google+Search) > would

Re: Severe production issue: struts2-core-2.0.9.jar has hundres of file handles

2008-02-29 Thread Dave Newton
FWIW (not much), I can't duplicate this with S2.0.11 under Mac OS X; I may have a report from both Windows and Linux boxen in a little bit. Dave --- Bryan Taylor <[EMAIL PROTECTED]> wrote: > We're troubleshooting a severe problem in our production system. We get > errors like this in tomcat: > S

Severe production issue: struts2-core-2.0.9.jar has hundres of file handles

2008-02-29 Thread Bryan Taylor
We're troubleshooting a severe problem in our production system. We get errors like this in tomcat: SEVERE: Socket accept failed org.apache.tomcat.jni.Error: Too many open files We're on linux and run lsof to show the files tomcat has open, which shows hundreds (763 in one example) of distin

[OT] Re: StrutsStatics...

2008-02-29 Thread Dave Newton
--- CleverSwine <[EMAIL PROTECTED]> wrote: > Antonio Petrelli wrote: > > Err... Does C++ have interfaces at all? All I recall is that C++ has classes. > > Of course it does. A simple google search > (http://www.google.com/search?hl=en&q=C%2B%2B+interfaces&btnG=Google+Search) > would have shown you

Re: StrutsStatics...

2008-02-29 Thread Chris Pratt
On Fri, Feb 29, 2008 at 8:15 AM, CleverSwine <[EMAIL PROTECTED]> wrote: > > > Chris Pratt wrote: > > I never said it was a good idea, it's just something that was so common > > that > > they decided to make it part of the language. > > This statement demonstrates a fundamental misunderstanding

Re: StrutsStatics...

2008-02-29 Thread CleverSwine
Antonio Petrelli wrote: > Err... Does C++ have interfaces at all? All I recall is that C++ has > classes. Of course it does. A simple google search (http://www.google.com/search?hl=en&q=C%2B%2B+interfaces&btnG=Google+Search) would have shown you. Perhaps you're thinking of C. Al Sutton wrote:

Re: StrutsStatics...

2008-02-29 Thread Al Sutton
Sounds like a good reason why it isn't possible :). - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Developers List" Sent: Friday, February 29, 2008 4:21 PM Subject: Re: StrutsStatics... 2008/2/29, CleverSwine <[EMAIL PROTECTED]>: In some OO language

Re: The "Closer" award

2008-02-29 Thread Al Sutton
Anything later than 2.1.0 (so yes, 2.1.2 are included). Basically I'm counting useful patches, so if you've submitted something that needed fixing you get the points. Al. - Original Message - From: "Wes Wannemacher" <[EMAIL PROTECTED]> To: "Struts Developers List" Sent: Friday,

Re: StrutsStatics...

2008-02-29 Thread Dave Newton
--- CleverSwine <[EMAIL PROTECTED]> wrote: > Chris Pratt wrote: > > I never said it was a good idea, it's just something that was so common > > that they decided to make it part of the language. > This statement demonstrates a fundamental misunderstanding of Java. I > really hope you are NOT a comm

Re: StrutsStatics...

2008-02-29 Thread Antonio Petrelli
2008/2/29, CleverSwine <[EMAIL PROTECTED]>: > > In some OO languages (C++ comes to > mind), the constant interface anti-pattern isn't possible because > constants > cannot be defined on interfaces. Err... Does C++ have interfaces at all? All I recall is that C++ has classes. Antonio

Re: StrutsStatics...

2008-02-29 Thread CleverSwine
Chris Pratt wrote: > I never said it was a good idea, it's just something that was so common > that > they decided to make it part of the language. This statement demonstrates a fundamental misunderstanding of Java. I really hope you are NOT a committer on the struts2 project. Chris Pratt wrot

Re: The "Closer" award

2008-02-29 Thread Martin Cooper
On Fri, Feb 29, 2008 at 6:40 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > So, does anyone know where our JIRA is located geographically? It's in Corvallis, Oregon, USA, so Pacific Standard Time, which is GMT - 8. -- Martin Cooper > I'm > trying to figure out it's timezone to see whether

Re: The "Closer" award

2008-02-29 Thread Wes Wannemacher
Al, I've been meaning to ask, in your first email, you outlined the parameters you would put into the JIRA search. > >> > >> >> > Project : Struts 2 > >> > >> >> > Issue Type : Any > >> > >> >> > Fix For : 2.1.1 or Future > >> > >> >> > Status : Resolved or Closed > >> > >> >> > Resolut

Re: The "Closer" award

2008-02-29 Thread Al Sutton
I'm going to be using JIRAs own web interface for the "who's in" report, so it'll be the JIRA timezone that matters (which means you've probably got about 17 hours left) Al. - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Developers List" Sent: Friday, Febru

Re: The "Closer" award

2008-02-29 Thread Al Sutton
I think it's somewhere in GMT-8 (possibly west coast). The last comment I received is timed at 04:00am in the web interface and the email is timed 12:01 in my local mail client (I'm in GMT). Al. - Original Message - From: "Wes Wannemacher" <[EMAIL PROTECTED]> To: "Struts Developers L

Re: The "Closer" award

2008-02-29 Thread Wendy Smoak
On Fri, Feb 29, 2008 at 7:40 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > So, does anyone know where our JIRA is located geographically? I'm > trying to figure out it's timezone to see whether or not I have any > time tonight to work on some more issues. FWIW, I see times in JIRA in my own t

Re: The "Closer" award

2008-02-29 Thread Wes Wannemacher
So, does anyone know where our JIRA is located geographically? I'm trying to figure out it's timezone to see whether or not I have any time tonight to work on some more issues. -Wes On 2/15/08, Martin Cooper <[EMAIL PROTECTED]> wrote: > On Fri, Feb 15, 2008 at 9:11 AM, Al Sutton <[EMAIL PROTECTED

Re: OT: BeanUtils 1.7 and 1.8

2008-02-29 Thread Niall Pemberton
You should ask this on the commons user list: http://commons.apache.org/beanutils/mail-lists.html ...but the reason is because you have used the wrong names for keys in your Map - the first character should be lower case (so "properyA" and "propertyB") - this is the java beans spec If you chang

OT: BeanUtils 1.7 and 1.8

2008-02-29 Thread Giovanni Azua
hi, Sorry for the of-topic but given that BeanUtils is heavily used in Struts, can anyone suggest why this test does not pass neither in 1.7 nor 1.8? alternative way using BeanUtils? I had to end up implementing my own Reflection-based copyProperties ... //---