Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Server connection "broken"
Old 01-26-2010, 11:35 AM Server connection "broken"
Junior Talker

Posts: 4
Trades: 0
Hello, I have a set of three applications. One which starts the server, and two others which use a common database, connecting by JDBC to the server. When i launch, everything looks fine, but after a minute or so, both my programs breakdown and give the following warning

Code:
org.h2.jdbc.JdbcSQLException: Connection is broken: "session closed" [90067-126]



Why could this be happening?

Thanks a lot!

Last edited by frubeng; 01-26-2010 at 11:38 AM..
frubeng is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-26-2010, 01:34 PM Re: Server connection "broken"
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The connection to the server is dropping.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-26-2010, 02:06 PM Re: Server connection "broken"
Junior Talker

Posts: 4
Trades: 0
Thanks, I know that much, but I don't know why.
Are there common causes?
frubeng is offline
Reply With Quote
View Public Profile
 
Old 01-26-2010, 02:27 PM Re: Server connection "broken"
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Probably, should we start guessing at possibles. Because if so, we could be here a long time.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-26-2010, 02:54 PM Re: Server connection "broken"
Junior Talker

Posts: 4
Trades: 0
OK, how would i go about testing to try and corner it?
I've followed to instructions exactly and surely there's something i can do about this issue?

Thanks!
frubeng is offline
Reply With Quote
View Public Profile
 
Old 01-26-2010, 02:57 PM Re: Server connection "broken"
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No idea.

You may have to start giving us some clues
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-26-2010, 03:09 PM Re: Server connection "broken"
Junior Talker

Posts: 4
Trades: 0
Not sure what i can provide to help but here's some info:
It's a H2 database, i use Java programs to launch the server and to connect - with a JDBC connection.

To start the serve, I use:
Code:
Server server = Server.createTcpServer().start();

The two application connecting to the database use the code:
Code:
 
Connection conn = DriverManager.getConnection("jdbc:h2:tcp://localhost/~/test", "sa", "");
Is there anything i can say to help figure this out?

Thanks

PS the H2 error analyser interprets the error message as:
Quote:
<H4 id=c90067>CONNECTION_BROKEN_1 = 90067
Quote:

The error with code 90067 is thrown when the connection to the database is lost. A possible reason is that the database connection has been closed due to a shutdown, or that the server is stopped. Other causes could be: the server is not an H2 server, or the network connection is broken.
</H4>

Last edited by frubeng; 01-26-2010 at 03:12 PM..
frubeng is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Server connection "broken"
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25033 seconds with 12 queries