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 135937 - deleted javaDB database can't be recreated
Summary: deleted javaDB database can't be recreated
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: NETFIX, PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2008-05-27 21:44 UTC by catweasle
Modified: 2013-07-10 04:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch v1 (2.53 KB, patch)
2013-07-02 20:29 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description catweasle 2008-05-27 21:44:01 UTC
I created a javaDB database (on disk) and then deleted it.
When I try to recreate the database I got an error "the database location already contains a file named...".
(stopped db, deleted directory, started db, creating db works OK)
Comment 1 Jiri Rechtacek 2009-07-01 07:58:08 UTC
Reassigned to new owner.
Comment 2 matthias42 2013-07-02 20:29:58 UTC
Created attachment 136616 [details]
proposed patch v1

Derby needs to be shutdown before the database file can be removed. The implemented method worked on unix systems, because they don't lock on the kernel level. Long story short: Just do as the derby developers say :-)
Comment 3 Jaroslav Havlin 2013-07-08 08:49:15 UTC
Applied as http://hg.netbeans.org/core-main/rev/02bb3c50062b.
Thank you very much for the patch!
Comment 4 Quality Engineering 2013-07-10 04:44:38 UTC
Integrated into 'main-silver', will be available in build *201307100049* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/02bb3c50062b
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #135937: Deleted javaDB database can't be recreated

Patch by Matthias42