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 69244 - Cannot connect to embedded Derby database
Summary: Cannot connect to embedded Derby database
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 10:14 UTC by bernt
Modified: 2005-11-25 15:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bernt 2005-11-24 10:14:02 UTC
When trying to connect to a Derby database (which I created with Netbeans) with

Runtime->Databases->Drivers->Apache Derby (Embedded)

with the url jdbc:derby:/export/home/tmp/DB/AddressBook

I get the message

Unable to add connection, cannot establish a connection to
jdbc:derby:/export/home/tmp/DB/AddressBook using
org.apache.derby.jdbc.EmbeddedDriver (Failed to start database
'/export/home/tmp/DB/AddressBook', se the next exception for details.)

There is no problem connecting to the same database with other tools,
e.g. Derby's ij.
Comment 1 Martin Schovanek 2005-11-24 10:42:50 UTC
What version of Nb and what OS do you use? Are you able to reproduce in the
latest Nb 5.0 dev build?

It looks like currently fixed issue 63957.
Comment 2 bernt 2005-11-24 11:17:45 UTC
I use NetBeans IDE Dev Build (200511221900)
Linux 2.6.13-1.1532_FC4
Comment 3 Andrei Badea 2005-11-25 15:33:23 UTC
Fixed.

Checking in ConnectUsingDriverAction.java;
/cvs/db/src/org/netbeans/modules/db/explorer/actions/ConnectUsingDriverAction.java,v
 <--  ConnectUsingDriverAction.javanew revision: 1.31; previous revision: 1.30
done

I guess you have a db.lck file in your database directory. Remove it before you
try to add the database to the Runtime tab.