Apache Directory Project - [jira] Commented: (DIRMINA-143) SocketAcceptor.bind() should fillInStackTrace() before

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > December 2005 > [jira] Commented: (DIRMINA-143) SocketAcceptor.bind() should fillInStackTrace() before





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (DIRMINA-143) SocketAcceptor.bind() should fillInStackTrace() before
Niklas Therning (JIRA)

2005-12-09, 2:45 am

[ http://issues.apache.org/jira/brows...action_12359862 ]

Niklas Therning commented on DIRMINA-143:
-----------------------------------------

How about wrapping the original exception in a new IOException instead of using fillInStackTrace()? The message of the new exception would then indicate the port which couldn't be bound to. Or will that be too messy?

There might be a philosophy behind using fillInStackTrace() instead of wrapping? I usually prefer wrapping since then I won't miss out on any info that could be useful. Sometimes it can become very messy. In this case, however, I think it will be ok.


> SocketAcceptor.bind() should fillInStackTrace() before rethrowing exception
> ---------------------------------------------------------------------------
>
> Key: DIRMINA-143
> URL: http://issues.apache.org/jira/browse/DIRMINA-143
> Project: Directory MINA
> Type: Bug
> Versions: 0.8.1
> Reporter: Walter Tam
> Priority: Minor


>
> When SocketAcceptor.bind() encounters an exception returned from the bind request, it simply rethrows. The resulting stack trace is from the underlying registration thread which is not very helpful when debugging the cause. Other similar places like Soc

ketAcceptor.unbind(), DatagramAcceptor.unbind() does a fillInStackTrace() before re throwing.
> Also it will be helpful in this case to add the port number that failed to the message


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com