[jcifs] jcifs.util.transport.TransportException getMessage() returning null

Michael B Allen ioplex at gmail.com
Thu Feb 18 12:19:27 MST 2010

Hi Mike,

I think maybe that constructor is not in older versions of the Java
standard libraries.

I have made a note of your observation for further investigation. At
least TransportException.getMessage() should not return null.

Thanks for the feedback,

Michael B Allen
Java Active Directory Integration

On Thu, Feb 18, 2010 at 11:40 AM, Michael Matczynski <mjm at alum.mit.edu> wrote:
> Hello!
> Is there any reason jcifs.util.transport.TransportException has its
> own Throwable rootCause instead of passing it to IOException's
> super(cause) constructor?
> I'm hitting an issue where sometimes TransportException.getMessage()
> returns null but other times it returns the Throwable's toString().
> The default behavior in Throwable(Throwable cause) sets the
> detailMessage to cause.toString() if no explicit message is provided:
> public Throwable(Throwable cause) {
>        fillInStackTrace();
>        detailMessage = (cause==null ? null : cause.toString());
>        this.cause = cause;
>    }
> Thanks!
> Mike

More information about the jCIFS mailing list