Atomikos Forum |
|
I upgraded a working Jetty/Spring app that was on 3.5.6 to use the new Maven repo with 3.5.8. Now the previously working setup fails at at startup with:
java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:431) at java.lang.Long.<init>(Long.java:678) at com.atomikos.util.VersionedFile.extractVersion(VersionedFile.java:84) at com.atomikos.util.VersionedFile.extractLastValidVersionNumberFromFileNames(VersionedFile.java:70) at com.atomikos.util.VersionedFile.resetVersion(VersionedFile.java:55) at com.atomikos.util.VersionedFile.<init>(VersionedFile.java:50) at com.atomikos.util.UniqueIdMgr.<init>(UniqueIdMgr.java:75) at com.atomikos.util.UniqueIdMgr.<init>(UniqueIdMgr.java:60) at com.atomikos.icatch.standalone.StandAloneTransactionManager.<init>(StandAloneTransactionManager.java:143) at com.atomikos.icatch.standalone.UserTransactionServiceImp.createDefault(UserTransactionServiceImp.java:260) at com.atomikos.icatch.standalone.UserTransactionServiceImp.init(UserTransactionServiceImp.java:281) at com.atomikos.icatch.config.UserTransactionServiceImp.init(UserTransactionServiceImp.java:373) at com.atomikos.icatch.jta.UserTransactionManager.checkSetup(UserTransactionManager.java:63) at com.atomikos.icatch.jta.UserTransactionManager.init(UserTransactionManager.java:113) 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:1414) My setup in beans.xml <jee:jndi-lookup id="AtomikosUserTransaction" jndi-name="UserTransaction" /> <bean id="AtomikosTransactionManager" class="com.atomikos.icatch.jta.UserTransactionManager" init-method="init" destroy-method="close"> <property name="forceShutdown" value="false" /> </bean> <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"> <property name="transactionManager" ref="AtomikosTransactionManager" /> <property name="userTransaction" ref="AtomikosUserTransaction" /> </bean> <tx:annotation-driven transaction-manager="transactionManager" /> |