• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Error message with Apache Derby database connection

 
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic