I have detected an infinite loop in the shutdown method of thinwire.render.web.Webapplication class.
It append when the application quits
Here is the original code
while (proc.isInUse()) {
if (log.isLoggable(LEVEL)) log.log(LEVEL, Thread.currentThread().getName() + ": processor returned, probably from flush(), sending null event");
proc.handleRequest((WebComponentEvent)null, new CharArrayWriter());
}
I have added a counter to avoid this infinite loop
int i=0;
while (proc.isInUse() && i++<1024) {
if (log.isLoggable(LEVEL)) log.log(LEVEL, Thread.currentThread().getName() + ": processor returned, probably from flush(), sending null event");
proc.handleRequest((WebComponentEvent)null, new CharArrayWriter());
}
This currently solve my problem but a deeper analysis is required.
/Didier
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have detected an infinite loop in the shutdown method of thinwire.render.web.Webapplication class.
It append when the application quits
Here is the original code
while (proc.isInUse()) {
if (log.isLoggable(LEVEL)) log.log(LEVEL, Thread.currentThread().getName() + ": processor returned, probably from flush(), sending null event");
proc.handleRequest((WebComponentEvent)null, new CharArrayWriter());
}
I have added a counter to avoid this infinite loop
int i=0;
while (proc.isInUse() && i++<1024) {
if (log.isLoggable(LEVEL)) log.log(LEVEL, Thread.currentThread().getName() + ": processor returned, probably from flush(), sending null event");
proc.handleRequest((WebComponentEvent)null, new CharArrayWriter());
}
This currently solve my problem but a deeper analysis is required.
/Didier