• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Error message with Apache Derby database connection

 
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code..............


and the error :-

----- SQLException -----
SQL State: 08001
Error Code: 0
Message: No suitable driver found for jdbc:derby:C:/Users/ZZZZ/Desktop/2019 Trading/Databases/ABC_USDJPY_1010

The second last line of code is causing the error [conn = .....]
and the last line is not output

This error is intermittent
I am currently running 5 separate java programs simultaneously
Each uses Apache derby to communicate with its own dbase

If I run just 1 of the 5 programs - I don't ever get the error

Am perplexed as to how to solve this issue!

Bob M
 
Sheriff
Posts: 6029
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say, "One of the five programs," are all these programs the same?  How do you have the DB data driver jar file setup?  (Maven, Gradle, CLASSPATH, other)?
 
Bob Matthews
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very similar but each works on a different currency-pair and accesses a different dbase

other - the derby.jar file is held in a library with full access by each of the five programs which are running on the Dukascopy JForex Trading platform

Bob M

p.s. I am wondering if it is a timing issue ?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!