Startup failure after unclean shutdown

borkert

Hi,

I just wondered why the AS2 server does not recover an unclean shutdown. When I start it up, and then just kill it instead of shutting it down correctly, it won't start up again until I delete the mq_persist_Joram directory.

INFO: (c) 2000-2008 mendelson-e-commerce GmbH Berlin, Germany
[Server@1996e136]: [Thread[Thread-17,5,main]]: putPropertiesFromString(): [port=
3333;database.0=file:AS2_DB;dbname.0=as2db;silent=true;trace=false;hsqldb.cache_
scale=15;hsqldb.cache_file_scale=8;no_system_exit=true;shutdownarg=COMPACT;]
[Server@1996e136]: [Thread[Thread-17,5,main]]: checkRunning(false) entered
[Server@1996e136]: [Thread[Thread-17,5,main]]: checkRunning(false) exited
Jun 30, 2008 10:51:02 PM de.mendelson.comm.as2.database.DBServer run
INFO: HSQL Database Engine 1.8.0 started.
AgentServer#0initialisation failed: ERROR
java.lang.Exception: Can't start transaction manager
END
Jun 30, 2008 10:51:02 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: Shutdown hook executing

The logging output does not show where the error comes from. It seems to come from the startup of the MessageQueueServer, but the logging output does not print any real information about where the error occured.

So, one question:

Why is the server unable to recover the unclean shutdown?

My opinion to this:

I think all possible errors should be handled in a way that speaking log entrys get created. This error log does not contain any useful information about the source of the error. I think you should use log4j for logging, the error messages look like printed out with System.out.println().

Regards,

Sven



heller
heller's picture
borkert, there's a lock file

borkert,

there's a lock file in the joram dir. It has to be deleted before starting up the jms server after an unclean shutdown. This will be handled in the next release.

Regards
Heller




© 1999-2008 mendelson-e-commerce GmbH. All right reserved.