Atomikos Forum

3.5.8 fails to startup

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" />
Jacek Furmankiewicz Send private email
Friday, September 04, 2009
 
 
Minor correction: I was on 3.5.5 before (not 3.5.6)
Jacek Furmankiewicz Send private email
Friday, September 04, 2009
 
 
Also, downgraded via Maven to 3.5.4 and that one worked fine as well.

So the regression got introduced into atomikos-util starting with 3.5.6 or higher.

Thanks
Jacek Furmankiewicz Send private email
Friday, September 04, 2009
 
 
Hi,

You should have a .epoch file around, e.g.: xxx.tm.epoch -> try renaming this to xxx.tm0.epoch

HTH
Guy Pardon Send private email
Friday, September 04, 2009
 
 
Ah, yes, that fixed it. It probably would be a good idea as to provide some info on which file name is the problem.

Thank you for your quick reply (and the Maven repo), back on 3.5.8 now
Jacek Furmankiewicz Send private email
Friday, September 04, 2009
 
 

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

Other recent topics Other recent topics