Subject RE: [Firebird-Java] Re: NullPointerException in FBManagedConnection#clearWarnings
Author Robert DiFalco
>> This NPE happens when you call #clearWarnings() on the closed
>> connection (after the method FBManagedConnection#destroy() was
>> called).

Yes, that is what is interesting. I'll ty to diagnose further with the
correct codebase (right now I seem to just have the latest). But check
this out:

if ( m_connection.isClosed() )
{
return false;
}
else if ( ++m_usageCount >= MAX_CONNECTION_USES )
{
return false;
}
else
{
m_connection.clearWarnings(); // everything okay to
reuse connection
return true;
}

So, I seem to be getting the driver code in a state where #isClose()
returns false even after FBManagedConnection#destroy has been called.
I'll see if I can narrow it down and report back.

R.

-----Original Message-----
From: Roman Rokytskyy [mailto:rrokytskyy@...]
Sent: Friday, October 03, 2003 7:25 PM
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Re: NullPointerException in
FBManagedConnection#clearWarnings


> I'm sure I'm doing something wrong but I can't seem to get the
> correct version of the JayBird source to investigate. This is using
> the latest release (1.01 I think). Here's the stack trace:

This NPE happens when you call #clearWarnings() on the closed
connection (after the method FBManagedConnection#destroy() was called).

You can get latest sources of version 1.0.1 from CVS using branch
JayBird_1_0_1 revision:

cvs co -r JayBird_1_0_1 client-java

Roman


Yahoo! Groups Sponsor
ADVERTISEMENT




To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.