Atomikos Forum

Netbeans Profiler cannot start with Atomikos

I have an app that uses Atomikos (managed by Spring), and I am trying to profile the app in Netbeans. I am finding that I am getting an eror whenever I start the server in profile mode. The error is:



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:221)


I realise that the error is claiming the lock file exists and the normal solution is to delete the lock file, but this doesn't work. The next time I boot the server, I get the same error - even if I delete all the Atomikos log files. I can get it running if I delete the first set of lock files that I see being created. a second set is then created (it is as if the app is starting twice), and I am wondering if anyone else has had this problem.

When I am not running in profile mode then I do not have any problems.

Any ideas?
Gavin DOnald Send private email
Friday, December 17, 2010
 
 
Recent releases (3.5, 3.6 and later) have improved lock file behavior. Basically, the existence of a .lck now really means that you are trying to start two TM instances over the same logs (beats me how the profiler leads to that).

One way around this is disabling the logging - in which case there is no issue with the logs either :-)

HTH
Guy Pardon Send private email
Saturday, December 18, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics