Atomikos Forum

Caused by: com.atomikos.icatch.SysException: Error in init: Erro

Please help

I have deployed the transaction application on the server and its works fine (rollback for multiple database).When i restart the server i am getting the below error .In case I delete the tmlog3 file it server starts without any error.

tmlog3 file is not in readable format.
tm.out:
11-09-14 16:56:35,154 [SpringOsgiExtenderThread-20] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog-1.log
11-09-14 16:56:53,391 [Timer-1] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog0.log
11-09-14 16:57:00,052 [SpringOsgiExtenderThread-24] Starting read of logfile C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog0.log
11-09-14 16:57:00,052 [SpringOsgiExtenderThread-24] Done read of logfile
11-09-14 16:57:00,052 [SpringOsgiExtenderThread-24] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog0.log
11-09-14 17:01:21,990 [SpringOsgiExtenderThread-20] Starting read of logfile C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog1.log
11-09-14 17:01:21,990 [SpringOsgiExtenderThread-20] Done read of logfile
11-09-14 17:01:22,006 [SpringOsgiExtenderThread-20] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog1.log
11-09-14 17:01:25,141 [Timer-1] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog2.log
11-09-14 17:03:21,183 [SpringOsgiExtenderThread-20] Starting read of logfile C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog2.log
11-09-14 17:03:21,185 [SpringOsgiExtenderThread-20] Done read of logfile
11-09-14 17:03:21,188 [SpringOsgiExtenderThread-20] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog2.log
11-09-14 17:12:32,882 [Timer-1] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog3.log
11-09-14 17:14:37,854 [SpringOsgiExtenderThread-20] Starting read of logfile C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog3.log
11-09-14 17:14:37,980 [SpringOsgiExtenderThread-20] atomikos connection pool 'XADBMSLocal': destroying pool...
11-09-14 17:14:37,983 [SpringOsgiExtenderThread-20] atomikos connection pool 'XADBMS_ORACLE': destroying pool...
11-09-14 17:14:37,993 [SpringOsgiExtenderThread-20] atomikos connection pool 'XADBMS_ZQ': destroying pool...
11-09-14 17:14:37,996 [SpringOsgiExtenderThread-20] atomikos connection pool 'XADBMSEmail': destroying pool...
11-09-14 17:14:38,693 [Finalizer] Logfile closed: C:\apache-servicemix-4.4.0-fuse-00-43\.\tmlog3.log


ERROR:

java.lang.ClassNotFoundException
java.lang.ClassNotFoundException: com.atomikos.datasource.xa.XAResourceTransaction
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.felix.framework.ModuleImpl.doImplicitBootDelegation(ModuleImpl.java:1570)
        at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1507)
        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:759)
        at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1806)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.atomikos.icatch.imp.CoordinatorLogImage.readExternal(CoordinatorLogImage.java:185)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.atomikos.persistence.imp.SystemLogImage.readExternal(SystemLogImage.java:106)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.atomikos.persistence.imp.FileLogStream.recover(FileLogStream.java:141)
        at com.atomikos.persistence.imp.StreamObjectLog.init(StreamObjectLog.java:129)
        at com.atomikos.persistence.imp.StateRecoveryManagerImp.init(StateRecoveryManagerImp.java:71)
        at com.atomikos.icatch.imp.TransactionServiceImp.init(TransactionServiceImp.java:725)
        at com.atomikos.icatch.imp.BaseTransactionManager.init(BaseTransactionManager.java:217)
        at com.atomikos.icatch.standalone.StandAloneTransactionManager.init(StandAloneTransactionManager.java:104)
        at com.atomikos.icatch.standalone.UserTransactionServiceImp.init(UserTransactionServiceImp.java:307)
        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
        at java.lang.Thread.run(Thread.java:619)
com.atomikos.icatch.SysException: Error in init: Error in recover
        at com.atomikos.icatch.imp.TransactionServiceImp.init(TransactionServiceImp.java:728)
        at com.atomikos.icatch.imp.BaseTransactionManager.init(BaseTransactionManager.java:217)
        at com.atomikos.icatch.standalone.StandAloneTransactionManager.init(StandAloneTransactionManager.java:104)
        at com.atomikos.icatch.standalone.UserTransactionServiceImp.init(UserTransactionServiceImp.java:307)
        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
        at java.lang.Thread.run(Thread.java:619)
Nested exception is:
com.atomikos.persistence.LogException: Error in recover
        at com.atomikos.persistence.imp.FileLogStream.recover(FileLogStream.java:173)
        at com.atomikos.persistence.imp.StreamObjectLog.init(StreamObjectLog.java:129)
        at com.atomikos.persistence.imp.StateRecoveryManagerImp.init(StateRecoveryManagerImp.java:71)
        at com.atomikos.icatch.imp.TransactionServiceImp.init(TransactionServiceImp.java:725)
        at com.atomikos.icatch.imp.BaseTransactionManager.init(BaseTransactionManager.java:217)
        at com.atomikos.icatch.standalone.StandAloneTransactionManager.init(StandAloneTransactionManager.java:104)
        at com.atomikos.icatch.standalone.UserTransactionServiceImp.init(UserTransactionServiceImp.java:307)
        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "SpringOsgiExtenderThread-20" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'atomikosTransactionManager' defined in URL [bundle://472.6:0/META-INF/spring/interimws-datasource.xml]: Invocation of init method failed; nested exception is com.atomikos.icatch.SysException: Error in init(): Error in init: Error in recover
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.atomikos.icatch.SysException: Error in init(): Error in init: Error in recover
        at com.atomikos.icatch.standalone.UserTransactionServiceImp.init(UserTransactionServiceImp.java:374)
        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
        ... 14 more
Caused by: com.atomikos.icatch.SysException: Error in init: Error in recover
        at com.atomikos.icatch.imp.TransactionServiceImp.init(TransactionServiceImp.java:728)
        at com.atomikos.icatch.imp.BaseTransactionManager.init(BaseTransactionManager.java:217)
        at com.atomikos.icatch.standalone.StandAloneTransactionManager.init(StandAloneTransactionManager.java:104)
chandraprabha Send private email
Thursday, September 15, 2011
 
 
Look like a classpath problem relating to class com.atomikos.datasource.xa.XAResourceTransaction (serialized into the logs).

Are your datasources defined in the same OSGi bundle as the JTA service?
Guy Pardon Send private email
Wednesday, September 21, 2011
 
 
Thanks for response.
Yes datasource creation is in same bundle.

I do not get errors if i delete the log files.
chandraprabha Send private email
Wednesday, September 21, 2011
 
 
This error comes only when I do some database operation (in my case I having select and insert) and then shutdown the server and restart .

If I restart the server without performing any database operation it restarts successfully.
chandraprabha Send private email
Wednesday, September 21, 2011
 
 
Hi,

I worked on the osgi-fication of atomikos.

I think I can help.

Which Jar do U use ?
Is it transaction-osgi 3.7.0 or did you make your own bundle ?

Here yopu can find the osgi bundle for Atomikos :
http://search.maven.org/#artifactdetails%7Ccom.atomikos%7Ctransactions-osgi%7C3.7.0%7Cjar
Pascal Leclercq Send private email
Friday, October 28, 2011
 
 

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

Other recent topics Other recent topics