I just killed running instance of a server & tried re-booting.

[2011-05-25 18:33:48,741]  INFO
{org.wso2.carbon.atomikos.TransactionFactory} -  Starting Atomikos
Transaction Manager 3.7.0
ERROR: the specified log seems to be in use already. Make sure that no other
instance is running, or kill any pending process if needed.
java.lang.RuntimeException: Log already in use?
at
com.atomikos.icatch.standalone.UserTransactionServiceImp.createDefault(UserTransactionServiceImp.java:246)
 at
com.atomikos.icatch.standalone.UserTransactionServiceImp.init(UserTransactionServiceImp.java:306)
at
com.atomikos.icatch.config.UserTransactionServiceImp.init(UserTransactionServiceImp.java:413)
 at
com.atomikos.icatch.jta.UserTransactionManager.checkSetup(UserTransactionManager.java:90)
at
com.atomikos.icatch.jta.UserTransactionManager.init(UserTransactionManager.java:140)
 at
org.wso2.carbon.atomikos.TransactionFactory.initTxManager(TransactionFactory.java:37)

This is due to the lock file (tm.out.lck) created by atomikos in
repository/log folder & deleting it makes the server boot up normally.

-rw-r--r--   1 sumedha  staff    4358 May 25 15:00 tm.out
-rw-r--r--   1 sumedha  staff       0 May 25 18:33 tm.out.1
-rw-r--r--   1 sumedha  staff       0 May 25 18:33 tm.out.lck

But, shouldn't we deal with gracefully?

Created a JIRA[1] for future checkups.

/sumedha

[1] https://wso2.org/jira/browse/CARBON-10291
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to