Hi all, this is my first post and I've searched the following error in this forum with no success, so I hope someone can help me.
I've configured my spring-batch process lately with a jobRepository on a h2-file databaseschema, this is working all right with my junit-tests but when I try to launch the job in runtime I get the following error:


13/9/2012 11:05:28.647 ERROR [etuo_mult_batch_estadbatch] local main [CommandLineJobRunner.start:355] Job Terminated in error: java.util.Map$Entry
java.lang.InstantiationError: java.util.Map$Entry
at sun.reflect.GeneratedSerializationConstructorAcces sor1.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:527)
at com.thoughtworks.xstream.converters.reflection.Sun 14ReflectionProvider.newInstance(Sun14ReflectionPr ovider.java:74)
at com.thoughtworks.xstream.converters.reflection.Abs tractReflectionConverter.instantiateNewInstance(Ab stractReflectionConverter.java:308)
at com.thoughtworks.xstream.converters.reflection.Abs tractReflectionConverter.unmarshal(AbstractReflect ionConverter.java:161)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vert(TreeUnmarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractReferenceUnm arshaller.convert(AbstractReferenceUnmarshaller.ja va:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnmarshaller.java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnmarshaller.java:60)
at com.thoughtworks.xstream.converters.collections.Ab stractCollectionConverter.readItem(AbstractCollect ionConverter.java:71)
at com.thoughtworks.xstream.converters.collections.Ma pConverter.populateMap(MapConverter.java:75)
at com.thoughtworks.xstream.converters.collections.Ma pConverter.unmarshal(MapConverter.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vert(TreeUnmarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractReferenceUnm arshaller.convert(AbstractReferenceUnmarshaller.ja va:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnmarshaller.java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnmarshaller.java:60)
at com.thoughtworks.xstream.core.TreeUnmarshaller.sta rt(TreeUnmarshaller.java:137)
at com.thoughtworks.xstream.core.AbstractTreeMarshall ingStrategy.unmarshal(AbstractTreeMarshallingStrat egy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:923)
at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:909)
at com.thoughtworks.xstream.XStream.fromXML(XStream.j ava:853)
at com.thoughtworks.xstream.XStream.fromXML(XStream.j ava:845)
at org.springframework.batch.core.repository.dao.XStr eamExecutionContextStringSerializer.deserialize(XS treamExecutionContextStringSerializer.java:48)
at org.springframework.batch.core.repository.dao.Jdbc ExecutionContextDao$ExecutionContextRowMapper.mapR ow(JdbcExecutionContextDao.java:222)
at org.springframework.batch.core.repository.dao.Jdbc ExecutionContextDao$ExecutionContextRowMapper.mapR ow(JdbcExecutionContextDao.java:215)
at org.springframework.jdbc.core.RowMapperResultSetEx tractor.extractData(RowMapperResultSetExtractor.ja va:92)
at org.springframework.jdbc.core.RowMapperResultSetEx tractor.extractData(RowMapperResultSetExtractor.ja va:1)
at org.springframework.jdbc.core.JdbcTemplate$1.doInP reparedStatement(JdbcTemplate.java:648)
at org.springframework.jdbc.core.JdbcTemplate.execute (JdbcTemplate.java:586)
at org.springframework.jdbc.core.JdbcTemplate.query(J dbcTemplate.java:636)
at org.springframework.jdbc.core.JdbcTemplate.query(J dbcTemplate.java:665)
at org.springframework.jdbc.core.JdbcTemplate.query(J dbcTemplate.java:673)
at org.springframework.jdbc.core.JdbcTemplate.query(J dbcTemplate.java:713)
at org.springframework.jdbc.core.simple.SimpleJdbcTem plate.query(SimpleJdbcTemplate.java:200)
at org.springframework.jdbc.core.simple.SimpleJdbcTem plate.query(SimpleJdbcTemplate.java:205)
at org.springframework.batch.core.repository.dao.Jdbc ExecutionContextDao.getExecutionContext(JdbcExecut ionContextDao.java:92)
at org.springframework.batch.core.repository.support. SimpleJobRepository.getLastJobExecution(SimpleJobR epository.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:183)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :150)
at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:110)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy111.getLastJobExecution(Unknown Source)
at org.springframework.batch.core.launch.support.Simp leJobLauncher.run(SimpleJobLauncher.java:94)
at org.springframework.batch.core.launch.support.Comm andLineJobRunner.start(CommandLineJobRunner.java:3 49)
at org.springframework.batch.core.launch.support.Comm andLineJobRunner.main(CommandLineJobRunner.java:57 4)


This is my runtime configuration of job repository, (and as I said, it's working fine when I launch a junit test for the entire job using a JobLauncherTestUtils instance):

Code:
<!-- datasource for jobrepository -->
    <bean class="org.apache.commons.dbcp.BasicDataSource"
        destroy-method="close" id="dataSourceSB">
        <property name="driverClassName" value="${databaseSB.driverClassName}" />
        <property name="url" value="${databaseSB.url}" />
        <property name="username" value="${databaseSB.username}" />
        <property name="password" value="${databaseSB.password}" />
    </bean>
<!-- transaction manager  jobrepository -->
    <bean id="transactionManagerSB" 
    class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="dataSourceSB" />
    </bean>
<!-- jobrepository -->
    <bean id="jobRepository"
        class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean">
        <property name="isolationLevelForCreate" value="ISOLATION_READ_COMMITTED" />
        <property name="dataSource" ref="dataSourceSB" />
        <property name="transactionManager" ref="transactionManagerSB" />
    </bean>
Thank you all in advance