You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Piroumian, Konstantin" <KP...@flagship.ru> on 2002/03/25 18:42:32 UTC
[FYI] HSQL fails at startup
Good evening!
Maybe you know this already, but anyway:
Cocoon starts up fine for the first time then after restarting Tomcat I get
this error:
...
Apache Tomcat/4.0
Server 1.6 is running
Press [Ctrl]+[C] to abort
Server.run/init: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.<init>(ServerSocket.java:170)
at java.net.ServerSocket.<init>(ServerSocket.java:82)
at org.hsqldb.Server.run(Server.java:131)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:19
7)
at java.lang.Thread.run(Thread.java:484)
...
Best regards,
Konstantin Piroumian
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [FYI] HSQL fails at startup
Posted by Peter Fagerlund <pf...@iprobot.com>.
on 25-03-2 20.38, Vadim Gritsenko at vadim.gritsenko@verizon.net wrote:
>> The really quick fix is to merge the 2 class files in the Embedded
> Server
>> patch http://sourceforge.net/projects/hsqldb/
>
> Do you now is it possible to see this patch as part of the HSQLDB
> release? When?
Michael J Cannon (deadmike) said he will give to the dev team for the
1.7.0RC effort - hopefully it will make it but i do not know - the
timeframe etc.
Meanwhile one way is to just merge the patch into the 1.61 hsqldb.jar.
Since You guys are using Avalon - there is a factory pattern that can be
used when one manages ones own ServerSocket to spin of thread connections.
The patch solves two problems - not closing clean will corrupt the db and
the ServerSocket will linger, the lingering ss behaves differently depending
on OS and JVM combination - and needs a ugly hack to gc();
/peter_f
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: [FYI] HSQL fails at startup
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Peter Fagerlund [mailto:pf@iprobot.com]
>
> > Server 1.6 is running
> > Press [Ctrl]+[C] to abort
> > Server.run/init: java.net.BindException: Address in use: JVM_Bind
> > java.net.BindException: Address in use: JVM_Bind
>
> The really quick fix is to merge the 2 class files in the Embedded
Server
> patch http://sourceforge.net/projects/hsqldb/
Do you now is it possible to see this patch as part of the HSQLDB
release? When?
Thanks,
Vadim
> and call : org.hsqldb.Embedded_Server.main(args);
> instead of : org.hsqldb.Server.main(args);
>
> set up the call to 'SHUTDOWN'
>
> test
>
> done
>
> /peter_f
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [FYI] HSQL fails at startup
Posted by Peter Fagerlund <pf...@iprobot.com>.
> Server 1.6 is running
> Press [Ctrl]+[C] to abort
> Server.run/init: java.net.BindException: Address in use: JVM_Bind
> java.net.BindException: Address in use: JVM_Bind
The really quick fix is to merge the 2 class files in the Embedded Server
patch http://sourceforge.net/projects/hsqldb/
and call : org.hsqldb.Embedded_Server.main(args);
instead of : org.hsqldb.Server.main(args);
set up the call to 'SHUTDOWN'
test
done
/peter_f
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org