This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Netbeans IDE problem  RSS feed

 
Ranch Hand
Posts: 181
  • 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: 35
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: 181
  • 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: 181
  • 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: 35
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: 181
  • 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
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!