This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 41125 - Right clicking on the connection after a crash hangs IDE
Summary: Right clicking on the connection after a crash hangs IDE
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-18 16:52 UTC by Jim Hazen
Modified: 2004-08-13 12:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
DB exception that caused disconnect and future hang (1.61 KB, text/plain)
2004-03-18 16:54 UTC, Jim Hazen
Details
Thread dump after hang (24.34 KB, text/plain)
2004-03-19 16:07 UTC, Jim Hazen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Hazen 2004-03-18 16:52:48 UTC
Do some work with a connection that causes the
server to disconnect from the client.  In my case
it was an exception in getting some meta data.

Right clicking around between connections (to try
and disconnect/reconnect) causes the IDE to hang.
Comment 1 Jim Hazen 2004-03-18 16:54:46 UTC
Created attachment 14040 [details]
DB exception that caused disconnect and future hang
Comment 2 Jim Hazen 2004-03-18 17:01:08 UTC
I guess I should also add that I'm using Netbeans 3.6 RC1, and DB
module 1.8.1.
Comment 3 Radko Najman 2004-03-18 17:16:23 UTC
I cannot reproduce the disconnect from the client. If the connection
was closed, it is probably a driver issue.

The hang problem is partially driver issue and partially Database
Explorer issue:
From the attached stack trace it is visible that the problematic
method is getIndexInfo(). It is known problem of Oracle driver. This
method consumes a lot of time on tables with big number of rows. When
the method finish the IDE should unfreeze. This method should not run
in AWT-thread. There is already a similar issue (#37051) so I propose
to close this bug as a duplicate of 37051.
Comment 4 Jim Hazen 2004-03-18 18:13:35 UTC
The two defects do look similar and are probably related.  However in
my case, it wasn't that the getIndexInfo() was taking a long time, it
was actually throwing an exception.

This exception caused the connection state to become invalid, I think
the connection was actually broken by the server.  In this case,
future attempts to use the connection (right click on another
connection and then right click on the problem connection) causes a
hang that doesn't appear to ever end.  This is a major problem for me,
since I use Oracle a lot. If I am going to have some problems with
getIndexInfo() I don't want the IDE to freeze on me.

I'll work with my DB folks on the cause of my getIndexInfo()
exception, it looks like an access thing, not lag.  But in the mean
time it seems to be a pretty important thing that the entire IDE
freeze when there is a DB connection issue.

I guess what I'm saying is that no matter what number this is tracked
under, I would like to see this fixed before 3.6 goes live.
Comment 5 Jim Hazen 2004-03-18 19:27:25 UTC
If you know.

Could someone please tell me what tables the Oracle getIndexInfo()
call hits?
Comment 6 Radko Najman 2004-03-19 12:37:07 UTC
I tried to simulate your problem - I closed the connection outside of
the IDE. I wasn't able to reproduce it, the IDE didn't freeze. The
error message from the driver was displayed, I was informed that
something wrong happened with the conection and I was able to continue
to work without any problem.
I tested it with oracle and PoitBase. Oracle driver showed:
"Io exception: Connection reset by peer: socket write error"
and PointBase driver showed:
"Connection failure. sendMethodRequest(...)"

In your exception is written "insufficient privileges". My colleague
tried to revoke some privileges and reproduse your problem but
unsuccsessfuly. I worked for him too.

Try to correct your privileges and set what you need, hopefully it can
prevent your problem.

Attach full thread dump, please. Otherwise we are not able to see what
was happening when the IDE froze and we are not able to help you.
Comment 7 Jim Hazen 2004-03-19 16:07:57 UTC
Created attachment 14058 [details]
Thread dump after hang
Comment 8 Jim Hazen 2004-03-19 16:10:52 UTC
I should also add that the hang is not immediate.  You need to right
click around on a few connections.  Try to disconnect the crashed
connection and then right click around a few other connections.  Going
back to the crashed connection seems to hang things.  This seems to
happen after a second or so of going between connections and
manipulating the crashed connection (trying to disconnect, reconnect,etc).
Comment 9 Radko Najman 2004-03-22 12:36:01 UTC
Waiver request and changing priority (agreed by QE).
Comment 10 Jan Chalupa 2004-03-24 16:35:02 UTC
3.6 waiver approved.
Comment 11 dmladek 2004-06-24 14:40:41 UTC
please see this issue #45513, if it is not same
Comment 12 Radko Najman 2004-07-19 16:37:17 UTC
Cannot reproduce with the current dev build. Closing as WORKSFORME. If
you still can reproduce it with the latest dev build, feel free to
reopen it.