• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

cannot connect to firebird when restarted using Runtime.exec

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good day every1 i'm new to the site, i'm have a serious problem:

I start the inetd daemon using Runtime.exec, i'm sure it starts because when i exit my java program and start again i can connect. However when i start inetd from inside my application i cannot connect using java.sql.Connection, i have to close the app and start again....Can someone please help me!!! (by the way i'm using Ubuntu 9.0 server

here is the code to start the process :
Process p = Runtime.getRuntime().exec("sudo /usr/sbin/inetd"));
p.waitFor();
connection = DriverManager.getConnection(url, user, password);

it says:

org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable to complete network request to host "ip address".
Reason: Unable to complete network request to host "ip address".
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic