Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

DB Connection Exception in Multithreaded code

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

There's a multithreaded code that creates N no. of threads, each thread creates a new DB Connection instance to connect to a DB using JDBC. So there are N no. of individual connections to the database created by each thread. In this context find that when one of thread is being created and it tries to get the DB Connection the below Exception is being throwed.

As per the exception, find its relevant to the JDBC URL formation. Please note the method that obtains the DB Connection is a synchronized one.



Would like to know the possible cause for this and the possble solution like implementing colleection pooling would help.

Thanks in advance.

Regards
Roshini
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Reasons for "invalid arguments in call" usually are around invalid
configuration (URL, user/pwd).
 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can someone provide me some insight into this issue.

Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic