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 64185 - DatabaseException is thrown when close IDE
Summary: DatabaseException is thrown when close IDE
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 08:49 UTC by Petr Blaha
Modified: 2005-11-04 12:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (17.55 KB, text/plain)
2005-09-13 08:49 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-09-13 08:49:01 UTC
[build 20050912]
Steps:
1) start IDE
2) add App server and start PointBase database
3) create new web project with one servlet
4) invoke Use database action
5) stop PointBase
6) close IDE
ERROR: exception is thrown
Comment 1 Petr Blaha 2005-09-13 08:49:51 UTC
Created attachment 24724 [details]
IDE log
Comment 2 Andrei Badea 2005-10-10 09:40:42 UTC
The cause of the exception is that the connection was broken. You would have got
the same exception in the IDE if you tried to close the connection after
stopping PointBase. Do you think that exceptions thrown while closing the
connections upon shutdown should not be reported (or should be only reported to
the message log)?
Comment 3 Petr Blaha 2005-10-10 09:46:08 UTC
I think reports the exception to a log is sufficient. 
Comment 4 Andrei Badea 2005-10-14 19:01:22 UTC
Fixed.

Checking in src/org/netbeans/api/db/explorer/ConnectionManager.java;
/cvs/db/src/org/netbeans/api/db/explorer/ConnectionManager.java,v  <-- 
ConnectionManager.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/modules/db/DatabaseModule.java;
/cvs/db/src/org/netbeans/modules/db/DatabaseModule.java,v  <--  DatabaseModule.java
new revision: 1.41; previous revision: 1.40
done
Checking in src/org/netbeans/modules/db/explorer/DatabaseConnection.java;
/cvs/db/src/org/netbeans/modules/db/explorer/DatabaseConnection.java,v  <-- 
DatabaseConnection.java
new revision: 1.42; previous revision: 1.41
done
Checking in src/org/netbeans/modules/db/runtime/DatabaseRuntimeManager.java;
/cvs/db/src/org/netbeans/modules/db/runtime/DatabaseRuntimeManager.java,v  <-- 
DatabaseRuntimeManager.java
new revision: 1.9; previous revision: 1.8
done
RCS file: /cvs/db/test/unit/src/org/netbeans/modules/db/DatabaseModuleTest.java,v
done
Checking in test/unit/src/org/netbeans/modules/db/DatabaseModuleTest.java;
/cvs/db/test/unit/src/org/netbeans/modules/db/DatabaseModuleTest.java,v  <-- 
DatabaseModuleTest.java
initial revision: 1.1
done
Comment 5 Andrei Badea 2005-10-18 11:20:42 UTC
Forgot to mark as fixed.
Comment 6 Petr Blaha 2005-11-04 12:36:10 UTC
[build 20051103]