• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Netbeans IDE problem  RSS feed

 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a derby database set up with two tables

I use Netbeans when I wish to reset the records in either of these tables back to an initial state while I debug my java program (which access these two tables)

when I attempt to connect to my database I am getting the following error message:-

Unable to connect. Cannot establish a connection to [my database] using org.apache.derby.jdbc.
ClientDriver (DERBY SQL error: ERRORCODE:40000, SQLSTATE:XJ040,
SQLERRMC: Failed to start database ['my database'] with class loader
sun.misc.Launcher$AppClassLoader@266474c2, see the next exception for details.::SQLSTATE: XBMOW).

What does this all mean?

Bob M
 
Ranch Hand
Posts: 44
1
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you share the code?How did you try to connect to database?
 
Bob Matthews
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I connect to the database in Netbeans by right-clicking on the connection to my database shown under the databases heading

When you click on the 'plus' beside databases you get
Java DB
Drivers
and connections e.g. jdbc:derby://localhost:1527/my database

Bob M
 
Bob Matthews
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My java code has been accessing the database and tables without any problems until today !
 
Asif Haciyev
Ranch Hand
Posts: 44
1
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bob Matthews wrote:I connect to the database in Netbeans by right-clicking on the connection to my database shown under the databases heading

When you click on the 'plus' beside databases you get
Java DB
Drivers
and connections e.g. jdbc:derby://localhost:1527/my database

Bob M



Have you checked this link ?
 
Bob Matthews
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Had a look at the link................

I am running the latest version of Netbeans 8.2 so I don't think the problem in that link is my problem

Bob M
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!