Hi,

I tested the servers on another PC and everything worked fine. At
first I thought it might be my firewall but switching it off didn't
help either and I continued to get the stacktraces.

Suddenly even starting the tcp server would straightaway throw a "The
TCP server could not be started. Possible cause: another server is
already running on tcp://localhost:9092". Running a netstat didn't
show the port being already open.

And then I realised that I haven't rebooted the offending PC in a long
time (just suspended it). So I rebooted and voila everything works
fine again. After starting a tcp server I get the very reassuring "TCP
server running on tcp://localhost:9092 (only local connections)".

Would you believe that.

Thanks and Regards
Piyush



On Tue, Aug 26, 2008 at 6:41 AM, Thomas Mueller
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Maybe the web server is already running before that? You said you can
> login - could you login before starting, and can you log in after the
> exception?
>
> Regards,
> Thomas
>
>
>
> On Sun, Aug 24, 2008 at 1:47 PM, ppurang <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I start a tcp server and a web server in separate consoles (WIN XP
>> SP2). After which I can login to the console. But after a while both
>> the server instances die. Here are the stacktraces:
>>
>> [TCP Server]
>>> java -cp h2.jar org.h2.tools.Server -tcp
>>
>> org.h2.jdbc.JdbcSQLException: Verbindung ist unterbrochen
>> Connection is broken [90067-77]
>>        at org.h2.message.Message.getSQLException(Message.java:103)
>>        at org.h2.message.Message.getSQLException(Message.java:114)
>>        at org.h2.message.Message.getSQLException(Message.java:77)
>>        at org.h2.message.Message.getSQLException(Message.java:149)
>>        at org.h2.tools.Server.start(Server.java:452)
>>        at org.h2.tools.Server.run(Server.java:276)
>>        at org.h2.tools.Server.main(Server.java:135)
>> The TCP server could not be started. Possible cause: another server is
>> already running on tcp://localhost:9092
>>
>> [WEB Server]
>>> java -cp h2.jar org.h2.tools.Server -web
>>
>> java.net.ConnectException: Connection timed out: connect
>>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>>        at java.net.PlainSocketImpl.doConnect(Unknown Source)
>>        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>>        at java.net.PlainSocketImpl.connect(Unknown Source)
>>        at java.net.SocksSocketImpl.connect(Unknown Source)
>>        at java.net.Socket.connect(Unknown Source)
>>        at java.net.Socket.connect(Unknown Source)
>>        at java.net.Socket.<init>(Unknown Source)
>>        at java.net.Socket.<init>(Unknown Source)
>>        at org.h2.util.NetUtils.createSocket(NetUtils.java:86)
>>        at org.h2.util.NetUtils.createSocket(NetUtils.java:71)
>>        at org.h2.util.NetUtils.createLoopbackSocket(NetUtils.java:46)
>>        at org.h2.server.web.WebServer.isRunning(WebServer.java:317)
>>        at org.h2.tools.Server.isRunning(Server.java:491)
>>        at org.h2.tools.Server.start(Server.java:449)
>>        at org.h2.tools.Server.run(Server.java:299)
>>        at org.h2.tools.Server.main(Server.java:135)
>> org.h2.jdbc.JdbcSQLException: Verbindung ist unterbrochen
>> Connection is broken [90067-77]
>>        at org.h2.message.Message.getSQLException(Message.java:103)
>>        at org.h2.message.Message.getSQLException(Message.java:114)
>>        at org.h2.message.Message.getSQLException(Message.java:77)
>>        at org.h2.message.Message.getSQLException(Message.java:149)
>>        at org.h2.tools.Server.start(Server.java:452)
>>        at org.h2.tools.Server.run(Server.java:299)
>>        at org.h2.tools.Server.main(Server.java:135)
>> The Web server could not be started. Possible cause: another server is
>> already running on http://localhost:8082
>>
>>
>>
>> Either my usage is wrong or something isn't right here. I had the same
>> behaviour with 1.0.76 and now 1.0.77.
>>
>> Greets
>> Piyush
>>
>>
>>
>> >
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to