James,

No information in the log? Is your logging stuff configured directly or are you overriding error handling in the app so errors are not loogged somewhere. IMHO, below is a NPE and if you can get a stack trace, you'll be well on your way to finding the pesky bug.

The error page is being returned by an error handler hook method in Application. If necessary, override those, call super and then do your own log.error for the exception and other params being passed in before calling super to make absolute sure you get the error stack trace. I highly recommend using comfiguring an SMTP appender for ERROR log level so you get instant emails for any log.error messages. See below on config for that ... real simple.

For component action errors, IIRC, that exception page is thrown by these methods in WOApplication. Check out the api docs for more info.
public WOResponse handleException(Exception, .... )

and for direct actions, here:
public WOResponse handleActionRequestError( WORequest aRequest,
                                                Exception anException,
                                                String aReason,
WORequestHandler aHandler,
                                                String actionClassName,
                                                String actionName,
                                                Class actionClass,
WOAction actionInstance )

I use an SMTP appender for any ERROR level log statements, which are rare, and so they get emailed immediately to me, stack trace and all.

Assuming you are using WOnder, here is example of log settings in Properties file related to the SMTP appender:

# log4j appender and formatting
log4j.rootLogger=WARN, myMail
log4j.loggerFactory=er.extensions.ERXLogger$Factory

# myMail is the SMTPAppender
log4j.appender.myMail=org.apache.log4j.net.SMTPAppender
log4j.appender.myMail.Threshold=ERROR
log4j.appender.myMail.BufferSize=10
[EMAIL PROTECTED],[EMAIL PROTECTED]
[EMAIL PROTECTED]
log4j.appender.myMail.SMTPHost=smtp.mydomain.com
log4j.appender.myMail.Subject=Log4J Error Message (App abc.woa)
log4j.appender.myMail.layout=er.extensions.ERXPatternLayout
log4j.appender.myMail.layout.ConversionPattern=%r %-5p %d{ISO8601} [% t] %n%n (%C, %M, %F:%L) - %n%n%m%n


Remember, log4j is your friend,

HTH, Kieran


On Apr 28, 2007, at 12:03 PM, James Cicenia wrote:

I honestly can't figure out this app or suite of apps really....

I have ten apps running that only differ in look. This particular app is the busiest of the bunch. I have three instances running. The most recent issue is it just throws an exception with zero
information in the log or on the screen. A restart fixes it.

Here is the error on the screen (nothing in the log files):

<exclamation.gif>

Re-enter
hb

<DownTriangle.gif>
 Exception Description

Application:
hb
Error:
java.lang.NullPointerException
Reason:

Stack trace:
File
Line#
Method
Package




NA : Non applicable, JIT activated



On Apr 28, 2007, at 10:40 AM, Mike Schrag wrote:

Actually, all of those sockets are rooted at WOWorkerThreads ... There's almost nothing going on in the app. There are two WOWorkerThreads threads in the midst of reading input from the socket, but there's nothing hung waiting for a session, or an editing context lock (the usual offenders). By all accounts in this Thread dump your app looks fine. What exactly do you mean when you say "your app starts hanging"? Hanging at what point in the request? Have you tried restarting wotaskd just for good measure?

ms

On Apr 28, 2007, at 9:17 AM, Dov Rosenberg wrote:

My guess is that your app is doing a bunch of socket communications and something isn't properly closing the sockets after use. I have seen similar
things when using HTTPClient from apache commons-net where the http
connections weren't being closed properly. Eventually the app starts
hanging.

I will be interested to hear other opinions


--
Dov Rosenberg
Inquira
Knowledge Management Experts
http://www.inquira.com


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/james% 40jimijon.com

This email sent to [EMAIL PROTECTED]

<exclamation.gif>
<DownTriangle.gif>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to