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 148678

Summary: [65cat] org.netbeans.api.db.explorer.DatabaseException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ041, SQLERRMC: Failed to create database '', see the next exception for details.::SQLSTATE: XBM0JDirectory C:\
Product: db Reporter: sunbiz <sunbiz>
Component: DerbyAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: blocker CC: romanmostyka
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=120455
Issue Type: DEFECT Exception Reporter: 120455
Attachments: stacktrace

Description sunbiz 2008-09-29 20:56:31 UTC
Build: NetBeans IDE Dev (Build 200809271401)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments:
sunbiz: trying to create a database on Java DB with the name=; username=; and password=;



Stacktrace: 
org.netbeans.api.db.explorer.DatabaseException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ041, SQLERRMC: Failed to create database '', see the next exception for details.::SQLSTATE: XBM0JDirectory C:\Users\Sunbon\.netbeans-derby\C:\Users\Sunbon\.netbeans-derby already exists.
        at org.netbeans.modules.derby.api.DerbyDatabases.createDatabase(DerbyDatabases.java:251)
        at org.netbeans.modules.derby.RegisterDerby$1.run(RegisterDerby.java:183)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 sunbiz 2008-09-29 20:56:38 UTC
Created attachment 70838 [details]
stacktrace
Comment 2 John Baker 2008-09-29 21:09:09 UTC
Looks like some validation is needed.

Any reason to use ';' in the database name ?
Comment 3 John Baker 2008-10-31 01:22:32 UTC
Non supported and untypical name used to create a database ";"

Reducing the priority 
Comment 4 Jiri Rechtacek 2009-07-01 07:57:46 UTC
Reassigned to new owner.
Comment 5 matthias42 2013-01-10 20:00:47 UTC
Tested on netbeans 7.2, with javadb from glassfish 3.1 - it works - the filename is wrong, but someone creating a database like this wants to fight the system.